summaryrefslogtreecommitdiffstats
path: root/common/notification.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-17 14:16:43 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-17 14:16:43 +0100
commiteecf234e4fc79320fc74f2e917b9e9777f0761af (patch)
tree4ec041d5d905dbc3d7be71570cab4bd2b61ff2a2 /common/notification.h
parentd40710eb005cde8c6962d6f5689bc63a4745b1c1 (diff)
downloadsink-eecf234e4fc79320fc74f2e917b9e9777f0761af.tar.gz
sink-eecf234e4fc79320fc74f2e917b9e9777f0761af.zip
Added notification code for mailtransport
Diffstat (limited to 'common/notification.h')
-rw-r--r--common/notification.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/common/notification.h b/common/notification.h
index b67a84a..87c22db 100644
--- a/common/notification.h
+++ b/common/notification.h
@@ -36,21 +36,42 @@ public:
36 Status, 36 Status,
37 Info, 37 Info,
38 Warning, 38 Warning,
39 Error,
39 Progress, 40 Progress,
40 Inspection, 41 Inspection,
41 RevisionUpdate, 42 RevisionUpdate,
42 FlushCompletion 43 FlushCompletion
43 }; 44 };
45 /**
46 * Used as code for Inspection type notifications
47 */
44 enum InspectionCode { 48 enum InspectionCode {
45 Success = 0, 49 Success = 0,
46 Failure 50 Failure
47 }; 51 };
52 /**
53 * Used as code for Warning/Error type notifications
54 */
55 enum ErrorCode {
56 NoError = 0,
57 UnknownError,
58 NoServerAvailable,
59 LoginFailed,
60 TransmissionFailed,
61 };
62 /**
63 * Used as code for Info type notifications
64 */
65 enum SuccessCode {
66 TransmissionSucceeded
67 };
48 68
49 QByteArray id; 69 QByteArray id;
50 int type = 0; 70 int type = 0;
51 QString message; 71 QString message;
52 //A return code. Zero typically indicates success. 72 //A return code. Zero typically indicates success.
53 int code = 0; 73 int code = 0;
74 QByteArray resource;
54}; 75};
55} 76}
56 77