#include <QtCrypto>
Public Member Functions | |
virtual ConvertResult | fromAscii (const QString &s)=0 |
virtual ConvertResult | fromBinary (const QByteArray &a)=0 |
PGPKeyContext (Provider *p) | |
virtual const PGPKeyContextProps * | props () const =0 |
virtual QString | toAscii () const =0 |
virtual QByteArray | toBinary () const =0 |
QCA::PGPKeyContext::PGPKeyContext | ( | Provider * | p | ) | [inline] |
virtual ConvertResult QCA::PGPKeyContext::fromAscii | ( | const QString & | s | ) | [pure virtual] |
Read ascii-armored input and convert it into a key.
Returns QCA::ConvertGood if successful, otherwise some error value.
s | the input data |
virtual ConvertResult QCA::PGPKeyContext::fromBinary | ( | const QByteArray & | a | ) | [pure virtual] |
Read binary input and convert it into a key.
Returns QCA::ConvertGood if successful, otherwise some error value.
a | the input data |
virtual const PGPKeyContextProps* QCA::PGPKeyContext::props | ( | ) | const [pure virtual] |
Returns a pointer to the properties of this key.
virtual QString QCA::PGPKeyContext::toAscii | ( | ) | const [pure virtual] |
Convert the key to ascii-armored format, and return the value.
virtual QByteArray QCA::PGPKeyContext::toBinary | ( | ) | const [pure virtual] |
Convert the key to binary format, and return the value.