1 /*****************************************************************************/
2 /* Software Testing Automation Framework (STAF)                              */
3 /* (C) Copyright IBM Corp. 2001                                              */
4 /*                                                                           */
5 /* This software is licensed under the Eclipse Public License (EPL) V1.0.    */
6 /*****************************************************************************/
7 
8 #ifndef STAF_ShutdownService
9 #define STAF_ShutdownService
10 
11 #include "STAFService.h"
12 #include "STAFCommandParser.h"
13 
14 class STAFShutdownService : public STAFService
15 {
16 public:
17 
18     STAFShutdownService();
19 
20     virtual STAFServiceResult acceptRequest(
21                               const STAFServiceRequest &requestInfo);
22 
23     virtual STAFString info(unsigned int raw = 0) const;
24 
25     virtual ~STAFShutdownService();
26 
27 private:
28 
29     // Don't allow copy construction or assignment
30     STAFShutdownService(const STAFShutdownService &);
31     STAFShutdownService &operator=(const STAFShutdownService &);
32 
33     STAFServiceResult handleShutdown(const STAFServiceRequest &requestInfo);
34     STAFServiceResult handleNotify(const STAFServiceRequest &requestInfo);
35     STAFServiceResult handleHelp(const STAFServiceRequest &requestInfo);
36 
37     STAFCommandParser fShutdownParser;
38     STAFCommandParser fNotifyParser;
39 
40     STAFMapClassDefinitionPtr fNotifieeClass;
41 };
42 
43 #endif
44