KABC::Key Class Reference
A class to store an encryption key. More...
#include <key.h>
Collaboration diagram for KABC::Key:

Public Types | |
typedef QValueList< Key > | List |
typedef QValueList< int > | TypeList |
enum | Types { X509, PGP, Custom } |
Public Member Functions | |
Key (const QString &text=QString::null, int type=PGP) | |
~Key () | |
bool | operator== (const Key &) const |
bool | operator!= (const Key &) const |
void | setId (const QString &id) |
QString | id () const |
void | setBinaryData (const QByteArray &binary) |
QByteArray | binaryData () const |
void | setTextData (const QString &text) |
QString | textData () const |
bool | isBinary () const |
void | setType (int type) |
void | setCustomTypeString (const QString &custom) |
int | type () const |
QString | customTypeString () const |
Static Public Member Functions | |
static TypeList | typeList () |
static QString | typeLabel (int type) |
Friends | |
KABC_EXPORT QDataStream & | operator<< (QDataStream &, const Key &) |
KABC_EXPORT QDataStream & | operator>> (QDataStream &, Key &) |
Detailed Description
A class to store an encryption key.
Definition at line 33 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.
Definition at line 56 of file key.cpp. References id(). |
|
Returns the unique identifier.
Definition at line 61 of file key.cpp. Referenced by setId(). |
|
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: