summaryrefslogtreecommitdiffstats
path: root/common/notification.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-25 08:27:06 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-25 09:23:55 +0100
commit22af1ed535b4afc8db3804e72bc5adb1a1b28d60 (patch)
tree07665f41d5b40d658e95a64bb76020f1fd9d088e /common/notification.h
parent64d7d7bdd1edb2bcc305ca007784d0708cf7ef3c (diff)
downloadsink-22af1ed535b4afc8db3804e72bc5adb1a1b28d60.tar.gz
sink-22af1ed535b4afc8db3804e72bc5adb1a1b28d60.zip
Added the flush command.
Instead of trying to actually flush queues, we send a special command through the same queues as the other commands and can thus guarantee that the respective commands have been processed without blocking anything.
Diffstat (limited to 'common/notification.h')
-rw-r--r--common/notification.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/notification.h b/common/notification.h
index dcf00a3..b1bd290 100644
--- a/common/notification.h
+++ b/common/notification.h
@@ -37,17 +37,19 @@ public:
37 Warning, 37 Warning,
38 Progress, 38 Progress,
39 Inspection, 39 Inspection,
40 RevisionUpdate 40 RevisionUpdate,
41 FlushCompletion
41 }; 42 };
42 enum InspectionCode { 43 enum InspectionCode {
43 Success, 44 Success = 0,
44 Failure 45 Failure
45 }; 46 };
46 47
47 QByteArray id; 48 QByteArray id;
48 int type; 49 int type = 0;
49 QString message; 50 QString message;
50 int code; 51 //A return code. Zero typically indicates success.
52 int code = 0;
51}; 53};
52} 54}
53 55