1 /* 2 * Copyright 2006 Haiku, Inc. All Rights Reserved. 3 * Copyright 1997, 1998 R3 Software Ltd. All Rights Reserved. 4 * Distributed under the terms of the MIT License. 5 * 6 * Authors: 7 * Stephan Aßmus <superstippi@gmx.de> 8 * John Scipione <jscipione@gmail.com> 9 * Timothy Wayper <timmy@wunderbear.com> 10 */ 11 #ifndef _CALC_APPLICATION_H 12 #define _CALC_APPLICATION_H 13 14 15 #include <Application.h> 16 17 18 extern const char* kAppSig; 19 20 class BFile; 21 class CalcWindow; 22 23 class CalcApplication : public BApplication { 24 public: 25 CalcApplication(); 26 virtual ~CalcApplication(); 27 28 virtual void ReadyToRun(); 29 virtual void AboutRequested(); 30 virtual bool QuitRequested(); 31 32 private: 33 void _LoadSettings(BMessage& settings); 34 void _SaveSettings(); 35 status_t _InitSettingsFile(BFile* file, bool write); 36 37 CalcWindow* fCalcWindow; 38 }; 39 40 #endif // _CALC_APPLICATION_H 41