summaryrefslogtreecommitdiff
path: root/louloulibs/xmpp/roster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/xmpp/roster.cpp')
-rw-r--r--louloulibs/xmpp/roster.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/louloulibs/xmpp/roster.cpp b/louloulibs/xmpp/roster.cpp
new file mode 100644
index 0000000..a14a384
--- /dev/null
+++ b/louloulibs/xmpp/roster.cpp
@@ -0,0 +1,21 @@
+#include <xmpp/roster.hpp>
+
+RosterItem::RosterItem(const std::string& jid, const std::string& name,
+ std::vector<std::string>& groups):
+ jid(jid),
+ name(name),
+ groups(groups)
+{
+}
+
+RosterItem::RosterItem(const std::string& jid, const std::string& name):
+ jid(jid),
+ name(name),
+ groups{}
+{
+}
+
+void Roster::clear()
+{
+ this->items.clear();
+}