14 #ifndef ROSTERLISTENER_H__
15 #define ROSTERLISTENER_H__
17 #include "rosteritem.h"
30 typedef std::map<const std::string, RosterItem*>
Roster;
58 virtual void handleItemAdded(
const JID& jid ) = 0;
65 virtual void handleItemSubscribed(
const JID& jid ) = 0;
74 virtual void handleItemRemoved(
const JID& jid ) = 0;
86 virtual void handleItemUpdated(
const JID& jid ) = 0;
93 virtual void handleItemUnsubscribed(
const JID& jid ) = 0;
103 virtual void handleRoster(
const Roster& roster ) = 0;
115 virtual void handleRosterPresence(
const RosterItem& item,
const std::string& resource,
116 Presence presence,
const std::string& msg ) = 0;
129 virtual void handleSelfPresence(
const RosterItem& item,
const std::string& resource,
130 Presence presence,
const std::string& msg ) = 0;
142 virtual bool handleSubscriptionRequest(
const JID& jid,
const std::string& msg ) = 0;
154 virtual bool handleUnsubscriptionRequest(
const JID& jid,
const std::string& msg ) = 0;
161 virtual void handleNonrosterPresence(
Stanza* stanza ) = 0;
167 virtual void handleRosterError(
Stanza* stanza ) = 0;
172 #endif // ROSTERLISTENER_H__