1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 9 #include <dxconfig.h> 10 #include "../base/defines.h" 11 12 13 14 15 #ifndef _DisconnectFromServerCommand_h 16 #define _DisconnectFromServerCommand_h 17 18 19 #include "ConfirmedCommand.h" 20 21 22 // 23 // Class name definition: 24 // 25 #define ClassDisconnectFromServerCommand "DisconnectFromServerCommand" 26 27 28 // 29 // DisconnectFromServerCommand class definition: 30 // 31 class DisconnectFromServerCommand : public ConfirmedCommand 32 { 33 protected: 34 // 35 // Implements the command: 36 // Queries the user for confirmation of the command. 37 // If affirmatively confirmed, the command terminates 38 // the application program. 39 // 40 virtual boolean doIt(CommandInterface *ci); 41 42 public: 43 // 44 // Constructor: 45 // 46 DisconnectFromServerCommand(const char* name, 47 CommandScope* scope, 48 boolean active); 49 50 // 51 // Destructor: 52 // 53 54 ~DisconnectFromServerCommand(); 55 // 56 // Returns a pointer to the class name. 57 // getClassName()58 const char* getClassName() 59 { 60 return ClassDisconnectFromServerCommand; 61 } 62 }; 63 64 65 #endif // _DisconnectFromServerCommand_h 66