summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-09-15 10:06:15 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-09-15 10:06:15 (GMT)
commit13c1ef651158d8bdbd459ebea461c23c89699abd (patch)
treeb453d0f28ebd14560829cbe8283ed12cb488af34 /Swiften/Roster
parentc557a9771c99012624e104e5bc71aeb93f38a8bf (diff)
downloadswift-13c1ef651158d8bdbd459ebea461c23c89699abd.zip
swift-13c1ef651158d8bdbd459ebea461c23c89699abd.tar.bz2
Completely untested. Rewiring the MainController for Client to be reconnectable (won't compile).
Diffstat (limited to 'Swiften/Roster')
-rw-r--r--Swiften/Roster/AppearOffline.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/Swiften/Roster/AppearOffline.h b/Swiften/Roster/AppearOffline.h
new file mode 100644
index 0000000..673e018
--- /dev/null
+++ b/Swiften/Roster/AppearOffline.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include "Swiften/Roster/RosterItemOperation.h"
+#include "Swiften/Roster/ContactRosterItem.h"
+
+namespace Swift {
+
+class RosterItem;
+
+class AppearOffline : public RosterItemOperation {
+ public:
+ AppearOffline() {
+ }
+
+ virtual void operator() (RosterItem* item) const {
+ ContactRosterItem* contact = dynamic_cast<ContactRosterItem*>(item);
+ if (contact) {
+ contact->setStatusShow(StatusShow::None);
+ }
+ }
+
+};
+
+}
+
+