libkleo
Go to the documentation of this file.
33 #ifndef CRYPTOCONFIG_H
34 #define CRYPTOCONFIG_H
51 class CryptoConfigEntry {
94 virtual ~CryptoConfigEntry() {}
104 virtual QString description()
const = 0;
109 virtual QString path()
const = 0;
114 virtual bool isOptional()
const = 0;
119 virtual bool isReadOnly()
const = 0;
124 virtual bool isList()
const = 0;
129 virtual bool isRuntime()
const = 0;
134 virtual Level level()
const = 0;
139 virtual ArgType argType()
const = 0;
144 virtual bool isSet()
const = 0;
149 virtual bool boolValue()
const = 0;
155 virtual QString stringValue()
const = 0;
160 virtual int intValue()
const = 0;
165 virtual unsigned int uintValue()
const = 0;
170 virtual KUrl urlValue()
const = 0;
175 virtual unsigned int numberOfTimesSet()
const = 0;
185 virtual std::vector<int> intValueList()
const = 0;
190 virtual std::vector<unsigned int> uintValueList()
const = 0;
195 virtual KUrl::List urlValueList()
const = 0;
200 virtual void resetToDefault() = 0;
206 virtual void setBoolValue(
bool ) = 0;
211 virtual void setStringValue(
const QString& ) = 0;
216 virtual void setIntValue(
int ) = 0;
221 virtual void setUIntValue(
unsigned int ) = 0;
226 virtual void setURLValue(
const KUrl& ) = 0;
231 virtual void setNumberOfTimesSet(
unsigned int ) = 0;
236 virtual void setStringValueList(
const QStringList& ) = 0;
241 virtual void setIntValueList(
const std::vector<int>& ) = 0;
246 virtual void setUIntValueList(
const std::vector<unsigned int>& ) = 0;
251 virtual void setURLValueList(
const KUrl::List& ) = 0;
256 virtual bool isDirty()
const = 0;
262 class CryptoConfigGroup {
265 virtual ~CryptoConfigGroup() {}
275 virtual QString iconName()
const = 0;
280 virtual QString description()
const = 0;
285 virtual QString path()
const = 0;
304 virtual CryptoConfigEntry* entry(
const QString&
name )
const = 0;
310 class CryptoConfigComponent {
313 virtual ~CryptoConfigComponent() {}
323 virtual QString iconName()
const = 0;
328 virtual QString description()
const = 0;
342 virtual CryptoConfigGroup* group(
const QString&
name )
const = 0;
352 virtual ~CryptoConfig() {}
365 virtual CryptoConfigComponent* component(
const QString&
name )
const = 0;
375 CryptoConfigEntry* entry(
const QString& componentName,
const QString& groupName,
const QString& entryName )
const {
376 const Kleo::CryptoConfigComponent* comp = component( componentName );
377 const Kleo::CryptoConfigGroup* group = comp ? comp->group( groupName ) : 0;
378 return group ? group->entry( entryName ) : 0;
388 virtual void sync(
bool runtime ) = 0;
397 virtual void clear() = 0;
ArgType
Type of the argument.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.