• 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
kgpgsigntext.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 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 KGPGSIGNTEXT_H
15 #define KGPGSIGNTEXT_H
16 
17 #include "kgpgtextorfiletransaction.h"
18 
19 #include <KUrl>
20 #include <QObject>
21 #include <QString>
22 #include <QStringList>
23 
24 class QProcess;
25 
29 class KGpgSignText: public KGpgTextOrFileTransaction {
30  Q_OBJECT
31 
32  Q_DISABLE_COPY(KGpgSignText)
33  KGpgSignText(); // = delete C++0x
34 public:
35  enum SignOption {
36  DefaultSignature = 0,
37  AsciiArmored = 0x1,
38  DetachedSignature = 0x2,
39  };
40  Q_DECLARE_FLAGS(SignOptions, SignOption);
41 
49  KGpgSignText(QObject *parent, const QString &signId, const QString &text = QString(), const SignOptions &options = AsciiArmored, const QStringList &extraOptions = QStringList());
50 
61  KGpgSignText(QObject *parent, const QString &signId, const KUrl::List &files, const SignOptions &options = DefaultSignature, const QStringList &extraOptions = QStringList());
62 
66  virtual ~KGpgSignText();
67 
72  QStringList signedText() const;
73 
74 protected:
75  virtual QStringList command() const;
76 
77 private:
78  int m_fileIndex;
79  const SignOptions m_options;
80  const QString m_signId;
81  QStringList m_extraOptions;
82 };
83 
84 Q_DECLARE_OPERATORS_FOR_FLAGS(KGpgSignText::SignOptions);
85 
86 #endif // KGPGSIGNTEXT_H
KGpgTextOrFileTransaction
feed a text or file through gpg
Definition: kgpgtextorfiletransaction.h:29
KGpgSignText::AsciiArmored
output the data as printable ASCII as opposed to binary data
Definition: kgpgsigntext.h:37
kgpgtextorfiletransaction.h
QProcess
QObject
KGpgSignText::~KGpgSignText
virtual ~KGpgSignText()
destructor
Definition: kgpgsigntext.cpp:38
KGpgSignText::SignOption
SignOption
Definition: kgpgsigntext.h:35
KGpgSignText::Q_DECLARE_FLAGS
Q_DECLARE_FLAGS(SignOptions, SignOption)
QString
KGpgSignText
sign the given text or files
Definition: kgpgsigntext.h:29
QStringList
KGpgSignText::signedText
QStringList signedText() const
get signing result
Definition: kgpgsigntext.cpp:74
KGpgSignText::command
virtual QStringList command() const
Definition: kgpgsigntext.cpp:43
Q_DECLARE_OPERATORS_FOR_FLAGS
Q_DECLARE_OPERATORS_FOR_FLAGS(KGpgSignText::SignOptions)
QObject::parent
QObject * parent() const
KGpgSignText::DefaultSignature
use whatever GnuPGs defaults are
Definition: kgpgsigntext.h:36
KGpgSignText::DetachedSignature
save the signature in a separate file
Definition: kgpgsigntext.h:38
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