diff options
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 afb4f9cb..2ce41824 100644 --- a/lang/qt/src/protocol_p.h +++ b/lang/qt/src/protocol_p.h @@ -57,6 +57,7 @@  #include "qgpgmechangepasswdjob.h"  #include "qgpgmeadduseridjob.h"  #include "qgpgmekeyformailboxjob.h" +#include "qgpgmewkspublishjob.h"  namespace  { @@ -387,6 +388,18 @@ public:          }          return new QGpgME::QGpgMEKeyForMailboxJob(context);      } + +    QGpgME::WKSPublishJob *wksPublishJob() const Q_DECL_OVERRIDE +    { +        if (mProtocol != GpgME::OpenPGP) { +            return Q_NULLPTR; +        } +        auto context = GpgME::Context::createForEngine(GpgME::SpawnEngine); +        if (!context) { +            return Q_NULLPTR; +        } +        return new QGpgME::QGpgMEWKSPublishJob(context.release()); +    }  };  } | 
