xref: /haiku/src/apps/deskcalc/CalcApplication.h (revision bea66afaeb8d038d8918106a430a56b6e9fb3109)
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  *		Timothy Wayper <timmy@wunderbear.com>
8  *		Stephan Aßmus <superstippi@gmx.de>
9  */
10 #ifndef _CALC_APPLICATION_H
11 #define _CALC_APPLICATION_H
12 
13 #include <Application.h>
14 
15 
16 extern const char* kAppSig;
17 
18 class BFile;
19 class CalcWindow;
20 
21 class CalcApplication : public BApplication {
22  public:
23 								CalcApplication();
24 	virtual						~CalcApplication();
25 
26 	virtual	void				ReadyToRun();
27 	virtual	void				AboutRequested();
28 	virtual	bool				QuitRequested();
29 
30  private:
31 			void				_LoadSettings(BMessage& settings);
32 			void				_SaveSettings();
33 			status_t			_InitSettingsFile(BFile* file, bool write);
34 
35 			CalcWindow*			fCalcWindow;
36 };
37 
38 #endif // _CALC_APPLICATION_H
39