-struct RS_USER {
- RS_USER()
- : lastSentTime(0),
- user(NULL),
- routers(),
- shortPacketsCount(0)
- {}
- RS_USER(const std::vector<uint32_t> & r, USER_PTR it)
- : lastSentTime(0),
- user(it),
- routers(r),
- shortPacketsCount(0)
- {}
- RS_USER(const RS_USER & rvalue)
- : lastSentTime(rvalue.lastSentTime),
- user(rvalue.user),
- routers(rvalue.routers),
- shortPacketsCount(rvalue.shortPacketsCount)
- {}
-
- RS_USER & operator=(const RS_USER & rvalue);
+class USER;
+//-----------------------------------------------------------------------------
+class CONNECTED_NOTIFIER: public PROPERTY_NOTIFIER_BASE<bool> {
+public:
+ CONNECTED_NOTIFIER(REMOTE_SCRIPT & r, USER & u)
+ : PROPERTY_NOTIFIER_BASE<bool>(), user(u), rs(r) {}
+ CONNECTED_NOTIFIER(const CONNECTED_NOTIFIER & rhs)
+ : PROPERTY_NOTIFIER_BASE<bool>(), user(rhs.user), rs(rhs.rs) {}
+ void Notify(const bool & oldValue, const bool & newValue);
+
+private:
+ CONNECTED_NOTIFIER & operator=(const CONNECTED_NOTIFIER & rhs);
+
+ USER & user;
+ REMOTE_SCRIPT & rs;
+};
+//-----------------------------------------------------------------------------
+struct USER {
+ USER(const std::vector<uint32_t> & r, USER_PTR it, REMOTE_SCRIPT & rs);
+ USER(const USER & rhs);
+ ~USER();