Kleo::DN

Search for usage in LXR

#include <dn.h>

Public Types

using AttributeList = QList<Attribute>
 

Public Member Functions

 DN (const char *utf8DN)
 
 DN (const DN &other)
 
 DN (const QString &dn)
 
void append (const Attribute &attr)
 
const_iterator begin () const
 
QString dn () const
 
QString dn (const QString &sep) const
 
const_iterator end () const
 
const DNoperator= (const DN &other)
 
QString operator[] (const QString &attr) const
 
QStringList prettyAttributes () const
 
QString prettyDN () const
 

Static Public Member Functions

static QStringList attributeNames ()
 
static QString attributeNameToLabel (const QString &name)
 
static QStringList attributeOrder ()
 
static QStringList defaultAttributeOrder ()
 
static QString escape (const QString &value)
 
static void setAttributeOrder (const QStringList &order)
 

Detailed Description

DN parser and reorderer.

Definition at line 26 of file dn.h.

Member Typedef Documentation

◆ AttributeList

using Kleo::DN::AttributeList = QList<Attribute>

Definition at line 30 of file dn.h.

Constructor & Destructor Documentation

◆ DN() [1/4]

Kleo::DN::DN ( )

Definition at line 372 of file dn.cpp.

◆ DN() [2/4]

Kleo::DN::DN ( const QString & dn)
explicit

Definition at line 378 of file dn.cpp.

◆ DN() [3/4]

Kleo::DN::DN ( const char * utf8DN)
explicit

Definition at line 385 of file dn.cpp.

◆ DN() [4/4]

Kleo::DN::DN ( const DN & other)

Definition at line 394 of file dn.cpp.

◆ ~DN()

Kleo::DN::~DN ( )

Definition at line 402 of file dn.cpp.

Member Function Documentation

◆ append()

void Kleo::DN::append ( const Attribute & attr)

Definition at line 497 of file dn.cpp.

◆ attributeNames()

QStringList Kleo::DN::attributeNames ( )
static

Definition at line 560 of file dn.cpp.

◆ attributeNameToLabel()

QString Kleo::DN::attributeNameToLabel ( const QString & name)
static

Definition at line 566 of file dn.cpp.

◆ attributeOrder()

QStringList Kleo::DN::attributeOrder ( )
static

Definition at line 428 of file dn.cpp.

◆ begin()

Kleo::DN::const_iterator Kleo::DN::begin ( ) const

Definition at line 520 of file dn.cpp.

◆ defaultAttributeOrder()

QStringList Kleo::DN::defaultAttributeOrder ( )
static

Definition at line 440 of file dn.cpp.

◆ dn() [1/2]

QString Kleo::DN::dn ( ) const
Returns
the DN in the original form

Definition at line 468 of file dn.cpp.

◆ dn() [2/2]

QString Kleo::DN::dn ( const QString & sep) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Uses sep as separator (default: ,)

Definition at line 473 of file dn.cpp.

◆ end()

Kleo::DN::const_iterator Kleo::DN::end ( ) const

Definition at line 525 of file dn.cpp.

◆ escape()

QString Kleo::DN::escape ( const QString & value)
static
Returns
the value in rfc-2253-escaped form

Definition at line 479 of file dn.cpp.

◆ operator=()

const Kleo::DN & Kleo::DN::operator= ( const DN & other)

Definition at line 409 of file dn.cpp.

◆ operator[]()

QString Kleo::DN::operator[] ( const QString & attr) const

Definition at line 504 of file dn.cpp.

◆ prettyAttributes()

QStringList Kleo::DN::prettyAttributes ( ) const

Returns the non-empty attributes formatted as {NAME=value} and reordered according to the settings in the [DN] group of the application's config file.

Definition at line 456 of file dn.cpp.

◆ prettyDN()

QString Kleo::DN::prettyDN ( ) const
Returns
the DN in a reordered form, according to the settings in the [DN] group of the application's config file

Definition at line 445 of file dn.cpp.

◆ setAttributeOrder()

void Kleo::DN::setAttributeOrder ( const QStringList & order)
static

Definition at line 434 of file dn.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.