diff options
author | Henri Herscher <henri@oreka.org> | 2006-03-02 16:11:12 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-03-02 16:11:12 +0000 |
commit | 6d301a8dadf98464952912db2646e68df15b347f (patch) | |
tree | 1f0f3bb33c567bfecbf1e302c657324bda2975e9 /orkaudio/messages | |
parent | 8dcf8fc31fca9820efe23b6aa82633624bbc15ff (diff) |
OrkTrack can now ask for tape deletion
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@189 09dcff7a-b715-0410-9601-b79a96267cd0
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 |