KABC::Key Class Reference
#include <key.h>
Public Types | |
| typedef QList< Key > | List |
| enum | Type { X509, PGP, Custom } |
| typedef QList< Type > | TypeList |
Public Member Functions | |
| Key (const QString &text=QString(), Type type=PGP) | |
| Key (const Key &other) | |
| ~Key () | |
| QByteArray | binaryData () const |
| QString | customTypeString () const |
| QString | id () const |
| bool | isBinary () const |
| bool | operator!= (const Key &) const |
| Key & | operator= (const Key &other) |
| bool | operator== (const Key &) const |
| void | setBinaryData (const QByteArray &data) |
| void | setCustomTypeString (const QString &type) |
| void | setId (const QString &identifier) |
| void | setTextData (const QString &data) |
| void | setType (Type type) |
| QString | textData () const |
| QString | toString () const |
| Type | type () const |
Static Public Member Functions | |
| static QString | typeLabel (Type type) |
| static TypeList | typeList () |
Friends | |
| QDataStream & | operator<< (QDataStream &, const Key &) |
| QDataStream & | operator>> (QDataStream &, Key &) |
Detailed Description
A class to store an encryption key.
Member Typedef Documentation
| typedef QList<Key> KABC::Key::List |
| typedef QList<Type> KABC::Key::TypeList |
Member Enumeration Documentation
| enum KABC::Key::Type |
Constructor & Destructor Documentation
| Key::Key | ( | const QString & | text = QString(), |
| Type | type = PGP |
||
| ) | [explicit] |
Member Function Documentation
| QByteArray Key::binaryData | ( | ) | const |
| QString Key::customTypeString | ( | ) | const |
| bool Key::isBinary | ( | ) | const |
| bool Key::operator!= | ( | const Key & | other | ) | const |
| bool Key::operator== | ( | const Key & | other | ) | const |
| void Key::setBinaryData | ( | const QByteArray & | data | ) |
| void Key::setCustomTypeString | ( | const QString & | type | ) |
| void Key::setId | ( | const QString & | identifier | ) |
| void Key::setTextData | ( | const QString & | data | ) |
| void Key::setType | ( | Type | type | ) |
| QString Key::toString | ( | ) | const |
| QString Key::typeLabel | ( | Type | type | ) | [static] |
| Key::TypeList Key::typeList | ( | ) | [static] |
Friends And Related Function Documentation
| QDataStream& operator<< | ( | QDataStream & | , |
| const Key & | |||
| ) | [friend] |
Serializes the key object into the stream.
| QDataStream& operator>> | ( | QDataStream & | , |
| Key & | |||
| ) | [friend] |
Initializes the key object from the stream.
The documentation for this class was generated from the following files:
KDE 4.7 API Reference