Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
obc = ObjectContextRef();
}
-bool Watch::is_discarded()
+bool Watch::is_discarded() const
{
return discarded;
}
return last_ping;
}
- bool is_connected() {
+ bool is_connected() const {
return conn.get() != NULL;
}
- bool is_connected(Connection *con) {
+ bool is_connected(Connection *con) const {
return conn.get() == con;
}
void discard();
/// True if removed or discarded
- bool is_discarded();
+ bool is_discarded() const;
/// Called on unwatch
void remove(bool send_disconnect);