xref: /haiku/src/apps/activitymonitor/ActivityMonitor.cpp (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2  * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include "ActivityMonitor.h"
8 
9 #include <stdlib.h>
10 
11 #include <Application.h>
12 
13 #include "ActivityWindow.h"
14 
15 
16 const char* kAppName = B_TRANSLATE_SYSTEM_NAME("ActivityMonitor");
17 const char* kSignature = "application/x-vnd.Haiku-ActivityMonitor";
18 
19 
20 ActivityMonitor::ActivityMonitor()
21 	: BApplication(kSignature)
22 {
23 	fWindow = new ActivityWindow();
24 }
25 
26 
27 ActivityMonitor::~ActivityMonitor()
28 {
29 }
30 
31 
32 void
33 ActivityMonitor::ReadyToRun()
34 {
35 	fWindow->Show();
36 }
37 
38 
39 void
40 ActivityMonitor::RefsReceived(BMessage* message)
41 {
42 	fWindow->PostMessage(message);
43 }
44 
45 
46 void
47 ActivityMonitor::MessageReceived(BMessage* message)
48 {
49 	BApplication::MessageReceived(message);
50 }
51 
52 
53 void
54 ActivityMonitor::AboutRequested()
55 {
56 }
57 
58 
59 //	#pragma mark -
60 
61 
62 int
63 main(int /*argc*/, char** /*argv*/)
64 {
65 	ActivityMonitor app;
66 	app.Run();
67 
68 	return 0;
69 }
70