• 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
  • editor
kgpgtextedit.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 Jean-Baptiste Mardelle <bj@altern.org>
3  * Copyright (C) 2009,2010,2011 Rolf Eike Beer <kde@opensource.sf-tec.de>
4  */
5 
6 /***************************************************************************
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  ***************************************************************************/
14 
15 #ifndef KGPGTEXTEDIT_H
16 #define KGPGTEXTEDIT_H
17 
18 #include <QString>
19 
20 #include <KTextEdit>
21 #include <KUrl>
22 
23 class QDragEnterEvent;
24 class QDropEvent;
25 
26 class KGpgItemModel;
27 class KeysManager;
28 
29 class KgpgTextEdit : public KTextEdit
30 {
31  Q_OBJECT
32 
33 public:
34  explicit KgpgTextEdit(QWidget *parent, KGpgItemModel *model, KeysManager *manager);
35  ~KgpgTextEdit();
36 
37  void signVerifyText(const QString &message);
38  void openDroppedFile(const KUrl &url, const bool probe);
39 
40 signals:
41  void newText();
42  void resetEncoding(bool);
43  void verifyFinished();
44 
45 public slots:
46  void slotDroppedFile(const KUrl &url);
47  void slotEncode();
48  void slotDecode();
49  void slotSign(const QString &message);
50  void slotVerify(const QString &message);
51  void slotSignVerify();
52  void slotHighlightText(const QString &, const int matchingindex, const int matchedlength);
53  void slotVerifyDone(int result);
54 
55 protected:
56  void dragEnterEvent(QDragEnterEvent *e);
57  void dropEvent(QDropEvent *e);
58 
59 private:
60  void verifyKeyNeeded(const QString &id);
61 
62 private slots:
63  void slotEncodeUpdate(int result);
64  void slotSignUpdate(int result);
65 
66  void slotDecryptDone(int result);
67 
68 private:
69  QString m_tempfile;
70 
71  int m_posstart;
72  int m_posend;
73 
74  KGpgItemModel *m_model;
75  KeysManager *m_keysmanager;
76 };
77 
78 #endif // KGPGVIEW_H
KGpgItemModel
Definition: kgpgitemmodel.h:44
QWidget
KgpgTextEdit::slotSign
void slotSign(const QString &message)
Definition: kgpgtextedit.cpp:204
KgpgTextEdit::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *e)
Definition: kgpgtextedit.cpp:59
KgpgTextEdit::verifyFinished
void verifyFinished()
KgpgTextEdit::signVerifyText
void signVerifyText(const QString &message)
Definition: kgpgtextedit.cpp:346
KgpgTextEdit::openDroppedFile
void openDroppedFile(const KUrl &url, const bool probe)
Definition: kgpgtextedit.cpp:82
KgpgTextEdit::~KgpgTextEdit
~KgpgTextEdit()
Definition: kgpgtextedit.cpp:55
KgpgTextEdit::newText
void newText()
QDropEvent
KgpgTextEdit::slotDecode
void slotDecode()
Definition: kgpgtextedit.cpp:192
KeysManager
Definition: keysmanager.h:66
KgpgTextEdit
Definition: kgpgtextedit.h:29
QString
KgpgTextEdit::KgpgTextEdit
KgpgTextEdit(QWidget *parent, KGpgItemModel *model, KeysManager *manager)
Definition: kgpgtextedit.cpp:42
KgpgTextEdit::slotHighlightText
void slotHighlightText(const QString &, const int matchingindex, const int matchedlength)
Definition: kgpgtextedit.cpp:354
QDragEnterEvent
KgpgTextEdit::dropEvent
void dropEvent(QDropEvent *e)
Definition: kgpgtextedit.cpp:66
KgpgTextEdit::slotSignVerify
void slotSignVerify()
Definition: kgpgtextedit.cpp:341
KgpgTextEdit::slotVerifyDone
void slotVerifyDone(int result)
Definition: kgpgtextedit.cpp:296
KgpgTextEdit::resetEncoding
void resetEncoding(bool)
KgpgTextEdit::slotDroppedFile
void slotDroppedFile(const KUrl &url)
Definition: kgpgtextedit.cpp:77
KgpgTextEdit::slotVerify
void slotVerify(const QString &message)
Definition: kgpgtextedit.cpp:224
KgpgTextEdit::slotEncode
void slotEncode()
Definition: kgpgtextedit.cpp:156
KTextEdit
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