Kleo::CryptoConfigEntry Class Reference
Description of a single option. More...
#include <cryptoconfig.h>
Public Types | |
enum | Level { Level_Basic = 0, Level_Advanced = 1, Level_Expert = 2 } |
enum | ArgType { ArgType_None = 0, ArgType_String = 1, ArgType_Int = 2, ArgType_UInt = 3, ArgType_Path = 4, ArgType_URL = 5, ArgType_LDAPURL = 6, ArgType_DirPath = 7 } |
Public Member Functions | |
virtual QString | name () const =0 |
virtual QString | description () const =0 |
virtual bool | isOptional () const =0 |
virtual bool | isList () const =0 |
virtual bool | isRuntime () const =0 |
virtual Level | level () const =0 |
virtual ArgType | argType () const =0 |
virtual bool | isSet () const =0 |
virtual bool | boolValue () const =0 |
virtual QString | stringValue () const =0 |
virtual int | intValue () const =0 |
virtual unsigned int | uintValue () const =0 |
virtual KURL | urlValue () const =0 |
virtual unsigned int | numberOfTimesSet () const =0 |
virtual QStringList | stringValueList () const =0 |
virtual QValueList< int > | intValueList () const =0 |
virtual QValueList< unsigned int > | uintValueList () const =0 |
virtual KURL::List | urlValueList () const =0 |
virtual void | resetToDefault ()=0 |
virtual void | setBoolValue (bool)=0 |
virtual void | setStringValue (const QString &)=0 |
virtual void | setIntValue (int)=0 |
virtual void | setUIntValue (unsigned int)=0 |
virtual void | setURLValue (const KURL &)=0 |
virtual void | setNumberOfTimesSet (unsigned int)=0 |
virtual void | setStringValueList (const QStringList &)=0 |
virtual void | setIntValueList (const QValueList< int > &)=0 |
virtual void | setUIntValueList (const QValueList< unsigned int > &)=0 |
virtual void | setURLValueList (const KURL::List &)=0 |
virtual bool | isDirty () const =0 |
Detailed Description
Description of a single option.
Definition at line 49 of file cryptoconfig.h.
Member Enumeration Documentation
|
Definition at line 58 of file cryptoconfig.h. |
|
Type of the argument.
Definition at line 79 of file cryptoconfig.h. |
Member Function Documentation
|
Return the internal name of this entry.
|
|
|
|
|
|
|
|
|
|
User level.
|
|
Argument type.
|
|
Return true if the option is set, i.e. different from default |
|
Return value as a bool (only allowed for ArgType_None).
|
|
Return value as a string (available for all argtypes) The returned string can be empty (explicitely set to empty) or null (not set).
|
|
Return value as a signed int.
|
|
Return value as an unsigned int.
|
|
Return value as a URL (only meaningful for Path and URL argtypes).
|
|
Return number of times the option is set (only valid for ArgType_None, if isList()).
|
|
Return value as a list of strings (mostly meaningful for String, Path and URL argtypes, if isList()).
|
|
Return value as a list of signed ints.
|
|
Return value as a list of unsigned ints.
|
|
Return value as a list of URLs (only meaningful for Path and URL argtypes, if isList()).
|
|
Reset an option to its default value.
|
|
Define whether the option is set or not (only allowed for ArgType_None) #### TODO: and for options with optional args.
|
|
Set string value (allowed for all argtypes).
|
|
Set a new signed int value.
|
|
Set a new unsigned int value.
|
|
Set value as a URL (only meaningful for Path (if local) and URL argtypes).
|
|
Set the number of times the option is set (only valid for ArgType_None, if isList()).
|
|
Set a new string-list value (only allowed for String, Path and URL argtypes, if isList()).
|
|
Set a new list of signed int values.
|
|
Set a new list of unsigned int values.
|
|
Set value as a URL list (only meaningful for Path (if all URLs are local) and URL argtypes, if isList()).
|
|
|
The documentation for this class was generated from the following file: