certmanager/lib
QGpgMECryptoConfigEntry Class Reference
Inheritance diagram for QGpgMECryptoConfigEntry:

Detailed Description
Definition at line 129 of file qgpgmecryptoconfig.h.
Public Member Functions | |
QGpgMECryptoConfigEntry (const QStringList &parsedLine) | |
~QGpgMECryptoConfigEntry () | |
QString | name () const |
QString | description () const |
bool | isOptional () const |
bool | isList () const |
bool | isRuntime () const |
Level | level () const |
ArgType | argType () const |
bool | isSet () const |
bool | boolValue () const |
QString | stringValue () const |
int | intValue () const |
unsigned int | uintValue () const |
KURL | urlValue () const |
unsigned int | numberOfTimesSet () const |
QStringList | stringValueList () const |
QValueList< int > | intValueList () const |
QValueList< unsigned int > | uintValueList () const |
KURL::List | urlValueList () const |
void | resetToDefault () |
void | setBoolValue (bool) |
void | setStringValue (const QString &) |
void | setIntValue (int) |
void | setUIntValue (unsigned int) |
void | setURLValue (const KURL &) |
void | setNumberOfTimesSet (unsigned int) |
void | setStringValueList (const QStringList &) |
void | setIntValueList (const QValueList< int > &) |
void | setUIntValueList (const QValueList< unsigned int > &) |
void | setURLValueList (const KURL::List &) |
bool | isDirty () const |
void | setDirty (bool b) |
QString | outputString () const |
Protected Member Functions | |
bool | isStringType () const |
QVariant | stringToValue (const QString &value, bool unescape) const |
QString | toString (bool escape) const |
Member Function Documentation
QString QGpgMECryptoConfigEntry::name | ( | ) | const [inline, virtual] |
Return the internal name of this entry.
Implements Kleo::CryptoConfigEntry.
Definition at line 134 of file qgpgmecryptoconfig.h.
QString QGpgMECryptoConfigEntry::description | ( | ) | const [inline, virtual] |
- Returns:
- user-visible description of this entry
Implements Kleo::CryptoConfigEntry.
Definition at line 135 of file qgpgmecryptoconfig.h.
bool QGpgMECryptoConfigEntry::isOptional | ( | ) | const [virtual] |
- Returns:
- true if the argument is optional
Implements Kleo::CryptoConfigEntry.
Definition at line 490 of file qgpgmecryptoconfig.cpp.
bool QGpgMECryptoConfigEntry::isList | ( | ) | const [virtual] |
- Returns:
- true if the argument can be given multiple times
Implements Kleo::CryptoConfigEntry.
Definition at line 495 of file qgpgmecryptoconfig.cpp.
bool QGpgMECryptoConfigEntry::isRuntime | ( | ) | const [virtual] |
- Returns:
- true if the argument can be changed at runtime
Implements Kleo::CryptoConfigEntry.
Definition at line 500 of file qgpgmecryptoconfig.cpp.
Level QGpgMECryptoConfigEntry::level | ( | ) | const [inline, virtual] |
User level.
Implements Kleo::CryptoConfigEntry.
Definition at line 139 of file qgpgmecryptoconfig.h.
ArgType QGpgMECryptoConfigEntry::argType | ( | ) | const [inline, virtual] |
Argument type.
Implements Kleo::CryptoConfigEntry.
Definition at line 140 of file qgpgmecryptoconfig.h.
bool QGpgMECryptoConfigEntry::isSet | ( | ) | const [virtual] |
Return true if the option is set, i.e.
different from default
Implements Kleo::CryptoConfigEntry.
Definition at line 505 of file qgpgmecryptoconfig.cpp.
bool QGpgMECryptoConfigEntry::boolValue | ( | ) | const [virtual] |
Return value as a bool (only allowed for ArgType_None).
Implements Kleo::CryptoConfigEntry.
Definition at line 510 of file qgpgmecryptoconfig.cpp.
QString QGpgMECryptoConfigEntry::stringValue | ( | ) | const [virtual] |
Return value as a string (available for all argtypes) The returned string can be empty (explicitely set to empty) or null (not set).
Implements Kleo::CryptoConfigEntry.
Definition at line 517 of file qgpgmecryptoconfig.cpp.
int QGpgMECryptoConfigEntry::intValue | ( | ) | const [virtual] |
Return value as a signed int.
Implements Kleo::CryptoConfigEntry.
Definition at line 522 of file qgpgmecryptoconfig.cpp.
unsigned int QGpgMECryptoConfigEntry::uintValue | ( | ) | const [virtual] |
Return value as an unsigned int.
Implements Kleo::CryptoConfigEntry.
Definition at line 529 of file qgpgmecryptoconfig.cpp.
KURL QGpgMECryptoConfigEntry::urlValue | ( | ) | const [virtual] |
Return value as a URL (only meaningful for Path and URL argtypes).
Implements Kleo::CryptoConfigEntry.
Definition at line 576 of file qgpgmecryptoconfig.cpp.
unsigned int QGpgMECryptoConfigEntry::numberOfTimesSet | ( | ) | const [virtual] |
Return number of times the option is set (only valid for ArgType_None, if isList()).
Implements Kleo::CryptoConfigEntry.
Definition at line 590 of file qgpgmecryptoconfig.cpp.
QStringList QGpgMECryptoConfigEntry::stringValueList | ( | ) | const [virtual] |
Return value as a list of strings (mostly meaningful for String, Path and URL argtypes, if isList()).
Implements Kleo::CryptoConfigEntry.
Definition at line 597 of file qgpgmecryptoconfig.cpp.
QValueList< int > QGpgMECryptoConfigEntry::intValueList | ( | ) | const [virtual] |
Return value as a list of signed ints.
Implements Kleo::CryptoConfigEntry.
Definition at line 604 of file qgpgmecryptoconfig.cpp.
QValueList< unsigned int > QGpgMECryptoConfigEntry::uintValueList | ( | ) | const [virtual] |
Return value as a list of unsigned ints.
Implements Kleo::CryptoConfigEntry.
Definition at line 616 of file qgpgmecryptoconfig.cpp.
KURL::List QGpgMECryptoConfigEntry::urlValueList | ( | ) | const [virtual] |
Return value as a list of URLs (only meaningful for Path and URL argtypes, if isList()).
Implements Kleo::CryptoConfigEntry.
Definition at line 628 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::resetToDefault | ( | ) | [virtual] |
Reset an option to its default value.
Implements Kleo::CryptoConfigEntry.
Definition at line 647 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setBoolValue | ( | bool | ) | [virtual] |
Define whether the option is set or not (only allowed for ArgType_None) #### TODO: and for options with optional args.
Implements Kleo::CryptoConfigEntry.
Definition at line 657 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setStringValue | ( | const QString & | ) | [virtual] |
Set string value (allowed for all argtypes).
Implements Kleo::CryptoConfigEntry.
Definition at line 668 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setIntValue | ( | int | ) | [virtual] |
Set a new signed int value.
Implements Kleo::CryptoConfigEntry.
Definition at line 681 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setUIntValue | ( | unsigned | int | ) | [virtual] |
Set a new unsigned int value.
Implements Kleo::CryptoConfigEntry.
Definition at line 690 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setURLValue | ( | const KURL & | ) | [virtual] |
Set value as a URL (only meaningful for Path (if local) and URL argtypes).
Implements Kleo::CryptoConfigEntry.
Definition at line 697 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setNumberOfTimesSet | ( | unsigned | int | ) | [virtual] |
Set the number of times the option is set (only valid for ArgType_None, if isList()).
Implements Kleo::CryptoConfigEntry.
Definition at line 708 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setStringValueList | ( | const QStringList & | ) | [virtual] |
Set a new string-list value (only allowed for String, Path and URL argtypes, if isList()).
Implements Kleo::CryptoConfigEntry.
Definition at line 715 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setIntValueList | ( | const QValueList< int > & | ) | [virtual] |
Set a new list of signed int values.
Implements Kleo::CryptoConfigEntry.
Definition at line 725 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setUIntValueList | ( | const QValueList< unsigned int > & | ) | [virtual] |
Set a new list of unsigned int values.
Implements Kleo::CryptoConfigEntry.
Definition at line 739 of file qgpgmecryptoconfig.cpp.
void QGpgMECryptoConfigEntry::setURLValueList | ( | const KURL::List & | ) | [virtual] |
Set value as a URL list (only meaningful for Path (if all URLs are local) and URL argtypes, if isList()).
Implements Kleo::CryptoConfigEntry.
Definition at line 753 of file qgpgmecryptoconfig.cpp.
bool QGpgMECryptoConfigEntry::isDirty | ( | ) | const [inline, virtual] |
- Returns:
- true if the value was changed
Implements Kleo::CryptoConfigEntry.
Definition at line 163 of file qgpgmecryptoconfig.h.
The documentation for this class was generated from the following files: