1f7d9c011SAlexander von Gluck IV /* 2ad7783e4SBrian Hill * Copyright 2016-2017 Haiku, Inc. All rights reserved. 3f7d9c011SAlexander von Gluck IV * Distributed under the terms of the MIT license 4f7d9c011SAlexander von Gluck IV * 5f7d9c011SAlexander von Gluck IV * Authors: 6f7d9c011SAlexander von Gluck IV * Alexander von Gluck IV <kallisti5@unixzen.com> 7*acfd5c86SBrian Hill * Brian Hill <supernova@tycho.email> 8f7d9c011SAlexander von Gluck IV */ 9f7d9c011SAlexander von Gluck IV #ifndef _SOFTWARE_UPDATER_APP_H 10f7d9c011SAlexander von Gluck IV #define _SOFTWARE_UPDATER_APP_H 11f7d9c011SAlexander von Gluck IV 12ad7783e4SBrian Hill 13f7d9c011SAlexander von Gluck IV #include <Application.h> 14f7d9c011SAlexander von Gluck IV 15ad7783e4SBrian Hill #include "WorkingLooper.h" 16ad7783e4SBrian Hill 17f7d9c011SAlexander von Gluck IV 18f7d9c011SAlexander von Gluck IV class SoftwareUpdaterApp : public BApplication { 19f7d9c011SAlexander von Gluck IV public: 20f7d9c011SAlexander von Gluck IV SoftwareUpdaterApp(); 21f7d9c011SAlexander von Gluck IV ~SoftwareUpdaterApp(); 22ad7783e4SBrian Hill virtual bool QuitRequested(); 2373c2c7b4SBrian Hill virtual void ReadyToRun(); 2473c2c7b4SBrian Hill virtual void ArgvReceived(int32 argc, char **argv); 25ad7783e4SBrian Hill void MessageReceived(BMessage* message); 26ad7783e4SBrian Hill 27ad7783e4SBrian Hill private: 28ad7783e4SBrian Hill WorkingLooper* fWorker; 29ad7783e4SBrian Hill BMessenger fWindowMessenger; 30ad7783e4SBrian Hill bool fFinalQuitFlag; 3173c2c7b4SBrian Hill update_type fActionRequested; 32b35bccc0SBrian Hill bool fVerbose; 33b35bccc0SBrian Hill bool fArgvsAccepted; 34f7d9c011SAlexander von Gluck IV }; 35f7d9c011SAlexander von Gluck IV 36f7d9c011SAlexander von Gluck IV 37f7d9c011SAlexander von Gluck IV #endif 38