xref: /haiku/src/preferences/time/Time.h (revision 1acbe440b8dd798953bec31d18ee589aa3f71b73)
1 /*
2  * Copyright 2002-2006, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors in chronological order:
6  *		Andrew McCall, mccall@digitalparadise.co.uk
7  *		Mike Berg
8  */
9 #ifndef TIME_H
10 #define TIME_H
11 
12 
13 #include "TimeSettings.h"
14 #include "TimeWindow.h"
15 
16 #include <Application.h>
17 
18 
19 class TimeApplication : public BApplication {
20 	public:
21 		TimeApplication();
22 		virtual ~TimeApplication();
23 
24 		void MessageReceived(BMessage* message);
25 
26 		void ReadyToRun();
27 		void AboutRequested();
28 
29 		void SetWindowCorner(BPoint corner);
30 		BPoint WindowCorner() const
31 			{ return fSettings->WindowCorner(); }
32 
33 	private:
34 		TimeSettings *fSettings;
35 		TTimeWindow *fWindow;
36 };
37 
38 #endif	// TIME_H
39