summaryrefslogtreecommitdiff
path: root/src/drumgizmo.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-22 22:42:05 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-22 22:42:05 +0100
commit47e1f28f1fe9fecf969d63f059b8ec8c0184605e (patch)
tree47ac2c6a2256b75601fa7077c994cdbfbeadc62a /src/drumgizmo.h
parent70cc80a11a44c73c3cf548c7cedf2a520a025fb6 (diff)
Added Engine->Messageing system. Implemented LoadStatus Message. Added ProgressBar widget. Made FileBrowser chdir to old value (needs further fixing). More printf->hugin ports.
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r--src/drumgizmo.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index 92faa3c..b7df7b9 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -71,14 +71,19 @@ public:
std::string kitfile;
/*
- * Send a message to the engine. The engine takes over the memory.
+ * Receive message from the engine. The caller takes over the memory.
*/
- void sendMessage(Message *msg);
+ Message *receiveMessage();
/*
- * Receive message from the engine. The caller takes over the memory.
+ * Receive message from the engine without removing it from the queue.
*/
- Message *receiveMessage();
+ Message *peekMessage();
+
+ /*
+ * Add a message to the GUI message queue.
+ */
+ void sendMessage(Message *msg);
private:
Mutex message_mutex;