btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / activitymonitor / ActivityMonitor.cpp
blob0db3cd1060da305c7ce7f167a3738b0ec1f9718a
1 /*
2 * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "ActivityMonitor.h"
9 #include <stdlib.h>
11 #include <Application.h>
13 #include "ActivityWindow.h"
16 const char* kAppName = B_TRANSLATE_SYSTEM_NAME("ActivityMonitor");
17 const char* kSignature = "application/x-vnd.Haiku-ActivityMonitor";
20 ActivityMonitor::ActivityMonitor()
21 : BApplication(kSignature)
23 fWindow = new ActivityWindow();
27 ActivityMonitor::~ActivityMonitor()
32 void
33 ActivityMonitor::ReadyToRun()
35 fWindow->Show();
39 void
40 ActivityMonitor::RefsReceived(BMessage* message)
42 fWindow->PostMessage(message);
46 void
47 ActivityMonitor::MessageReceived(BMessage* message)
49 BApplication::MessageReceived(message);
53 void
54 ActivityMonitor::AboutRequested()
59 // #pragma mark -
62 int
63 main(int /*argc*/, char** /*argv*/)
65 ActivityMonitor app;
66 app.Run();
68 return 0;