diff options
Diffstat (limited to 'orkaudio/messages')
-rw-r--r-- | orkaudio/messages/TapeMsg.cpp | 24 | ||||
-rw-r--r-- | orkaudio/messages/TapeMsg.h | 17 |
2 files changed, 41 insertions, 0 deletions
diff --git a/orkaudio/messages/TapeMsg.cpp b/orkaudio/messages/TapeMsg.cpp index c52b022..4f21703 100644 --- a/orkaudio/messages/TapeMsg.cpp +++ b/orkaudio/messages/TapeMsg.cpp @@ -57,3 +57,27 @@ ObjectRef TapeMsg::NewInstance() return ObjectRef(new TapeMsg); } + +//========================================================== +TapeResponse::TapeResponse() +{ + m_deleteTape = false; +} + + +void TapeResponse::Define(Serializer* s) +{ + SimpleResponseMsg::Define(s); + s->BoolValue("deletetape", m_deleteTape); +} + +CStdString TapeResponse::GetClassName() +{ + return CStdString("taperesponse"); +} + +ObjectRef TapeResponse::NewInstance() +{ + return ObjectRef(new TapeResponse); +} + diff --git a/orkaudio/messages/TapeMsg.h b/orkaudio/messages/TapeMsg.h index 9d0ec3f..5365e02 100644 --- a/orkaudio/messages/TapeMsg.h +++ b/orkaudio/messages/TapeMsg.h @@ -15,6 +15,7 @@ #define __TAPEMSG_H__ #include "messages/SyncMessage.h" +#include "messages/ASyncMessage.h" #include "AudioTape.h" #define TAPE_MESSAGE_NAME "tape" @@ -56,5 +57,21 @@ public: typedef boost::shared_ptr<TapeMsg> TapeMsgRef; +/** A TapeResponse is a response to TapeMsg +*/ +class TapeResponse : public SimpleResponseMsg +{ +public: + TapeResponse(); + void Define(Serializer* s); + inline void Validate() {}; + + CStdString GetClassName(); + ObjectRef NewInstance(); + inline ObjectRef Process() {return ObjectRef();}; + + bool m_deleteTape; +}; + #endif |