33 #ifndef QCA_SECUREMESSAGE_H
34 #define QCA_SECUREMESSAGE_H
45 class SecureMessageSystem;
101 PGPKey pgpPublicKey()
const;
106 PGPKey pgpSecretKey()
const;
113 void setPGPPublicKey(
const PGPKey &pub);
120 void setPGPSecretKey(
const PGPKey &sec);
151 void setX509KeyBundle(
const KeyBundle &kb);
156 bool havePrivate()
const;
165 QString name()
const;
169 QSharedDataPointer<Private> d;
238 IdentityResult identityResult()
const;
253 QDateTime timestamp()
const;
257 QSharedDataPointer<Private> d;
401 bool canSignMultiple()
const;
410 bool canClearsign()
const;
421 bool canSignAndEncrypt()
const;
433 bool bundleSignerEnabled()
const;
438 bool smimeAttributesEnabled()
const;
443 Format format()
const;
468 void setBundleSignerEnabled(
bool b);
480 void setSMIMEAttributesEnabled(
bool b);
489 void setFormat(Format f);
609 void startSign(SignMode m = Message);
618 void startVerify(
const QByteArray &detachedSig = QByteArray());
629 void startSignAndEncrypt();
640 void update(
const QByteArray &in);
654 int bytesAvailable()
const;
687 bool waitForFinished(
int msecs = 30000);
697 bool success()
const;
705 Error errorCode()
const;
713 QByteArray signature()
const;
718 QString hashName()
const;
728 bool wasSigned()
const;
736 bool verifySuccess()
const;
757 QString diagnosticText()
const;
777 void bytesWritten(
int bytes);
789 friend class Private;
851 explicit OpenPGP(
QObject *parent = 0,
const QString &provider = QString());
897 explicit CMS(
QObject *parent = 0,
const QString &provider = QString());