From 6d301a8dadf98464952912db2646e68df15b347f Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Thu, 2 Mar 2006 16:11:12 +0000 Subject: OrkTrack can now ask for tape deletion git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@189 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkaudio/messages/TapeMsg.cpp | 24 ++++++++++++++++++++++++ orkaudio/messages/TapeMsg.h | 17 +++++++++++++++++ 2 files changed, 41 insertions(+) (limited to 'orkaudio/messages') 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 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 -- cgit v1.2.3