[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_3_BRANCH: kdepim/libkdenetwork/gpgmepp
From: Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date: 2004-10-25 8:08:44
Message-ID: 20041025080844.CB90416BED () office ! kde ! org
[Download RAW message or body]
CVS commit by mutz:
Add Error::code() and Error::sourceID()
M +9 -1 context.cpp 1.12.2.1
M +3 -0 context.h 1.12.4.1
--- kdepim/libkdenetwork/gpgmepp/context.cpp #1.12:1.12.2.1
@@ -61,6 +61,14 @@ namespace GpgME {
}
+ int Error::code() const {
+ return gpgme_err_code( mErr );
+ }
+
+ int Error::sourceID() const {
+ return gpgme_err_source( mErr );
+ }
+
bool Error::isCanceled() const {
- return gpgme_err_code( mErr ) == GPG_ERR_CANCELED;
+ return code() == GPG_ERR_CANCELED;
}
--- kdepim/libkdenetwork/gpgmepp/context.h #1.12:1.12.4.1
@@ -53,4 +53,7 @@ namespace GpgME {
const char * asString() const;
+ int code() const;
+ int sourceID() const;
+
bool isCanceled() const;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic