vfs: check userland buffers before reading them.
[haiku.git] / src / apps / deskcalc / CalcApplication.h
blobb16f88ecc2af2e859699fa2a1a7ce1ec4ca2b4a8
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.
6 * Authors:
7 * Stephan Aßmus, superstippi@gmx.de
8 * Timothy Wayper, timmy@wunderbear.com
9 */
10 #ifndef _CALC_APPLICATION_H
11 #define _CALC_APPLICATION_H
14 #include <Application.h>
17 extern const char* kAppName;
18 extern const char* kSignature;
20 class BFile;
21 class CalcWindow;
23 class CalcApplication : public BApplication {
24 public:
25 CalcApplication();
26 virtual ~CalcApplication();
28 virtual void ReadyToRun();
29 virtual void AboutRequested();
30 virtual bool QuitRequested();
32 private:
33 void _LoadSettings(BMessage& settings);
34 void _SaveSettings();
35 status_t _InitSettingsFile(BFile* file, bool write);
37 CalcWindow* fCalcWindow;
40 #endif // _CALC_APPLICATION_H