xref: /haiku/src/apps/deskcalc/CalcApplication.h (revision b0944c78b074a8110bd98e060415d0e8f38a7f65)
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* kAppName;
19 extern const char* kSignature;
20 
21 class BFile;
22 class CalcWindow;
23 
24 class CalcApplication : public BApplication {
25  public:
26 								CalcApplication();
27 	virtual						~CalcApplication();
28 
29 	virtual	void				ReadyToRun();
30 	virtual	void				AboutRequested();
31 	virtual	bool				QuitRequested();
32 
33  private:
34 			void				_LoadSettings(BMessage& settings);
35 			void				_SaveSettings();
36 			status_t			_InitSettingsFile(BFile* file, bool write);
37 
38 			CalcWindow*			fCalcWindow;
39 };
40 
41 #endif // _CALC_APPLICATION_H
42