- introduced a SystemInfoHandler class used to watch for stuff when polling isn't needed.

- used it to add a count of running apps (not exactly the same as teams).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25012 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-04-17 22:04:18 +00:00
parent 03aaa278a5
commit 74158bb474
9 changed files with 220 additions and 4 deletions
+13
View File
@@ -141,6 +141,19 @@ public:
};
class RunningAppsDataSource : public DataSource {
public:
RunningAppsDataSource();
virtual ~RunningAppsDataSource();
virtual DataSource* Copy() const;
virtual int64 NextValue(SystemInfo& info);
virtual const char* Label() const;
virtual bool AdaptiveScale() const;
};
class CPUUsageDataSource : public DataSource {
public:
CPUUsageDataSource(int32 cpu = 0);