diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-11 20:38:09 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-11 23:55:32 +0100 |
commit | d5c44099863d0968a0cbf8f10f04ecf3f4e8ff17 (patch) | |
tree | 7f481f96abd47a3a04c40b4fe0d09d9cdf14f00d /framework/src/domain/mime/mimetreeparser/decryptverifybodypartmemento.h | |
parent | 9f2b3626cc3399c47736faa1b9954f7dbdbe8bd6 (diff) | |
download | kube-d5c44099863d0968a0cbf8f10f04ecf3f4e8ff17.tar.gz kube-d5c44099863d0968a0cbf8f10f04ecf3f4e8ff17.zip |
Stop using useless abstractions (that are not even threadsafe)
Diffstat (limited to 'framework/src/domain/mime/mimetreeparser/decryptverifybodypartmemento.h')
-rw-r--r-- | framework/src/domain/mime/mimetreeparser/decryptverifybodypartmemento.h | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/decryptverifybodypartmemento.h b/framework/src/domain/mime/mimetreeparser/decryptverifybodypartmemento.h deleted file mode 100644 index 4781abe2..00000000 --- a/framework/src/domain/mime/mimetreeparser/decryptverifybodypartmemento.h +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | /* | ||
2 | Copyright (c) 2014-2016 Montel Laurent <montel@kde.org> | ||
3 | |||
4 | This program is free software; you can redistribute it and/or modify it | ||
5 | under the terms of the GNU General Public License, version 2, as | ||
6 | published by the Free Software Foundation. | ||
7 | |||
8 | This program is distributed in the hope that it will be useful, but | ||
9 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
11 | General Public License for more details. | ||
12 | |||
13 | You should have received a copy of the GNU General Public License along | ||
14 | with this program; if not, write to the Free Software Foundation, Inc., | ||
15 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
16 | */ | ||
17 | |||
18 | #ifndef __MIMETREEPARSER_DECRYPTVERIFYBODYPARTMEMENTO_H__ | ||
19 | #define __MIMETREEPARSER_DECRYPTVERIFYBODYPARTMEMENTO_H__ | ||
20 | |||
21 | #include "cryptobodypartmemento.h" | ||
22 | |||
23 | #include <gpgme++/verificationresult.h> | ||
24 | #include <gpgme++/decryptionresult.h> | ||
25 | |||
26 | #include <QPointer> | ||
27 | |||
28 | #include "bodypart.h" | ||
29 | |||
30 | namespace QGpgME | ||
31 | { | ||
32 | class DecryptVerifyJob; | ||
33 | } | ||
34 | |||
35 | namespace MimeTreeParser | ||
36 | { | ||
37 | |||
38 | class DecryptVerifyBodyPartMemento | ||
39 | : public CryptoBodyPartMemento | ||
40 | { | ||
41 | Q_OBJECT | ||
42 | public: | ||
43 | DecryptVerifyBodyPartMemento(QGpgME::DecryptVerifyJob *job, const QByteArray &cipherText); | ||
44 | ~DecryptVerifyBodyPartMemento(); | ||
45 | |||
46 | bool start() Q_DECL_OVERRIDE; | ||
47 | void exec() Q_DECL_OVERRIDE; | ||
48 | |||
49 | const QByteArray &plainText() const | ||
50 | { | ||
51 | return m_plainText; | ||
52 | } | ||
53 | const GpgME::DecryptionResult &decryptResult() const | ||
54 | { | ||
55 | return m_dr; | ||
56 | } | ||
57 | const GpgME::VerificationResult &verifyResult() const | ||
58 | { | ||
59 | return m_vr; | ||
60 | } | ||
61 | |||
62 | private Q_SLOTS: | ||
63 | void slotResult(const GpgME::DecryptionResult &dr, | ||
64 | const GpgME::VerificationResult &vr, | ||
65 | const QByteArray &plainText); | ||
66 | |||
67 | private: | ||
68 | void saveResult(const GpgME::DecryptionResult &, | ||
69 | const GpgME::VerificationResult &, | ||
70 | const QByteArray &); | ||
71 | private: | ||
72 | // input: | ||
73 | const QByteArray m_cipherText; | ||
74 | QPointer<QGpgME::DecryptVerifyJob> m_job; | ||
75 | // output: | ||
76 | GpgME::DecryptionResult m_dr; | ||
77 | GpgME::VerificationResult m_vr; | ||
78 | QByteArray m_plainText; | ||
79 | }; | ||
80 | } | ||
81 | #endif // __MIMETREEPARSER_DECRYPTVERIFYBODYPARTMEMENTO_H__ | ||