xref: /haiku/src/apps/softwareupdater/SoftwareUpdaterApp.cpp (revision d63ed5844d997a61afd7a6c4b7c9fad0dc01e9f3)
1 /*
2  * Copyright 2016 Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT license
4  *
5  * Authors:
6  *		Alexander von Gluck IV <kallisti5@unixzen.com>
7  */
8 
9 #include "SoftwareUpdaterApp.h"
10 
11 #include <stdio.h>
12 #include <AppDefs.h>
13 
14 #include "SoftwareUpdaterWindow.h"
15 
16 
17 #undef B_TRANSLATION_CONTEXT
18 #define B_TRANSLATION_CONTEXT "SoftwareUpdater"
19 
20 
21 SoftwareUpdaterApp::SoftwareUpdaterApp()
22 	:
23 	BApplication("application/x-vnd.haiku-softwareupdater")
24 {
25 }
26 
27 
28 SoftwareUpdaterApp::~SoftwareUpdaterApp()
29 {
30 }
31 
32 
33 void
34 SoftwareUpdaterApp::ReadyToRun()
35 {
36 	SoftwareUpdaterWindow* window = new SoftwareUpdaterWindow();
37 	if (window)
38 		window->Show();
39 }
40 
41 
42 int
43 main()
44 {
45 	SoftwareUpdaterApp app;
46 	return app.Run();
47 }
48