From d75c118aae18e20f08dbbb69c7998e1f3694ccd0 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 4 Jul 2016 11:25:40 +0200 Subject: Cpp: Add support for pinentry_mode * lang/cpp/src/context.cpp (Context::pinentryMode): Return mode. (Context::setPinentryMode): Set mode. * lang/cpp/src/context.h (PinentryMode): Add enum. --- lang/cpp/src/context.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lang/cpp/src/context.h') diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index a8112d62..c9c2af73 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -117,6 +117,16 @@ public: GpgME::Error setEngineFileName(const char *filename); GpgME::Error setEngineHomeDirectory(const char *filename); + enum PinentryMode{ + PinentryDefault = 0, + PinentryAsk = 1, + PinentryCancel = 2, + PinentryError = 3, + PinentryLoopback = 4 + }; + GpgME::Error setPinentryMode(PinentryMode which); + PinentryMode pinentryMode() const; + private: friend class ::GpgME::EventLoopInteractor; void installIOCallbacks(gpgme_io_cbs *iocbs); -- cgit v1.2.3