39#include "qgpgme_export.h"
57 typedef QVector<Attribute> AttributeList;
58 typedef AttributeList::const_iterator const_iterator;
61 explicit DN(
const QString &dn);
62 explicit DN(
const char *utf8DN);
66 const DN &operator=(
const DN &other);
69 static QString escape(
const QString &value);
72 QString prettyDN()
const;
79 QString dn(
const QString &sep)
const;
84 QStringList prettyAttributes()
const;
86 QString operator[](
const QString &attr)
const;
88 void append(
const Attribute &attr);
90 const_iterator begin()
const;
91 const_iterator end()
const;
94 void setAttributeOrder(
const QStringList &order)
const;
97 const QStringList & attributeOrder()
const;
106class QGPGME_EXPORT
DN::Attribute
109 typedef DN::AttributeList List;
111 explicit Attribute(
const QString &name = QString(),
const QString &value = QString())
112 : mName(name.toUpper()), mValue(value) {}
113 Attribute(
const Attribute &other)
114 : mName(other.name()), mValue(other.value()) {}
116 const Attribute &operator=(
const Attribute &other)
118 if (
this != &other) {
119 mName = other.name();
120 mValue = other.value();
125 const QString &name()
const
129 const QString &value()
const
134 void setValue(
const QString &value)
145Q_DECLARE_METATYPE(QGpgME::DN::Attribute);
DN parser and reorderer.
Definition dn.h:54