summaryrefslogtreecommitdiffstats
blob: 673e018d4744496e5f4d603fc2115763d9ac547f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
			}
		}

};

}