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

List:       kde-commits
Subject:    KDE/kdepim/libkleo
From:       Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date:       2008-05-16 18:55:48
Message-ID: 1210964148.164340.27580.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 808497 by osterfeld:

Add ChangeOwnerTrustJob and implementation

 M  +2 -0      CMakeLists.txt  
 M  +13 -0     backends/qgpgme/qgpgmebackend.cpp  
 A             backends/qgpgme/qgpgmechangeownertrustjob.cpp   [License: GPL (v2+) \
(+Qt exception)]  A             backends/qgpgme/qgpgmechangeownertrustjob.h   \
[License: GPL (v2+) (+Qt exception)]  A             kleo/changeownertrustjob.h   \
[License: GPL (v2+) (+Qt exception)]  M  +1 -0      kleo/cryptobackend.cpp  
 M  +19 -17    kleo/cryptobackend.h  
 M  +3 -0      kleo/job.cpp  


--- trunk/KDE/kdepim/libkleo/CMakeLists.txt #808496:808497
@@ -24,6 +24,7 @@
 	backends/qgpgme/qgpgmeexportjob.cpp
 	backends/qgpgme/qgpgmesecretkeyexportjob.cpp
 	backends/qgpgme/qgpgmechangeexpiryjob.cpp
+	backends/qgpgme/qgpgmechangeownertrustjob.cpp
 	backends/qgpgme/qgpgmedownloadjob.cpp
 	backends/qgpgme/qgpgmedeletejob.cpp
 	backends/qgpgme/qgpgmeencryptjob.cpp
@@ -128,6 +129,7 @@
 	kleo/importjob.h
 	kleo/exportjob.h
 	kleo/changeexpiryjob.h
+	kleo/changeownertrustjob.h
 	kleo/downloadjob.h
 	kleo/deletejob.h
 	kleo/encryptjob.h
--- trunk/KDE/kdepim/libkleo/backends/qgpgme/qgpgmebackend.cpp #808496:808497
@@ -50,6 +50,7 @@
 #include "qgpgmeimportjob.h"
 #include "qgpgmeverifyopaquejob.h"
 #include "qgpgmechangeexpiryjob.h"
+#include "qgpgmechangeownertrustjob.h"
 
 #include <gpgme++/error.h>
 #include <gpgme++/engineinfo.h>
@@ -234,6 +235,18 @@
         return 0;
       return new Kleo::QGpgMEChangeExpiryJob( context );
     }
+    
+
+    Kleo::ChangeOwnerTrustJob * changeOwnerTrustJob() const {
+      if ( mProtocol != GpgME::OpenPGP )
+        return 0; // only supported by gpg
+
+      GpgME::Context * context = GpgME::Context::createForProtocol( mProtocol );
+      if ( !context )
+        return 0;
+      return new Kleo::QGpgMEChangeOwnerTrustJob( context );
+    }
+
   };
 
 }
--- trunk/KDE/kdepim/libkleo/kleo/cryptobackend.cpp #808496:808497
@@ -36,3 +36,4 @@
 const char Kleo::CryptoBackend::SMIME[] = "SMIME";
 
 Kleo::ChangeExpiryJob * Kleo::CryptoBackend::Protocol::changeExpiryJob() const { \
return 0; } +Kleo::ChangeOwnerTrustJob * \
                Kleo::CryptoBackend::Protocol::changeOwnerTrustJob() const { return \
                0; }
--- trunk/KDE/kdepim/libkleo/kleo/cryptobackend.h #808496:808497
@@ -52,6 +52,7 @@
   class DecryptVerifyJob;
   class RefreshKeysJob;
   class ChangeExpiryJob;
+  class ChangeOwnerTrustJob;
   class SpecialJob;
 }
 
@@ -98,25 +99,26 @@
 
     virtual QString displayName() const = 0;
 
-    virtual KeyListJob        * keyListJob( bool remote=false, bool \
                includeSigs=false, bool validate=false ) const = 0;
-    virtual EncryptJob        * encryptJob( bool armor=false, bool textmode=false ) \
                const = 0;
