diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 564cff58..1e134a02 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -693,6 +693,10 @@ Error Context::startPasswd(const Key &key) return Error(d->lasterr = gpgme_op_passwd_start(d->ctx, key.impl(), 0U)); } + +#pragma GCC push_diagnostics +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + Error Context::edit(const Key &key, std::unique_ptr func, Data &data) { d->lastop = Private::Edit; @@ -704,6 +708,7 @@ Error Context::edit(const Key &key, std::unique_ptr func, Data & dp ? dp->data : 0)); } + Error Context::startEditing(const Key &key, std::unique_ptr func, Data &data) { d->lastop = Private::Edit; @@ -715,6 +720,7 @@ Error Context::startEditing(const Key &key, std::unique_ptr func dp ? dp->data : 0)); } + EditInteractor *Context::lastEditInteractor() const { return d->lastEditInteractor.get(); @@ -725,6 +731,7 @@ std::unique_ptr Context::takeLastEditInteractor() return std::move(d->lastEditInteractor); } + Error Context::cardEdit(const Key &key, std::unique_ptr func, Data &data) { d->lastop = Private::CardEdit; @@ -747,6 +754,8 @@ Error Context::startCardEditing(const Key &key, std::unique_ptr dp ? dp->data : 0)); } +#pragma GCC pop_diagnostics + EditInteractor *Context::lastCardEditInteractor() const { return d->lastCardEditInteractor.get();