KABC::Key Class Reference
A class to store an encryption key. More...
#include <key.h>
Public Types | |
enum | Types |
Key types. More... | |
Public Methods | |
Key (const QString &text=QString::null, int type=PGP) | |
Constructor. | |
~Key () | |
Destructor. | |
void | setId (const QString &id) |
Sets the unique identifier. | |
QString | id () const |
Returns the unique identifier. | |
void | setBinaryData (const QByteArray &binary) |
Sets binary data. | |
QByteArray | binaryData () const |
Returns the binary data. | |
void | setTextData (const QString &text) |
Sets text data. | |
QString | textData () const |
Returns the text data. | |
bool | isBinary () const |
Returns whether the key contains binary or text data. | |
void | setType (int type) |
Sets the type,. | |
void | setCustomTypeString (const QString &custom) |
Sets custom type string. | |
int | type () const |
Returns the type,. | |
QString | customTypeString () const |
Returns the custom type string. | |
Static Public Methods | |
TypeList | typeList () |
Returns a list of all available key types. | |
QString | typeLabel (int type) |
Returns a translated label for a given key type. |
Detailed Description
A class to store an encryption key.
Definition at line 31 of file key.h.
Member Enumeration Documentation
|
Key types.
|
Constructor & Destructor Documentation
|
Constructor.
Definition at line 28 of file key.cpp. References KApplication::randomString(). |
|
Destructor.
|
Member Function Documentation
|
Sets the unique identifier.
|
|
Returns the unique identifier.
Definition at line 61 of file key.cpp. Referenced by KABC::Addressee::insertKey(), and KABC::Addressee::removeKey(). |
|
Sets binary data.
|
|
Returns the binary data.
|
|
Sets text data.
|
|
Returns the text data.
|
|
Returns whether the key contains binary or text data.
|
|
Sets the type,.
Definition at line 93 of file key.cpp. References type(). |
|
Sets custom type string.
|
|
Returns the type,.
Definition at line 103 of file key.cpp. Referenced by setType(). |
|
Returns the custom type string.
|
|
Returns a list of all available key types.
|
|
Returns a translated label for a given key type.
|
The documentation for this class was generated from the following files: