35#ifndef QGPGME_QGPGMENEWCRYPTOCONFIG_H
36#define QGPGME_QGPGMENEWCRYPTOCONFIG_H
38#include "qgpgme_export.h"
39#include "cryptoconfig.h"
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 Q_DECL_OVERRIDE;
67 QString description()
const Q_DECL_OVERRIDE;
68 QString path()
const Q_DECL_OVERRIDE;
69 bool isOptional()
const Q_DECL_OVERRIDE;
70 bool isReadOnly()
const Q_DECL_OVERRIDE;
71 bool isList()
const Q_DECL_OVERRIDE;
72 bool isRuntime()
const Q_DECL_OVERRIDE;
73 Level level()
const Q_DECL_OVERRIDE;
74 ArgType argType()
const Q_DECL_OVERRIDE;
75 bool isSet()
const Q_DECL_OVERRIDE;
76 bool boolValue()
const Q_DECL_OVERRIDE;
77 QString stringValue()
const Q_DECL_OVERRIDE;
78 int intValue()
const Q_DECL_OVERRIDE;
79 unsigned int uintValue()
const Q_DECL_OVERRIDE;
80 QUrl urlValue()
const Q_DECL_OVERRIDE;
81 unsigned int numberOfTimesSet()
const Q_DECL_OVERRIDE;
82 std::vector<int> intValueList()
const Q_DECL_OVERRIDE;
83 std::vector<unsigned int> uintValueList()
const Q_DECL_OVERRIDE;
84 QList<QUrl> urlValueList()
const Q_DECL_OVERRIDE;
85 void resetToDefault() Q_DECL_OVERRIDE;
86 void setBoolValue(
bool) Q_DECL_OVERRIDE;
87 void setStringValue(
const QString &) Q_DECL_OVERRIDE;
88 void setIntValue(
int) Q_DECL_OVERRIDE;
89 void setUIntValue(
unsigned int) Q_DECL_OVERRIDE;
90 void setURLValue(
const QUrl &) Q_DECL_OVERRIDE;
91 void setNumberOfTimesSet(
unsigned int) Q_DECL_OVERRIDE;
92 void setIntValueList(
const std::vector<int> &) Q_DECL_OVERRIDE;
93 void setUIntValueList(
const std::vector<unsigned int> &) Q_DECL_OVERRIDE;
94 void setURLValueList(
const QList<QUrl> &) Q_DECL_OVERRIDE;
95 bool isDirty()
const Q_DECL_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 Q_DECL_OVERRIDE;
121 QString iconName()
const Q_DECL_OVERRIDE
125 QString description()
const Q_DECL_OVERRIDE;
126 QString path()
const Q_DECL_OVERRIDE;
127 QGpgME::CryptoConfigEntry::Level level()
const Q_DECL_OVERRIDE;
128 QStringList entryList()
const Q_DECL_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 Q_DECL_OVERRIDE;
149 QString iconName()
const Q_DECL_OVERRIDE
153 QString description()
const Q_DECL_OVERRIDE;
154 QStringList groupList()
const Q_DECL_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 Q_DECL_OVERRIDE;
181 void clear() Q_DECL_OVERRIDE;
182 void sync(
bool runtime) Q_DECL_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