xref: /haiku/src/preferences/screensaver/ScreenSaverApp.cpp (revision 13581b3d2a71545960b98fefebc5225b5bf29072)
1 /*
2  * Copyright 2003-2014 Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Jérôme Duval, jerome.duval@free.fr
7  *		Michael Phipps
8  */
9 
10 
11 #include <Application.h>
12 #include <Entry.h>
13 #include <Path.h>
14 
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <unistd.h>
18 
19 #include "ScreenSaverWindow.h"
20 
21 
22 class ScreenSaverApp : public BApplication {
23 public:
24 	ScreenSaverApp();
25 
26 private:
27 	BWindow* fScreenSaverWindow;
28 };
29 
30 
31 //	#pragma mark - ScreenSaverApp
32 
33 
34 ScreenSaverApp::ScreenSaverApp()
35 	:
36 	BApplication("application/x-vnd.Haiku-ScreenSaver")
37 {
38 	fScreenSaverWindow = new ScreenSaverWindow();
39 	fScreenSaverWindow->Show();
40 }
41 
42 
43 //	#pragma mark - main()
44 
45 
46 int
47 main()
48 {
49 	ScreenSaverApp app;
50 	app.Run();
51 	return 0;
52 }
53