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 7 8 9 #include <Handler.h> 10 11 12 class SystemInfoHandler : public BHandler { 13 public: 14 SystemInfoHandler(); 15 virtual ~SystemInfoHandler(); 16 17 virtual status_t Archive(BMessage* data, bool deep = true) const; 18 19 void StartWatching(); 20 void StopWatching(); 21 22 void MessageReceived(BMessage* message); 23 24 uint32 RunningApps() const; 25 uint32 ClipboardSize() const; 26 uint32 ClipboardTextSize() const; 27 uint32 MediaNodes() const; 28 uint32 MediaConnections() const; 29 uint32 MediaBuffers() const; 30 31 private: 32 void _UpdateClipboardData(); 33 34 uint32 fRunningApps; 35 uint32 fClipboardSize; 36 uint32 fClipboardTextSize; 37 uint32 fMediaNodes; 38 uint32 fMediaConnections; 39 uint32 fMediaBuffers; 40 }; 41 42 #endif // SYSTEM_INFO_HANDLER_H 43