repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / activitymonitor / SystemInfoHandler.h
blob8759919cae930c2241924baa61bce43d1b91a01b
1 /*
2 * Copyright 2008, François Revol, revol@free.fr. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SYSTEM_INFO_HANDLER_H
6 #define SYSTEM_INFO_HANDLER_H
9 #include <Handler.h>
12 class SystemInfoHandler : public BHandler {
13 public:
14 SystemInfoHandler();
15 virtual ~SystemInfoHandler();
17 virtual status_t Archive(BMessage* data, bool deep = true) const;
19 void StartWatching();
20 void StopWatching();
22 void MessageReceived(BMessage* message);
24 uint32 RunningApps() const;
25 uint32 ClipboardSize() const;
26 uint32 ClipboardTextSize() const;
27 uint32 MediaNodes() const;
28 uint32 MediaConnections() const;
29 uint32 MediaBuffers() const;
31 private:
32 void _UpdateClipboardData();
34 uint32 fRunningApps;
35 uint32 fClipboardSize;
36 uint32 fClipboardTextSize;
37 uint32 fMediaNodes;
38 uint32 fMediaConnections;
39 uint32 fMediaBuffers;
42 #endif // SYSTEM_INFO_HANDLER_H