35 #ifndef QGPGME_QGPGMENEWCRYPTOCONFIG_H
36 #define QGPGME_QGPGMENEWCRYPTOCONFIG_H
38 #include "qgpgme_export.h"
39 #include "cryptoconfig.h"
42 #include <QStringList>
45 #ifdef BUILDING_QGPGME
46 # include "configuration.h"
48 # include <gpgme++/configuration.h>
63 QGpgMENewCryptoConfigEntry(
const std::shared_ptr<QGpgMENewCryptoConfigGroup> &group,
const GpgME::Configuration::Option &option);
66 QString name()
const override;
67 QString description()
const override;
68 QString path()
const override;
69 bool isOptional()
const override;
70 bool isReadOnly()
const override;
71 bool isList()
const override;
72 bool isRuntime()
const override;
73 Level level()
const override;
74 ArgType argType()
const override;
75 bool isSet()
const override;
76 bool boolValue()
const override;
77 QString stringValue()
const override;
78 int intValue()
const override;
79 unsigned int uintValue()
const override;
80 QUrl urlValue()
const override;
81 unsigned int numberOfTimesSet()
const override;
82 std::vector<int> intValueList()
const override;
83 std::vector<unsigned int> uintValueList()
const override;
84 QList<QUrl> urlValueList()
const override;
85 void resetToDefault()
override;
86 void setBoolValue(
bool)
override;
87 void setStringValue(
const QString &)
override;
88 void setIntValue(
int)
override;
89 void setUIntValue(
unsigned int)
override;
90 void setURLValue(
const QUrl &)
override;
91 void setNumberOfTimesSet(
unsigned int)
override;
92 void setIntValueList(
const std::vector<int> &)
override;
93 void setUIntValueList(
const std::vector<unsigned int> &)
override;
94 void setURLValueList(
const QList<QUrl> &)
override;
95 bool isDirty()
const override;
97 QStringList stringValueList()
const;
98 QVariant defaultValue()
const;
101 void setDirty(
bool b);
102 QString outputString()
const;
105 bool isStringType()
const;
106 QVariant stringToValue(
const QString &value,
bool unescape)
const;
107 QString toString(
bool escape)
const;
110 std::weak_ptr<QGpgMENewCryptoConfigGroup> m_group;
111 GpgME::Configuration::Option m_option;
117 QGpgMENewCryptoConfigGroup(
const std::shared_ptr<QGpgMENewCryptoConfigComponent> &parent,
const GpgME::Configuration::Option &option);
120 QString name()
const override;
121 QString iconName()
const override
125 QString description()
const override;
126 QString path()
const override;
127 QGpgME::CryptoConfigEntry::Level level()
const override;
128 QStringList entryList()
const override;
133 std::weak_ptr<QGpgMENewCryptoConfigComponent> m_component;
134 GpgME::Configuration::Option m_option;
135 QStringList m_entryNames;
136 QHash< QString, std::shared_ptr<QGpgMENewCryptoConfigEntry> > m_entriesByName;
146 void setComponent(
const GpgME::Configuration::Component &component);
148 QString name()
const override;
149 QString iconName()
const override
153 QString description()
const override;
154 QStringList groupList()
const override;
157 void sync(
bool runtime);
160 GpgME::Configuration::Component m_component;
161 QHash< QString, std::shared_ptr<QGpgMENewCryptoConfigGroup> > m_groupsByName;
177 QStringList componentList()
const override;
181 void clear()
override;
182 void sync(
bool runtime)
override;
186 void reloadConfiguration(
bool showErrors);
189 QHash< QString, std::shared_ptr<QGpgMENewCryptoConfigComponent> > m_componentsByName;
For docu, see kleo/cryptoconfig.h.
Definition: qgpgmenewcryptoconfig.h:141
Definition: qgpgmenewcryptoconfig.h:61
Definition: qgpgmenewcryptoconfig.h:115
Definition: qgpgmenewcryptoconfig.h:169