36 #include "qgpgme_export.h" 39 #include <QStringList> 49 class QGPGME_EXPORT
DN 53 typedef QVector<Attribute> AttributeList;
54 typedef AttributeList::const_iterator const_iterator;
57 explicit DN(
const QString &dn);
58 explicit DN(
const char *utf8DN);
62 const DN &operator=(
const DN &other);
65 static QString escape(
const QString &value);
69 QString prettyDN()
const;
76 QString dn(
const QString &sep)
const;
78 QString operator[](
const QString &attr)
const;
80 void append(
const Attribute &attr);
82 const_iterator begin()
const;
83 const_iterator end()
const;
86 void setAttributeOrder(
const QStringList &order)
const;
89 const QStringList & attributeOrder()
const;
98 class QGPGME_EXPORT DN::Attribute
101 typedef DN::AttributeList List;
103 explicit Attribute(
const QString &name = QString(),
const QString &value = QString())
104 : mName(name.toUpper()), mValue(value) {}
105 Attribute(
const Attribute &other)
106 : mName(other.name()), mValue(other.value()) {}
108 const Attribute &operator=(
const Attribute &other)
110 if (
this != &other) {
111 mName = other.name();
112 mValue = other.value();
117 const QString &name()
const 121 const QString &value()
const 126 void setValue(
const QString &value)
136 #endif // QGPGME_DN_H
DN parser and reorderer.
Definition: dn.h:49
Definition: abstractimportjob.h:47