- add a media node count data source. Yes I do have work to do instead :P git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25022 a95241bf-73f2-0310-859d-f6bbb57e9c96
43 lines
943 B
C++
43 lines
943 B
C++
/*
|
|
* Copyright 2008, François Revol, [email protected]. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef SYSTEM_INFO_HANDLER_H
|
|
#define SYSTEM_INFO_HANDLER_H
|
|
|
|
|
|
#include <Handler.h>
|
|
|
|
|
|
class SystemInfoHandler : public BHandler {
|
|
public:
|
|
SystemInfoHandler();
|
|
virtual ~SystemInfoHandler();
|
|
|
|
virtual status_t Archive(BMessage* data, bool deep = true) const;
|
|
|
|
void StartWatching();
|
|
void StopWatching();
|
|
|
|
void MessageReceived(BMessage* message);
|
|
|
|
uint32 RunningApps() const;
|
|
uint32 ClipboardSize() const;
|
|
uint32 ClipboardTextSize() const;
|
|
uint32 MediaNodes() const;
|
|
uint32 MediaConnections() const;
|
|
uint32 MediaBuffers() const;
|
|
|
|
private:
|
|
void _UpdateClipboardData();
|
|
|
|
uint32 fRunningApps;
|
|
uint32 fClipboardSize;
|
|
uint32 fClipboardTextSize;
|
|
uint32 fMediaNodes;
|
|
uint32 fMediaConnections;
|
|
uint32 fMediaBuffers;
|
|
};
|
|
|
|
#endif // SYSTEM_INFO_HANDLER_H
|