certmanager/lib

QGpgMECryptoConfigEntry Class Reference

Inheritance diagram for QGpgMECryptoConfigEntry:

Kleo::CryptoConfigEntry List of all members.

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 isReadOnly () 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 498 of file qgpgmecryptoconfig.cpp.

bool QGpgMECryptoConfigEntry::isReadOnly (  )  const [virtual]

Returns:
true if the entry is readonly

Implements Kleo::CryptoConfigEntry.

Definition at line 503 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 508 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 513 of file qgpgmecryptoconfig.cpp.

Level QGpgMECryptoConfigEntry::level (  )  const [inline, virtual]

User level.

Implements Kleo::CryptoConfigEntry.

Definition at line 140 of file qgpgmecryptoconfig.h.

ArgType QGpgMECryptoConfigEntry::argType (  )  const [inline, virtual]

Argument type.

Implements Kleo::CryptoConfigEntry.

Definition at line 141 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 518 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 523 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 530 of file qgpgmecryptoconfig.cpp.

int QGpgMECryptoConfigEntry::intValue (  )  const [virtual]

Return value as a signed int.

Implements Kleo::CryptoConfigEntry.

Definition at line 535 of file qgpgmecryptoconfig.cpp.

unsigned int QGpgMECryptoConfigEntry::uintValue (  )  const [virtual]

Return value as an unsigned int.

Implements Kleo::CryptoConfigEntry.

Definition at line 542 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 589 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 603 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 610 of file qgpgmecryptoconfig.cpp.

QValueList< int > QGpgMECryptoConfigEntry::intValueList (  )  const [virtual]

Return value as a list of signed ints.

Implements Kleo::CryptoConfigEntry.

Definition at line 617 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 629 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 641 of file qgpgmecryptoconfig.cpp.

void QGpgMECryptoConfigEntry::resetToDefault (  )  [virtual]

Reset an option to its default value.

Implements Kleo::CryptoConfigEntry.

Definition at line 660 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 673 of file qgpgmecryptoconfig.cpp.

void QGpgMECryptoConfigEntry::setStringValue ( const QString &   )  [virtual]

Set string value (allowed for all argtypes).

Implements Kleo::CryptoConfigEntry.

Definition at line 684 of file qgpgmecryptoconfig.cpp.

void QGpgMECryptoConfigEntry::setIntValue ( int   )  [virtual]

Set a new signed int value.

Implements Kleo::CryptoConfigEntry.

Definition at line 697 of file qgpgmecryptoconfig.cpp.

void QGpgMECryptoConfigEntry::setUIntValue ( unsigned  int  )  [virtual]

Set a new unsigned int value.

Implements Kleo::CryptoConfigEntry.

Definition at line 706 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 713 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 724 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 733 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 743 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 757 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 771 of file qgpgmecryptoconfig.cpp.

bool QGpgMECryptoConfigEntry::isDirty (  )  const [inline, virtual]

Returns:
true if the value was changed

Implements Kleo::CryptoConfigEntry.

Definition at line 164 of file qgpgmecryptoconfig.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys