diff --git a/src/musikcore/runtime/IMessageQueue.h b/src/musikcore/runtime/IMessageQueue.h index 98387cad0..69a6fdbea 100644 --- a/src/musikcore/runtime/IMessageQueue.h +++ b/src/musikcore/runtime/IMessageQueue.h @@ -37,24 +37,22 @@ #include "IMessage.h" #include "IMessageTarget.h" -namespace musik { - namespace core { - namespace runtime { - class IMessageQueue { - public: - virtual ~IMessageQueue() { } - virtual void Post(IMessagePtr message, int64_t delayMs = 0) = 0; - virtual int Remove(IMessageTarget *target, int type = -1) = 0; - virtual void Broadcast(IMessagePtr message, int64_t delayMs = 0) = 0; - virtual bool Contains(IMessageTarget *target, int type = -1) = 0; - virtual void Debounce(IMessagePtr message, int64_t delayMs = 0) = 0; - virtual void Register(IMessageTarget* target) = 0; - virtual void Unregister(IMessageTarget* target) = 0; - virtual void RegisterForBroadcasts(IMessageTargetPtr target) = 0; - virtual void UnregisterForBroadcasts(IMessageTarget *target) = 0; - virtual void WaitAndDispatch(int64_t timeoutMillis = -1) = 0; - virtual void Dispatch() = 0; - }; - } - } -} \ No newline at end of file +namespace musik { namespace core { namespace runtime { + + class IMessageQueue { + public: + virtual ~IMessageQueue() { } + virtual void Post(IMessagePtr message, int64_t delayMs = 0) = 0; + virtual int Remove(IMessageTarget *target, int type = -1) = 0; + virtual void Broadcast(IMessagePtr message, int64_t delayMs = 0) = 0; + virtual bool Contains(IMessageTarget *target, int type = -1) = 0; + virtual void Debounce(IMessagePtr message, int64_t delayMs = 0) = 0; + virtual void Register(IMessageTarget* target) = 0; + virtual void Unregister(IMessageTarget* target) = 0; + virtual void RegisterForBroadcasts(IMessageTargetPtr target) = 0; + virtual void UnregisterForBroadcasts(IMessageTarget *target) = 0; + virtual void WaitAndDispatch(int64_t timeoutMillis = -1) = 0; + virtual void Dispatch() = 0; + }; + +} } } \ No newline at end of file diff --git a/src/musikcore/runtime/Message.h b/src/musikcore/runtime/Message.h index 0558a10f4..50daa1950 100755 --- a/src/musikcore/runtime/Message.h +++ b/src/musikcore/runtime/Message.h @@ -37,6 +37,7 @@ #include "IMessage.h" namespace musik { namespace core { namespace runtime { + class Message : public IMessage { protected: Message( @@ -65,4 +66,5 @@ namespace musik { namespace core { namespace runtime { int messageType; int64_t data1, data2; }; + } } } \ No newline at end of file diff --git a/src/musikcore/runtime/MessageQueue.h b/src/musikcore/runtime/MessageQueue.h index e4a6c43cd..06a12f58b 100755 --- a/src/musikcore/runtime/MessageQueue.h +++ b/src/musikcore/runtime/MessageQueue.h @@ -44,6 +44,7 @@ #include namespace musik { namespace core { namespace runtime { + class MessageQueue : public IMessageQueue { public: MessageQueue(); @@ -93,4 +94,5 @@ namespace musik { namespace core { namespace runtime { void Dispatch(IMessagePtr message); }; + } } } \ No newline at end of file