/***********************************************************************/ /* Open Visualization Data Explorer */ /* (C) Copyright IBM Corp. 1989,1999 */ /* ALL RIGHTS RESERVED */ /* This code licensed under the */ /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ /***********************************************************************/ #include #include "QuitCommand.h" #include "../base/Application.h" #include "FileContents.h" QuitCommand::QuitCommand(Application* app, const char* name, CommandScope* scope, boolean active, char* dialogTitle, char* dialogQuestion) : ConfirmedCommand(name, scope, active, dialogTitle, dialogQuestion) { // // No op. // this->application = app; } boolean QuitCommand::doIt(CommandInterface *) { FileContents::CleanUp(); // // Terminate the application // exit(0); return TRUE; }