[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/libkdenetwork/gpgmepp
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2004-10-25 8:10:16
Message-ID: 20041025081016.DF38516BFC () office ! kde ! org
[Download RAW message or body]

CVS commit by mutz: 

From KDE_3_3_BRANCH: Add Error::code() and Error::sourceID()


  M +9 -1      context.cpp   1.13
  M +3 -0      context.h   1.13


--- kdepim/libkdenetwork/gpgmepp/context.cpp  #1.12:1.13
@@ -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.13
@@ -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