• 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
kgpgdecrypt.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010,2011 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 KGPGDECRYPT_H
15 #define KGPGDECRYPT_H
16 
17 #include <QObject>
18 
19 #include <KUrl>
20 
21 #include "kgpgtextorfiletransaction.h"
22 
23 class QProcess;
24 class QStringList;
25 
29 class KGpgDecrypt: public KGpgTextOrFileTransaction {
30  Q_OBJECT
31 
32  Q_DISABLE_COPY(KGpgDecrypt)
33  KGpgDecrypt(); // = delete C++0x
34 public:
40  explicit KGpgDecrypt(QObject *parent, const QString &text = QString());
41 
47  KGpgDecrypt(QObject *parent, const KUrl::List &files);
48 
55  KGpgDecrypt(QObject *parent, const KUrl &infile, const KUrl &outfile);
56 
60  virtual ~KGpgDecrypt();
61 
66  QStringList decryptedText() const;
67 
74  static bool isEncryptedText(const QString &text, int *startPos = NULL, int *endPos = NULL);
75 
76 protected:
77  virtual QStringList command() const;
78  virtual bool nextLine(const QString &line);
79 
80 private:
81  int m_fileIndex;
82  int m_plainLength;
83  const QString m_outFilename;
84 };
85 
86 #endif // KGPGDECRYPT_H
KGpgTextOrFileTransaction
feed a text or file through gpg
Definition: kgpgtextorfiletransaction.h:29
KGpgDecrypt
decrypt the given text or files
Definition: kgpgdecrypt.h:29
KGpgDecrypt::nextLine
virtual bool nextLine(const QString &line)
Called for every line the gpg process writes.
Definition: kgpgdecrypt.cpp:112
kgpgtextorfiletransaction.h
KGpgDecrypt::~KGpgDecrypt
virtual ~KGpgDecrypt()
destructor
Definition: kgpgdecrypt.cpp:43
KGpgDecrypt::isEncryptedText
static bool isEncryptedText(const QString &text, int *startPos=NULL, int *endPos=NULL)
check if the given text contains an encoded message
Definition: kgpgdecrypt.cpp:93
QProcess
QObject
QString
QStringList
KGpgDecrypt::command
virtual QStringList command() const
Definition: kgpgdecrypt.cpp:48
QObject::parent
QObject * parent() const
KGpgDecrypt::decryptedText
QStringList decryptedText() const
get decryption result
Definition: kgpgdecrypt.cpp:63
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