Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Streams / CommandTasks.h
blob5b241b2e3c4584cdde440607da3c09e6f31e537a
1 /* -*- C++ -*- */
2 #ifndef COMMAND_TASKS_H
3 #define COMMAND_TASKS_H
5 #include "ace/SOCK_Stream.h"
7 #include "Command.h"
8 #include "CommandTask.h"
9 #include "CommandModule.h"
11 // CommandModule and CommandTask objects that implement the command
12 // stream functions.
14 // Listing 011 code/ch18
15 class AnswerCallModule : public CommandModule
17 public:
18 AnswerCallModule (ACE_SOCK_Stream * peer);
20 // Listing 011
21 // Listing 012 code/ch18
22 class AnswerCallDownstreamTask : public CommandTask
24 public:
25 AnswerCallDownstreamTask ();
26 protected:
27 virtual int process (Command *command);
29 // Listing 012
30 // Listing 013 code/ch18
31 class AnswerCallUpstreamTask : public CommandTask
33 public:
34 AnswerCallUpstreamTask ();
35 protected:
36 virtual int process (Command *command);
38 // Listing 013
40 // Listing 02 code/ch18
41 class RetrieveCallerIdModule : public CommandModule
43 public:
44 RetrieveCallerIdModule (ACE_SOCK_Stream *peer);
46 class RetrieveCallerIdDownstreamTask : public CommandTask
48 public:
49 RetrieveCallerIdDownstreamTask ();
50 protected:
51 virtual int process (Command *command);
53 class RetrieveCallerIdUpstreamTask : public CommandTask
55 public:
56 RetrieveCallerIdUpstreamTask ();
57 protected:
58 virtual int process (Command *command);
60 // Listing 02
62 // Listing 03 code/ch18
63 class PlayMessageModule : public CommandModule
65 public:
66 PlayMessageModule (ACE_SOCK_Stream *peer);
68 class PlayMessageDownstreamTask : public CommandTask
70 public:
71 PlayMessageDownstreamTask ();
72 protected:
73 virtual int process (Command *command);
75 class PlayMessageUpstreamTask : public CommandTask
77 public:
78 PlayMessageUpstreamTask ();
79 protected:
80 virtual int process (Command *command);
82 // Listing 03
84 // Listing 04 code/ch18
85 class RecordMessageModule : public CommandModule
87 public:
88 RecordMessageModule (ACE_SOCK_Stream *peer);
90 class RecordMessageDownstreamTask : public CommandTask
92 public:
93 RecordMessageDownstreamTask ();
94 protected:
95 virtual int process (Command *command);
97 class RecordMessageUpstreamTask : public CommandTask
99 public:
100 RecordMessageUpstreamTask ();
101 protected:
102 virtual int process (Command *command);
104 // Listing 04
106 #endif /* COMMAND_TASKS_H */