/////////////////////////////////////////////////////////////////////////////// // $Id: QuitOrCloseCommand.hxx,v 1.1 1995/01/08 06:42:07 bmott Exp $ /////////////////////////////////////////////////////////////////////////////// // // QuitOrCloseCommand.hxx - This command object handles quitting the application // // // Bradford W. Mott // Copyright (C) 1994 // December 12,1994 // /////////////////////////////////////////////////////////////////////////////// // $Log: QuitOrCloseCommand.hxx,v $ // Revision 1.1 1995/01/08 06:42:07 bmott // Initial revision // /////////////////////////////////////////////////////////////////////////////// #ifndef QUITORCLOSECOMMAND_HXX #define QUITORCLOSECOMMAND_HXX #include "Command.hxx" #include "UIApplication.hxx" class QuitOrCloseCommand : public Command { public: // Protected constructor to prevent instantiation QuitOrCloseCommand() {}; // Destructor virtual ~QuitOrCloseCommand() {}; // All I do is tell the application to terminate virtual void execute(void* argument) { application->terminate(); } }; #endif