summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/ContactsFromXMPPRoster.h')
-rw-r--r--Swift/Controllers/ContactsFromXMPPRoster.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/Swift/Controllers/ContactsFromXMPPRoster.h b/Swift/Controllers/ContactsFromXMPPRoster.h
new file mode 100644
index 0000000..3815a99
--- /dev/null
+++ b/Swift/Controllers/ContactsFromXMPPRoster.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2013 Tobias Markmann
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#pragma once
+
+#include <Swift/Controllers/ContactProvider.h>
+
+namespace Swift {
+
+class PresenceOracle;
+class AvatarManager;
+class XMPPRoster;
+
+class ContactsFromXMPPRoster : public ContactProvider {
+ public:
+ ContactsFromXMPPRoster(XMPPRoster* roster, AvatarManager* avatarManager, PresenceOracle* presenceOracle);
+ virtual ~ContactsFromXMPPRoster();
+
+ virtual std::vector<Contact> getContacts();
+ private:
+ XMPPRoster* roster_;
+ AvatarManager* avatarManager_;
+ PresenceOracle* presenceOracle_;
+};
+
+}