KABC::Key Class Reference
A class to store an encryption key. More...
#include <key.h>
Public Types | |
typedef QValueList< Key > | List |
typedef QValueList< int > | TypeList |
enum | Types { X509, PGP, Custom } |
Key types. More... | |
Public Member Functions | |
Key (const QString &text=QString::null, int type=PGP) | |
Constructor. | |
~Key () | |
Destructor. | |
bool | operator== (const Key &) const |
bool | operator!= (const Key &) const |
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 Member Functions | |
TypeList | typeList () |
Returns a list of all available key types. | |
QString | typeLabel (int type) |
Returns a translated label for a given key type. | |
Friends | |
QDataStream & | operator<< (QDataStream &, const Key &) |
QDataStream & | operator>> (QDataStream &, Key &) |
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.
|
|
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,.
|
|
Sets custom type string.
|
|
Returns the type,.
|
|
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: