• 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
kgpgimport.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008,2009,2010 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 KGPGIMPORT_H
15 #define KGPGIMPORT_H
16 
17 #include <QObject>
18 #include <QList>
19 #include <QString>
20 #include <QStringList>
21 
22 #include <KUrl>
23 
24 #include "kgpgtextorfiletransaction.h"
25 
26 class KGpgItemModel;
27 
31 class KGpgImport: public KGpgTextOrFileTransaction {
32  Q_OBJECT
33 
34  Q_DISABLE_COPY(KGpgImport)
35 public:
41  explicit KGpgImport(QObject *parent, const QString &text = QString());
42 
48  KGpgImport(QObject *parent, const KUrl::List &files);
49 
53  virtual ~KGpgImport();
54 
59  QStringList getImportedKeys() const;
60 
76  static QStringList getImportedIds(const QStringList &log, const int reason = -1);
83  QStringList getImportedIds(const int reason = -1) const;
84 
92  QString getImportMessage() const;
93 
102  static QString getImportMessage(const QStringList &log);
103 
112  static QString getDetailedImportMessage(const QStringList &log, const KGpgItemModel *model = NULL);
113 
123  static int isKey(const QString &text, const bool incomplete = false);
124 
125 protected:
126  virtual QStringList command() const;
127 };
128 
129 #endif // KGPGIMPORT_H
KGpgTextOrFileTransaction
feed a text or file through gpg
Definition: kgpgtextorfiletransaction.h:29
KGpgItemModel
Definition: kgpgitemmodel.h:44
kgpgtextorfiletransaction.h
KGpgImport
import one or more keys into the keyring
Definition: kgpgimport.h:31
KGpgImport::getImportMessage
QString getImportMessage() const
get textual summary of the import events
Definition: kgpgimport.cpp:96
KGpgImport::getDetailedImportMessage
static QString getDetailedImportMessage(const QStringList &log, const KGpgItemModel *model=NULL)
get detailed summary of import
Definition: kgpgimport.cpp:206
KGpgImport::getImportedKeys
QStringList getImportedKeys() const
get the names and short fingerprints of the imported keys
Definition: kgpgimport.cpp:47
QObject
KGpgImport::command
virtual QStringList command() const
Definition: kgpgimport.cpp:37
QString
QStringList
KGpgImport::getImportedIds
static QStringList getImportedIds(const QStringList &log, const int reason=-1)
get the full fingerprints of the imported keys
Definition: kgpgimport.cpp:59
KGpgImport::KGpgImport
KGpgImport(QObject *parent, const QString &text=QString())
import given text
Definition: kgpgimport.cpp:22
KGpgImport::~KGpgImport
virtual ~KGpgImport()
destructor
Definition: kgpgimport.cpp:32
KGpgImport::isKey
static int isKey(const QString &text, const bool incomplete=false)
check if the given text contains a private or public key
Definition: kgpgimport.cpp:276
QObject::parent
QObject * parent() const
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