-    virtual DecryptJob        * decryptJob() const = 0;
-    virtual SignJob           * signJob( bool armor=false, bool textMode=false ) \
                const = 0;
-    virtual VerifyDetachedJob * verifyDetachedJob( bool textmode=false) const = 0;
-    virtual VerifyOpaqueJob   * verifyOpaqueJob( bool textmode=false ) const = 0;
-    virtual KeyGenerationJob  * keyGenerationJob() const = 0;
-    virtual ImportJob         * importJob() const = 0;
-    virtual ExportJob         * publicKeyExportJob( bool armor=false ) const = 0;
+    virtual KeyListJob          * keyListJob( bool remote=false, bool \
includeSigs=false, bool validate=false ) const = 0; +    virtual EncryptJob          \
* encryptJob( bool armor=false, bool textmode=false ) const = 0; +    virtual \
DecryptJob          * decryptJob() const = 0; +    virtual SignJob             * \
signJob( bool armor=false, bool textMode=false ) const = 0; +    virtual \
VerifyDetachedJob   * verifyDetachedJob( bool textmode=false) const = 0; +    virtual \
VerifyOpaqueJob     * verifyOpaqueJob( bool textmode=false ) const = 0; +    virtual \
KeyGenerationJob    * keyGenerationJob() const = 0; +    virtual ImportJob           \
* importJob() const = 0; +    virtual ExportJob           * publicKeyExportJob( bool \
armor=false ) const = 0;  // @param charset the encoding of the passphrase in the \
                exported file
-    virtual ExportJob         * secretKeyExportJob( bool armor=false, const QString& \
                charset = QString() ) const = 0;
-    virtual DownloadJob       * downloadJob( bool armor=false ) const = 0;
-    virtual DeleteJob         * deleteJob() const = 0;
-    virtual SignEncryptJob    * signEncryptJob( bool armor=false, bool \
                textMode=false ) const = 0;
-    virtual DecryptVerifyJob  * decryptVerifyJob( bool textmode=false ) const = 0;
-    virtual RefreshKeysJob    * refreshKeysJob() const = 0;
-    virtual ChangeExpiryJob   * changeExpiryJob() const;
+    virtual ExportJob           * secretKeyExportJob( bool armor=false, const \
QString& charset = QString() ) const = 0; +    virtual DownloadJob         * \
downloadJob( bool armor=false ) const = 0; +    virtual DeleteJob           * \
deleteJob() const = 0; +    virtual SignEncryptJob      * signEncryptJob( bool \
armor=false, bool textMode=false ) const = 0; +    virtual DecryptVerifyJob    * \
decryptVerifyJob( bool textmode=false ) const = 0; +    virtual RefreshKeysJob      * \
refreshKeysJob() const = 0; +    virtual ChangeExpiryJob     * changeExpiryJob() \
const; +    virtual ChangeOwnerTrustJob * changeOwnerTrustJob() const;
 
-    virtual SpecialJob        * specialJob( const char * type, const \
QMap<QString,QVariant> & args ) const = 0; +    virtual SpecialJob          * \
specialJob( const char * type, const QMap<QString,QVariant> & args ) const = 0;  };
 
 }
--- trunk/KDE/kdepim/libkleo/kleo/job.cpp #808496:808497
@@ -45,6 +45,7 @@
 #include "importjob.h"
 #include "exportjob.h"
 #include "changeexpiryjob.h"
+#include "changeownertrustjob.h"
 #include "downloadjob.h"
 #include "deletejob.h"
 #include "refreshkeysjob.h"
@@ -89,6 +90,7 @@
 make_job_subclass(ImportJob)
 make_job_subclass(ExportJob)
 make_job_subclass(ChangeExpiryJob)
+make_job_subclass(ChangeOwnerTrustJob)
 make_job_subclass(DownloadJob)
 make_job_subclass(DeleteJob)
 make_job_subclass(RefreshKeysJob)
@@ -110,6 +112,7 @@
 #include "importjob.moc"
 #include "exportjob.moc"
 #include "changeexpiryjob.moc"
+#include "changeownertrustjob.moc"
 #include "downloadjob.moc"
 #include "deletejob.moc"
 #include "refreshkeysjob.moc"


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

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