2 #ifndef COMMAND_TASKS_H
3 #define COMMAND_TASKS_H
5 #include "ace/SOCK_Stream.h"
8 #include "CommandTask.h"
9 #include "CommandModule.h"
11 // CommandModule and CommandTask objects that implement the command
14 // Listing 011 code/ch18
15 class AnswerCallModule
: public CommandModule
18 AnswerCallModule (ACE_SOCK_Stream
* peer
);
21 // Listing 012 code/ch18
22 class AnswerCallDownstreamTask
: public CommandTask
25 AnswerCallDownstreamTask ();
27 virtual int process (Command
*command
);
30 // Listing 013 code/ch18
31 class AnswerCallUpstreamTask
: public CommandTask
34 AnswerCallUpstreamTask ();
36 virtual int process (Command
*command
);
40 // Listing 02 code/ch18
41 class RetrieveCallerIdModule
: public CommandModule
44 RetrieveCallerIdModule (ACE_SOCK_Stream
*peer
);
46 class RetrieveCallerIdDownstreamTask
: public CommandTask
49 RetrieveCallerIdDownstreamTask ();
51 virtual int process (Command
*command
);
53 class RetrieveCallerIdUpstreamTask
: public CommandTask
56 RetrieveCallerIdUpstreamTask ();
58 virtual int process (Command
*command
);
62 // Listing 03 code/ch18
63 class PlayMessageModule
: public CommandModule
66 PlayMessageModule (ACE_SOCK_Stream
*peer
);
68 class PlayMessageDownstreamTask
: public CommandTask
71 PlayMessageDownstreamTask ();
73 virtual int process (Command
*command
);
75 class PlayMessageUpstreamTask
: public CommandTask
78 PlayMessageUpstreamTask ();
80 virtual int process (Command
*command
);
84 // Listing 04 code/ch18
85 class RecordMessageModule
: public CommandModule
88 RecordMessageModule (ACE_SOCK_Stream
*peer
);
90 class RecordMessageDownstreamTask
: public CommandTask
93 RecordMessageDownstreamTask ();
95 virtual int process (Command
*command
);
97 class RecordMessageUpstreamTask
: public CommandTask
100 RecordMessageUpstreamTask ();
102 virtual int process (Command
*command
);
106 #endif /* COMMAND_TASKS_H */