34 #ifndef QGPGME_QGPGMENEWCRYPTOCONFIG_H 35 #define QGPGME_QGPGMENEWCRYPTOCONFIG_H 37 #include "qgpgme_export.h" 38 #include "cryptoconfig.h" 41 #include <QStringList> 44 #ifdef BUILDING_QGPGME 45 # include "configuration.h" 47 # include <gpgme++/configuration.h> 62 QGpgMENewCryptoConfigEntry(
const std::shared_ptr<QGpgMENewCryptoConfigGroup> &group,
const GpgME::Configuration::Option &option);
65 QString name()
const Q_DECL_OVERRIDE;
66 QString description()
const Q_DECL_OVERRIDE;
67 QString path()
const Q_DECL_OVERRIDE;
68 bool isOptional()
const Q_DECL_OVERRIDE;
69 bool isReadOnly()
const Q_DECL_OVERRIDE;
70 bool isList()
const Q_DECL_OVERRIDE;
71 bool isRuntime()
const Q_DECL_OVERRIDE;
72 Level level()
const Q_DECL_OVERRIDE;
73 ArgType argType()
const Q_DECL_OVERRIDE;
74 bool isSet()
const Q_DECL_OVERRIDE;
75 bool boolValue()
const Q_DECL_OVERRIDE;
76 QString stringValue()
const Q_DECL_OVERRIDE;
77 int intValue()
const Q_DECL_OVERRIDE;
78 unsigned int uintValue()
const Q_DECL_OVERRIDE;
79 QUrl urlValue()
const Q_DECL_OVERRIDE;
80 unsigned int numberOfTimesSet()
const Q_DECL_OVERRIDE;
81 std::vector<int> intValueList()
const Q_DECL_OVERRIDE;
82 std::vector<unsigned int> uintValueList()
const Q_DECL_OVERRIDE;
83 QList<QUrl> urlValueList()
const Q_DECL_OVERRIDE;
84 void resetToDefault() Q_DECL_OVERRIDE;
85 void setBoolValue(
bool) Q_DECL_OVERRIDE;
86 void setStringValue(
const QString &) Q_DECL_OVERRIDE;
87 void setIntValue(
int) Q_DECL_OVERRIDE;
88 void setUIntValue(
unsigned int) Q_DECL_OVERRIDE;
89 void setURLValue(
const QUrl &) Q_DECL_OVERRIDE;
90 void setNumberOfTimesSet(
unsigned int) Q_DECL_OVERRIDE;
91 void setIntValueList(
const std::vector<int> &) Q_DECL_OVERRIDE;
92 void setUIntValueList(
const std::vector<unsigned int> &) Q_DECL_OVERRIDE;
93 void setURLValueList(
const QList<QUrl> &) Q_DECL_OVERRIDE;
94 bool isDirty()
const Q_DECL_OVERRIDE;
96 QStringList stringValueList()
const;
99 void setDirty(
bool b);
100 QString outputString()
const;
103 bool isStringType()
const;
104 QVariant stringToValue(
const QString &value,
bool unescape)
const;
105 QString toString(
bool escape)
const;
108 std::weak_ptr<QGpgMENewCryptoConfigGroup> m_group;
109 GpgME::Configuration::Option m_option;
115 QGpgMENewCryptoConfigGroup(
const std::shared_ptr<QGpgMENewCryptoConfigComponent> &parent,
const GpgME::Configuration::Option &option);
118 QString name()
const Q_DECL_OVERRIDE;
119 QString iconName()
const Q_DECL_OVERRIDE
123 QString description()
const Q_DECL_OVERRIDE;
124 QString path()
const Q_DECL_OVERRIDE;
125 QGpgME::CryptoConfigEntry::Level level()
const Q_DECL_OVERRIDE;
126 QStringList entryList()
const Q_DECL_OVERRIDE;
131 std::weak_ptr<QGpgMENewCryptoConfigComponent> m_component;
132 GpgME::Configuration::Option m_option;
133 QStringList m_entryNames;
134 QHash< QString, std::shared_ptr<QGpgMENewCryptoConfigEntry> > m_entriesByName;
144 void setComponent(
const GpgME::Configuration::Component &component);
146 QString name()
const Q_DECL_OVERRIDE;
147 QString iconName()
const Q_DECL_OVERRIDE
151 QString description()
const Q_DECL_OVERRIDE;
152 QStringList groupList()
const Q_DECL_OVERRIDE;
155 void sync(
bool runtime);
158 GpgME::Configuration::Component m_component;
159 QHash< QString, std::shared_ptr<QGpgMENewCryptoConfigGroup> > m_groupsByName;
175 QStringList componentList()
const Q_DECL_OVERRIDE;
179 void clear() Q_DECL_OVERRIDE;
180 void sync(
bool runtime) Q_DECL_OVERRIDE;
184 void reloadConfiguration(
bool showErrors);
187 QHash< QString, std::shared_ptr<QGpgMENewCryptoConfigComponent> > m_componentsByName;
Definition: qgpgmenewcryptoconfig.h:166
Definition: qgpgmenewcryptoconfig.h:112
For docu, see kleo/cryptoconfig.h.
Definition: qgpgmenewcryptoconfig.h:138
Definition: qgpgmenewcryptoconfig.h:59