summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mime/mimetreeparser/enums.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-29 16:17:04 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-04 12:57:04 +0200
commite452707fdfbd61be1e5633b516b653b7337e7865 (patch)
tree1e1d4b48ebf8d381f292436f2ba04b8763edc5de /framework/src/domain/mime/mimetreeparser/enums.h
parent5a1033bdace740799a6e03389bee30e5a4de5d44 (diff)
downloadkube-e452707fdfbd61be1e5633b516b653b7337e7865.tar.gz
kube-e452707fdfbd61be1e5633b516b653b7337e7865.zip
Reduced the messagetreeparser to aproximately what we actually require
While in a much more managable state it's still not pretty. However, further refactoring can now gradually happen as we need to do further work on it. Things that should happen eventually: * Simplify the logic that creates the messageparts (we don't need the whole formatter plugin complexity) * Get rid of the nodehelper (let the parts hold the necessary data) * Get rid of partmetadata (let the part handleit)
Diffstat (limited to 'framework/src/domain/mime/mimetreeparser/enums.h')
-rw-r--r--framework/src/domain/mime/mimetreeparser/enums.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/enums.h b/framework/src/domain/mime/mimetreeparser/enums.h
new file mode 100644
index 00000000..bec5a028
--- /dev/null
+++ b/framework/src/domain/mime/mimetreeparser/enums.h
@@ -0,0 +1,54 @@
1/*
2 Copyright (c) 2016 Sandro Knauß <sknauss@kde.org>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/
18
19#ifndef __MIMETREEPARSER_ENUMS_H__
20#define __MIMETREEPARSER_ENUMS_H__
21
22namespace MimeTreeParser
23{
24
25/**
26 * The display update mode: Force updates the display immediately, Delayed updates
27 * after some time (150ms by default)
28 */
29enum UpdateMode {
30 Force = 0,
31 Delayed
32};
33
34/** Flags for the encryption state. */
35typedef enum {
36 KMMsgEncryptionStateUnknown = ' ',
37 KMMsgNotEncrypted = 'N',
38 KMMsgPartiallyEncrypted = 'P',
39 KMMsgFullyEncrypted = 'F',
40 KMMsgEncryptionProblematic = 'X'
41} KMMsgEncryptionState;
42
43/** Flags for the signature state. */
44typedef enum {
45 KMMsgSignatureStateUnknown = ' ',
46 KMMsgNotSigned = 'N',
47 KMMsgPartiallySigned = 'P',
48 KMMsgFullySigned = 'F',
49 KMMsgSignatureProblematic = 'X'
50} KMMsgSignatureState;
51
52}
53
54#endif