KABC::Key Class Reference
A class to store an encryption key.
More...
#include <key.h>
List of all members.
Detailed Description
A class to store an encryption key.
Definition at line 31 of file key.h.
Member Enumeration Documentation
|
Key types.
- X509 - X509 key
- PGP - Pretty Good Privacy key
- Custom - Custom or IANA conform key
Definition at line 47 of file key.h. |
Constructor & Destructor Documentation
Key::Key |
( |
const QString & |
text = QString::null , |
|
|
int |
type = PGP |
|
) |
|
|
|
Destructor.
Definition at line 34 of file key.cpp. |
Member Function Documentation
void Key::setId |
( |
const QString & |
id |
) |
|
|
|
Sets the unique identifier.
Definition at line 56 of file key.cpp. |
|
Returns the unique identifier.
Definition at line 61 of file key.cpp. |
void Key::setBinaryData |
( |
const QByteArray & |
binary |
) |
|
|
|
Sets binary data.
Definition at line 66 of file key.cpp. |
|
Returns the binary data.
Definition at line 72 of file key.cpp. |
void Key::setTextData |
( |
const QString & |
text |
) |
|
|
|
Sets text data.
Definition at line 77 of file key.cpp. |
|
Returns the text data.
Definition at line 83 of file key.cpp. |
bool Key::isBinary |
( |
|
) |
const |
|
|
Returns whether the key contains binary or text data.
Definition at line 88 of file key.cpp. |
void Key::setType |
( |
int |
type |
) |
|
|
|
Sets the type,.
- See also:
- Type.
Definition at line 93 of file key.cpp. |
void Key::setCustomTypeString |
( |
const QString & |
custom |
) |
|
|
|
Sets custom type string.
Definition at line 98 of file key.cpp. |
|
Returns the type,.
- See also:
- Type.
Definition at line 103 of file key.cpp. |
QString Key::customTypeString |
( |
|
) |
const |
|
|
Returns the custom type string.
Definition at line 108 of file key.cpp. |
|
Returns a list of all available key types.
Definition at line 113 of file key.cpp. |
QString Key::typeLabel |
( |
int |
type |
) |
[static] |
|
|
Returns a translated label for a given key type.
Definition at line 123 of file key.cpp. |
The documentation for this class was generated from the following files:
This file is part of the documentation for kabc Library Version 3.2.3.