14 #ifndef ROSTERLISTENER_H__
15 #define ROSTERLISTENER_H__
17 #include "rosteritem.h"
31 typedef std::map<const std::string, RosterItem*>
Roster;
59 virtual void handleItemAdded(
const JID& jid ) = 0;
66 virtual void handleItemSubscribed(
const JID& jid ) = 0;
75 virtual void handleItemRemoved(
const JID& jid ) = 0;
87 virtual void handleItemUpdated(
const JID& jid ) = 0;
94 virtual void handleItemUnsubscribed(
const JID& jid ) = 0;
104 virtual void handleRoster(
const Roster& roster ) = 0;
116 virtual void handleRosterPresence(
const RosterItem& item,
const std::string& resource,
130 virtual void handleSelfPresence(
const RosterItem& item,
const std::string& resource,
143 virtual bool handleSubscriptionRequest(
const JID& jid,
const std::string& msg ) = 0;
155 virtual bool handleUnsubscriptionRequest(
const JID& jid,
const std::string& msg ) = 0;
162 virtual void handleNonrosterPresence(
const Presence& presence ) = 0;
168 virtual void handleRosterError(
const IQ& iq ) = 0;
173 #endif // ROSTERLISTENER_H__