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
 
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 366 of file dn.cpp.

◆ DN() [2/4]

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

Definition at line 372 of file dn.cpp.

◆ DN() [3/4]

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

Definition at line 379 of file dn.cpp.

◆ DN() [4/4]

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

Definition at line 388 of file dn.cpp.

◆ ~DN()

Kleo::DN::~DN ( )

Definition at line 396 of file dn.cpp.

Member Function Documentation

◆ append()

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

Definition at line 479 of file dn.cpp.

◆ attributeNames()

QStringList Kleo::DN::attributeNames ( )
static

Definition at line 542 of file dn.cpp.

◆ attributeNameToLabel()

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

Definition at line 548 of file dn.cpp.

◆ attributeOrder()

QStringList Kleo::DN::attributeOrder ( )
static

Definition at line 422 of file dn.cpp.

◆ begin()

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

Definition at line 502 of file dn.cpp.

◆ defaultAttributeOrder()

QStringList Kleo::DN::defaultAttributeOrder ( )
static

Definition at line 434 of file dn.cpp.

◆ dn() [1/2]

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

Definition at line 450 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 455 of file dn.cpp.

◆ end()

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

Definition at line 507 of file dn.cpp.

◆ escape()

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

Definition at line 461 of file dn.cpp.

◆ operator=()

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

Definition at line 403 of file dn.cpp.

◆ operator[]()

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

Definition at line 486 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 439 of file dn.cpp.

◆ setAttributeOrder()

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

Definition at line 428 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 Fri Jul 26 2024 11:50:31 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.