A handler that can be used to receive invitations to MUC rooms. More...
#include <mucinvitationhandler.h>
Public Member Functions | |
MUCInvitationHandler (ClientBase *parent) | |
virtual | ~MUCInvitationHandler () |
virtual void | handleMUCInvitation (const JID &room, const JID &from, const std::string &reason, const std::string &body, const std::string &password, bool cont, const std::string &thread)=0 |
A handler that can be used to receive invitations to MUC rooms.
Register a derived class with ClientBase::registerMUCInvitationHandler().
Definition at line 36 of file mucinvitationhandler.h.
MUCInvitationHandler | ( | ClientBase * | parent | ) | [inline] |
Constructor. Prepares the given ClientBase for receiving MUC invitations..
parent | A ClientBase instance to prepare. |
Definition at line 43 of file mucinvitationhandler.h.
virtual ~MUCInvitationHandler | ( | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 52 of file mucinvitationhandler.h.
virtual void handleMUCInvitation | ( | const JID & | room, | |
const JID & | from, | |||
const std::string & | reason, | |||
const std::string & | body, | |||
const std::string & | password, | |||
bool | cont, | |||
const std::string & | thread | |||
) | [pure virtual] |
This function is called for incoming invitations to MUC rooms.
room | The JID of the room you're being invited to. | |
from | The JID of the inviter. | |
reason | A reason for the invitation. | |
body | The body of the message. May contain a MUC-service generated invitation message. | |
password | Optionally, a password for the room. | |
cont | Indicates whether or not the multi-user chat is a continuation of a private chat. | |
thread | An optional thread identifier in case this is a continued chat. |