• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
  • transactions
kgpgtransactionjob.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Rolf Eike Beer <kde@opensource.sf-tec.de>
3  */
4 
5 /***************************************************************************
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #ifndef KGPGTRANSACTIONJOB_H
15 #define KGPGTRANSACTIONJOB_H
16 
17 #include <KJob>
18 
19 class KGpgTransaction;
20 
28 class KGpgTransactionJob : public KJob {
29  Q_OBJECT
30 
31  Q_DISABLE_COPY(KGpgTransactionJob)
32  KGpgTransactionJob(); // = delete C++0x
33 
34  KGpgTransaction * const m_transaction;
35  int m_result;
36 
37 public:
45  explicit KGpgTransactionJob(KGpgTransaction *transaction);
49  virtual ~KGpgTransactionJob();
50 
54  virtual void start();
55 
59  const KGpgTransaction *getTransaction() const;
60 
64  int getResultCode() const;
65 
66 protected:
67  virtual bool doKill();
68 
69 private slots:
70  void slotTransactionDone(int result);
71  void slotStatusMessage(const QString &plain);
72  void slotInfoProgress(qulonglong processedAmount, qulonglong totalAmount);
73 };
74 
75 #endif
76 
77 
KGpgTransactionJob::doKill
virtual bool doKill()
Definition: kgpgtransactionjob.cpp:75
KGpgTransactionJob::getResultCode
int getResultCode() const
get the result of the transaction
Definition: kgpgtransactionjob.cpp:50
KGpgTransactionJob
Wrap a GnuPG transaction in a job.
Definition: kgpgtransactionjob.h:28
KGpgTransactionJob::getTransaction
const KGpgTransaction * getTransaction() const
get the transaction this job is handling
Definition: kgpgtransactionjob.cpp:44
KGpgTransactionJob::~KGpgTransactionJob
virtual ~KGpgTransactionJob()
KGpgTransactionJob destructor.
Definition: kgpgtransactionjob.cpp:27
QString
KGpgTransactionJob::start
virtual void start()
starts the transaction
Definition: kgpgtransactionjob.cpp:33
KGpgTransaction
Process one GnuPG operation.
Definition: kgpgtransaction.h:44
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal