2
* Copyright (C) 2002 Jean-Baptiste Mardelle <bj@altern.org>
3
* Copyright (C) 2009,2010,2011 Rolf Eike Beer <kde@opensource.sf-tec.de>
6
/***************************************************************************
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. *
13
***************************************************************************/
15
#ifndef KGPGTEXTEDIT_H
16
#define KGPGTEXTEDIT_H
23
class QDragEnterEvent;
29
class KgpgTextEdit : public KTextEdit
34
explicit KgpgTextEdit(QWidget *parent, KGpgItemModel *model, KeysManager *manager);
37
void signVerifyText(const QString &message);
38
void openDroppedFile(const KUrl &url, const bool probe);
42
void resetEncoding(bool);
43
void verifyFinished();
46
void slotDroppedFile(const KUrl &url);
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);
55
void dragEnterEvent(QDragEnterEvent *e);
56
void dropEvent(QDropEvent *e);
59
bool checkForUtf8(const QString &text);
62
void slotEncodeUpdate(int result);
63
void slotSignUpdate(const QString &content);
64
void slotVerifySuccess(const QString &content, const QString &log);
65
void slotVerifyKeyNeeded(const QString &id);
67
void slotDecryptDone(int result);
75
KGpgItemModel *m_model;
76
KeysManager *m_keysmanager;