summaryrefslogtreecommitdiff
path: root/src/message.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-10-21 14:55:56 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-10-21 14:55:56 +0200
commit4c4c5e8f3f6069977289055903ae54b7affcba23 (patch)
tree664b8183052bcc02a5c177d83a2ea534c7e4e6d6 /src/message.h
parentb1a0139e12be5a081a608834b22744100320841a (diff)
Added drumkit information widget and message to get drumkit information.
Diffstat (limited to 'src/message.h')
-rw-r--r--src/message.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/message.h b/src/message.h
index 07b0300..4bcaead 100644
--- a/src/message.h
+++ b/src/message.h
@@ -29,6 +29,8 @@
#include <string>
+#include "drumkitparser.h"
+
class MessageHandler;
class Message {
@@ -43,6 +45,7 @@ public:
LoadMidimap, // Signal engine to load midimap.
EngineSettingsMessage, // Request or receive engine settings.
ChangeSettingMessage, // Update named setting in engine.
+ DrumkitInfoMessage // Drumkit information
} type_t;
typedef enum {
@@ -66,21 +69,27 @@ public:
};
class LoadStatusMessageMidimap : public Message {
-public:
- type_t type() { return Message::LoadStatusMidimap; }
- bool success;
+ public:
+ type_t type() { return Message::LoadStatusMidimap; }
+ bool success;
};
class LoadDrumKitMessage : public Message {
-public:
- type_t type() { return Message::LoadDrumKit; }
- std::string drumkitfile;
+ public:
+ type_t type() { return Message::LoadDrumKit; }
+ std::string drumkitfile;
};
class LoadMidimapMessage : public Message {
-public:
- type_t type() { return Message::LoadMidimap; }
- std::string midimapfile;
+ public:
+ type_t type() { return Message::LoadMidimap; }
+ std::string midimapfile;
+};
+
+class DrumkitInfoMessage : public Message {
+ public:
+ type_t type() { return Message::DrumkitInfoMessage; }
+ MetaData metadata;
};
class EngineSettingsMessage : public Message {