[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-04-25 16:52:48
Message-ID: 20040425165248.086109A66 () office ! kde ! org
[Download RAW message or body]

CVS commit by mutz: 

Add a ctor that takes a _gpgme_op_keylist_result_t directly, for kpgp integration.


  M +3 -0      gpgmefw.h   1.4
  M +7 -0      keylistresult.cpp   1.5
  M +1 -0      keylistresult.h   1.4


--- kdepim/libkdenetwork/gpgmepp/gpgmefw.h  #1.3:1.4
@@ -55,3 +55,6 @@ struct _gpgme_engine_info;
 typedef struct _gpgme_engine_info * gpgme_engine_info_t;
 
+struct _gpgme_op_keylist_result;
+typedef struct _gpgme_op_keylist_result * gpgme_keylist_result_t;
+
 #endif // __GPGMEPP_GPGMEFW_H__

--- kdepim/libkdenetwork/gpgmepp/keylistresult.cpp  #1.4:1.5
@@ -50,4 +50,11 @@ GpgME::KeyListResult::KeyListResult( gpg
 }
 
+GpgME::KeyListResult::KeyListResult( const Error & error, const _gpgme_op_keylist_result & res )
+  : GpgME::Result( error ), d( 0 )
+{
+  d = new Private( res );
+  d->ref();
+}
+
 make_standard_stuff(KeyListResult)
 

--- kdepim/libkdenetwork/gpgmepp/keylistresult.h  #1.3:1.4
@@ -34,4 +34,5 @@ namespace GpgME {
     KeyListResult( gpgme_ctx_t ctx=0, int error=0 );
     explicit KeyListResult( const Error & err );
+    explicit KeyListResult( const Error & err, const _gpgme_op_keylist_result & res );
     KeyListResult( const KeyListResult & other );
     ~KeyListResult();


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

Configure | About | News | Add a list | Sponsored by KoreLogic