• 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
kgpgkeyservergettransaction.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 KGPGKEYSERVERGETTRANSACTION_H
15 #define KGPGKEYSERVERGETTRANSACTION_H
16 
17 #include <QObject>
18 #include <QString>
19 #include <QStringList>
20 
21 #include "kgpgkeyservertransaction.h"
22 
26 class KGpgKeyserverGetTransaction: public KGpgKeyserverTransaction {
27  Q_OBJECT
28 
29  Q_DISABLE_COPY(KGpgKeyserverGetTransaction)
33  KGpgKeyserverGetTransaction(); // = delete C++0x
34 
35 public:
47  KGpgKeyserverGetTransaction(QObject *parent, const QString &keyserver, const QStringList &keys, const bool withProgress = false, const QString &proxy = QString());
48  virtual ~KGpgKeyserverGetTransaction();
49 
50  void setKeyIds(const QStringList &keys);
51 
52  const QStringList &getLog() const;
53 
54 protected:
55  virtual QString getGpgCommand() const = 0;
56  virtual bool preStart();
57  virtual bool nextLine(const QString &line);
58 
59 private:
60  int m_cmdpos;
61  QStringList m_keys;
62  QStringList m_log;
63 };
64 
68 class KGpgReceiveKeys: public KGpgKeyserverGetTransaction {
69  Q_OBJECT
70 
71 public:
80  KGpgReceiveKeys(QObject *parent, const QString &keyserver, const QStringList &keys, const bool withProgress = false, const QString &proxy = QString());
81  virtual ~KGpgReceiveKeys();
82 
83 protected:
84  virtual QString getGpgCommand() const;
85 };
86 
90 class KGpgRefreshKeys: public KGpgKeyserverGetTransaction {
91  Q_OBJECT
92 
93 public:
102  KGpgRefreshKeys(QObject *parent, const QString &keyserver, const QStringList &keys, const bool withProgress = false, const QString &proxy = QString());
103  virtual ~KGpgRefreshKeys();
104 
105 protected:
106  virtual QString getGpgCommand() const;
107 };
108 
109 #endif // KGPGUIDTRANSACTION_H
kgpgkeyservertransaction.h
KGpgKeyserverGetTransaction::preStart
virtual bool preStart()
Called before the gpg process is started.
Definition: kgpgkeyservergettransaction.cpp:30
KGpgRefreshKeys::KGpgRefreshKeys
KGpgRefreshKeys(QObject *parent, const QString &keyserver, const QStringList &keys, const bool withProgress=false, const QString &proxy=QString())
construct a new transaction for the given keyserver
Definition: kgpgkeyservergettransaction.cpp:85
KGpgKeyserverGetTransaction::setKeyIds
void setKeyIds(const QStringList &keys)
Definition: kgpgkeyservergettransaction.cpp:65
KGpgKeyserverGetTransaction::nextLine
virtual bool nextLine(const QString &line)
Called for every line the gpg process writes.
Definition: kgpgkeyservergettransaction.cpp:49
KGpgReceiveKeys::~KGpgReceiveKeys
virtual ~KGpgReceiveKeys()
Definition: kgpgkeyservergettransaction.cpp:75
KGpgKeyserverGetTransaction::getLog
const QStringList & getLog() const
Definition: kgpgkeyservergettransaction.cpp:59
KGpgKeyserverGetTransaction::getGpgCommand
virtual QString getGpgCommand() const =0
QObject
KGpgRefreshKeys::getGpgCommand
virtual QString getGpgCommand() const
Definition: kgpgkeyservergettransaction.cpp:95
KGpgKeyserverGetTransaction
base class for transactions downloading from key servers
Definition: kgpgkeyservergettransaction.h:26
QString
KGpgKeyserverGetTransaction::~KGpgKeyserverGetTransaction
virtual ~KGpgKeyserverGetTransaction()
Definition: kgpgkeyservergettransaction.cpp:25
QStringList
KGpgReceiveKeys::KGpgReceiveKeys
KGpgReceiveKeys(QObject *parent, const QString &keyserver, const QStringList &keys, const bool withProgress=false, const QString &proxy=QString())
construct a new transaction for the given keyserver
Definition: kgpgkeyservergettransaction.cpp:70
KGpgReceiveKeys
class for downloading new keys from keyserver
Definition: kgpgkeyservergettransaction.h:68
KGpgKeyserverTransaction
base class for transactions involving key servers
Definition: kgpgkeyservertransaction.h:27
KGpgRefreshKeys::~KGpgRefreshKeys
virtual ~KGpgRefreshKeys()
Definition: kgpgkeyservergettransaction.cpp:90
QObject::parent
QObject * parent() const
KGpgReceiveKeys::getGpgCommand
virtual QString getGpgCommand() const
Definition: kgpgkeyservergettransaction.cpp:80
KGpgRefreshKeys
class for refreshing keys already in the keyring from keyserver
Definition: kgpgkeyservergettransaction.h:90
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