git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Beautified error notification.
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
smux
/
sensors.h
diff --git
a/projects/stargazer/plugins/other/smux/sensors.h
b/projects/stargazer/plugins/other/smux/sensors.h
index 3337323e952803f5221c419da84c4f08aef1322e..3787611f4263c3cbfe06fe10fac41f5e751b1e03 100644
(file)
--- a/
projects/stargazer/plugins/other/smux/sensors.h
+++ b/
projects/stargazer/plugins/other/smux/sensors.h
@@
-163,6
+163,15
@@
class TariffChangeUsersSensor : public UsersSensor {
{ return !userPtr->GetProperty().nextTariff.ConstData().empty(); }
};
{ return !userPtr->GetProperty().nextTariff.ConstData().empty(); }
};
+class ActiveUsersSensor : public UsersSensor {
+ public:
+ ActiveUsersSensor(USERS & u) : UsersSensor(u) {}
+ virtual ~ActiveUsersSensor() {}
+
+ private:
+ bool UserPredicate(USER_PTR userPtr) const;
+};
+
class TotalTariffsSensor : public Sensor {
public:
TotalTariffsSensor(const TARIFFS & t) : tariffs(t) {}
class TotalTariffsSensor : public Sensor {
public:
TotalTariffsSensor(const TARIFFS & t) : tariffs(t) {}