diff options
| author | Andre Heinecke <[email protected]> | 2016-09-16 14:55:25 +0000 | 
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2016-09-16 14:58:39 +0000 | 
| commit | 77aecfb5c97cea1a99f1ff627748cf71767bac5c (patch) | |
| tree | 6e8b6d4d64946487a3f06a3c4f43789665d1b3fc /lang/qt/src/protocol_p.h | |
| parent | cpp: Add support for gpgme_op_tofu_policy (diff) | |
| download | gpgme-77aecfb5c97cea1a99f1ff627748cf71767bac5c.tar.gz gpgme-77aecfb5c97cea1a99f1ff627748cf71767bac5c.zip  | |
qt: Add job for tofupolicy
* lang/qt/src/job.cpp, lang/qt/src/protocol.h,
lang/qt/src/protocol_p.h: Register job.
* lang/qt/src/qgpgmetofupolicyjob.cpp,
lang/qt/src/qgpgmetofupolicyjob.h,
lang/qt/src/tofupolicyjob.h: New.
* lang/qt/src/Makefile.am: Update accordingly.
Diffstat (limited to 'lang/qt/src/protocol_p.h')
| -rw-r--r-- | lang/qt/src/protocol_p.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/qt/src/protocol_p.h b/lang/qt/src/protocol_p.h index 2ce41824..7f66fa49 100644 --- a/lang/qt/src/protocol_p.h +++ b/lang/qt/src/protocol_p.h @@ -58,6 +58,7 @@  #include "qgpgmeadduseridjob.h"  #include "qgpgmekeyformailboxjob.h"  #include "qgpgmewkspublishjob.h" +#include "qgpgmetofupolicyjob.h"  namespace  { @@ -400,6 +401,18 @@ public:          }          return new QGpgME::QGpgMEWKSPublishJob(context.release());      } + +    QGpgME::TofuPolicyJob *tofuPolicyJob() const Q_DECL_OVERRIDE +    { +        if (mProtocol != GpgME::OpenPGP) { +            return Q_NULLPTR; +        } +        GpgME::Context *context = GpgME::Context::createForProtocol(mProtocol); +        if (!context) { +            return Q_NULLPTR; +        } +        return new QGpgME::QGpgMETofuPolicyJob(context); +    }  };  }  | 
