12#include "kleo_export.h"
16#include <gpgme++/exception.h>
23class KLEO_EXPORT Exception :
public GpgME::Exception
26 Exception(gpg_error_t e,
const std::string &msg, Options opt = NoOptions)
27 : GpgME::Exception(GpgME::Error(e), msg, opt)
30 Exception(gpg_error_t e,
const char *msg, Options opt = NoOptions)
31 : GpgME::Exception(GpgME::Error(e), msg, opt)
34 Exception(gpg_error_t e,
const QString &msg, Options opt = NoOptions)
35 : GpgME::Exception(GpgME::Error(e), msg.toLocal8Bit().constData(), opt)
39 Exception(
const GpgME::Error &e,
const std::string &msg)
40 : GpgME::Exception(e, msg)
43 Exception(
const GpgME::Error &e,
const char *msg)
44 : GpgME::Exception(e, msg)
47 Exception(
const GpgME::Error &e,
const QString &msg)
48 : GpgME::Exception(e, msg.toLocal8Bit().constData())
52 ~Exception() throw() override;
54 const std::
string &messageLocal8Bit()
const
56 return GpgME::Exception::message();
58 gpg_error_t error_code()
const
60 return error().encodedError();
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QString fromLocal8Bit(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.