summaryrefslogtreecommitdiff
path: root/trunk/ACE/examples/APG/Streams/CommandTasks.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ACE/examples/APG/Streams/CommandTasks.h')
-rw-r--r--trunk/ACE/examples/APG/Streams/CommandTasks.h108
1 files changed, 108 insertions, 0 deletions
diff --git a/trunk/ACE/examples/APG/Streams/CommandTasks.h b/trunk/ACE/examples/APG/Streams/CommandTasks.h
new file mode 100644
index 00000000000..0d55d4da07b
--- /dev/null
+++ b/trunk/ACE/examples/APG/Streams/CommandTasks.h
@@ -0,0 +1,108 @@
+/* -*- C++ -*- */
+// $Id$
+
+#ifndef COMMAND_TASKS_H
+#define COMMAND_TASKS_H
+
+#include "ace/SOCK_Stream.h"
+
+#include "Command.h"
+#include "CommandTask.h"
+#include "CommandModule.h"
+
+// CommandModule and CommandTask objects that implement the command
+// stream functions.
+
+// Listing 011 code/ch18
+class AnswerCallModule : public CommandModule
+{
+public:
+ AnswerCallModule (ACE_SOCK_Stream * peer);
+};
+// Listing 011
+// Listing 012 code/ch18
+class AnswerCallDownstreamTask : public CommandTask
+{
+public:
+ AnswerCallDownstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+// Listing 012
+// Listing 013 code/ch18
+class AnswerCallUpstreamTask : public CommandTask
+{
+public:
+ AnswerCallUpstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+// Listing 013
+
+// Listing 02 code/ch18
+class RetrieveCallerIdModule : public CommandModule
+{
+public:
+ RetrieveCallerIdModule (ACE_SOCK_Stream *peer);
+};
+class RetrieveCallerIdDownstreamTask : public CommandTask
+{
+public:
+ RetrieveCallerIdDownstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+class RetrieveCallerIdUpstreamTask : public CommandTask
+{
+public:
+ RetrieveCallerIdUpstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+// Listing 02
+
+// Listing 03 code/ch18
+class PlayMessageModule : public CommandModule
+{
+public:
+ PlayMessageModule (ACE_SOCK_Stream *peer);
+};
+class PlayMessageDownstreamTask : public CommandTask
+{
+public:
+ PlayMessageDownstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+class PlayMessageUpstreamTask : public CommandTask
+{
+public:
+ PlayMessageUpstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+// Listing 03
+
+// Listing 04 code/ch18
+class RecordMessageModule : public CommandModule
+{
+public:
+ RecordMessageModule (ACE_SOCK_Stream *peer);
+};
+class RecordMessageDownstreamTask : public CommandTask
+{
+public:
+ RecordMessageDownstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+class RecordMessageUpstreamTask : public CommandTask
+{
+public:
+ RecordMessageUpstreamTask ();
+protected:
+ virtual int process (Command *command);
+};
+// Listing 04
+
+#endif /* COMMAND_TASKS_H */