Public Types | Public Member Functions

Swift::RosterItemPayload Class Reference

Collaboration diagram for Swift::RosterItemPayload:

List of all members.

Public Types

enum  Subscription {
  None, To, From, Both,
  Remove
}

Public Member Functions

 RosterItemPayload ()
 RosterItemPayload (const JID &jid, const std::string &name, Subscription subscription, const std::vector< std::string > &groups=std::vector< std::string >())
void setJID (const JID &jid)
const JIDgetJID () const
void setName (const std::string &name)
const std::string & getName () const
void setSubscription (Subscription subscription)
const SubscriptiongetSubscription () const
void addGroup (const std::string &group)
void setGroups (const std::vector< std::string > &groups)
const std::vector< std::string > & getGroups () const
void setSubscriptionRequested ()
bool getSubscriptionRequested () const
const std::string & getUnknownContent () const
void addUnknownContent (const std::string &c)

Detailed Description

Definition at line 15 of file RosterItemPayload.h.


Member Enumeration Documentation

Enumerator:
None 
To 
From 
Both 
Remove 

Definition at line 17 of file RosterItemPayload.h.


Constructor & Destructor Documentation

Swift::RosterItemPayload::RosterItemPayload (  )  [inline]

Definition at line 19 of file RosterItemPayload.h.

Swift::RosterItemPayload::RosterItemPayload ( const JID jid,
const std::string &  name,
Subscription  subscription,
const std::vector< std::string > &  groups = std::vector<std::string>() 
) [inline]

Definition at line 20 of file RosterItemPayload.h.


Member Function Documentation

void Swift::RosterItemPayload::addGroup ( const std::string &  group  )  [inline]

Definition at line 31 of file RosterItemPayload.h.

void Swift::RosterItemPayload::addUnknownContent ( const std::string &  c  )  [inline]

Definition at line 39 of file RosterItemPayload.h.

const std::vector<std::string>& Swift::RosterItemPayload::getGroups (  )  const [inline]

Definition at line 33 of file RosterItemPayload.h.

const JID& Swift::RosterItemPayload::getJID (  )  const [inline]

Definition at line 23 of file RosterItemPayload.h.

const std::string& Swift::RosterItemPayload::getName (  )  const [inline]

Definition at line 26 of file RosterItemPayload.h.

const Subscription& Swift::RosterItemPayload::getSubscription (  )  const [inline]

Definition at line 29 of file RosterItemPayload.h.

bool Swift::RosterItemPayload::getSubscriptionRequested (  )  const [inline]

Definition at line 36 of file RosterItemPayload.h.

const std::string& Swift::RosterItemPayload::getUnknownContent (  )  const [inline]

Definition at line 38 of file RosterItemPayload.h.

void Swift::RosterItemPayload::setGroups ( const std::vector< std::string > &  groups  )  [inline]

Definition at line 32 of file RosterItemPayload.h.

void Swift::RosterItemPayload::setJID ( const JID jid  )  [inline]

Definition at line 22 of file RosterItemPayload.h.

void Swift::RosterItemPayload::setName ( const std::string &  name  )  [inline]

Definition at line 25 of file RosterItemPayload.h.

void Swift::RosterItemPayload::setSubscription ( Subscription  subscription  )  [inline]

Definition at line 28 of file RosterItemPayload.h.

void Swift::RosterItemPayload::setSubscriptionRequested (  )  [inline]

Definition at line 35 of file RosterItemPayload.h.