summaryrefslogtreecommitdiff
path: root/louloulibs/xmpp/roster.cpp
blob: a14a38479832c3de22653255e7ffbcf7897aed3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
}