Public Member Functions | List of all members
InstantMUCRoom Class Reference

#include <instantmucroom.h>

Inheritance diagram for InstantMUCRoom:
Inheritance graph
Collaboration diagram for InstantMUCRoom:
Collaboration graph

Public Member Functions

 InstantMUCRoom (ClientBase *parent, const JID &nick, MUCRoomHandler *mrh)
virtual ~InstantMUCRoom ()
- Public Member Functions inherited from MUCRoom
 MUCRoom (ClientBase *parent, const JID &nick, MUCRoomHandler *mrh, MUCRoomConfigHandler *mrch=0)
virtual ~MUCRoom ()
void setPassword (const std::string &password)
const std::string name () const
const std::string service () const
const std::string nick () const
virtual void join ()
void leave (const std::string &msg="")
void send (const std::string &message)
void setSubject (const std::string &subject)
MUCRoomAffiliation affiliation () const
MUCRoomRole role () const
void setNick (const std::string &nick)
void setPresence (Presence presence, const std::string &msg="")
void invite (const JID &invitee, const std::string &reason, bool cont=false)
void getRoomInfo ()
void getRoomItems ()
void setPublish (bool publish, bool publishNick)
void registerMUCRoomHandler (MUCRoomHandler *mrl)
void removeMUCRoomHandler ()
void registerMUCRoomConfigHandler (MUCRoomConfigHandler *mrch)
void removeMUCRoomConfigHandler ()
void addHistory (const std::string &message, const JID &from, const std::string &stamp)
void setRequestHistory (int value, HistoryRequestType type)
void setRequestHistory (const std::string &since)
void requestVoice ()
void kick (const std::string &nick, const std::string &reason="")
void ban (const std::string &nick, const std::string &reason)
void grantVoice (const std::string &nick, const std::string &reason)
void revokeVoice (const std::string &nick, const std::string &reason)
void setRole (const std::string &nick, MUCRoomRole role, const std::string &reason="")
void setAffiliation (const std::string &nick, MUCRoomAffiliation affiliation, const std::string &reason)
void requestRoomConfig ()
void setRoomConfig (DataForm *form)
void acknowledgeInstantRoom ()
void cancelRoomCreation ()
void destroy (const std::string &reason="", const JID *alternate=0, const std::string &password="")
void requestList (MUCOperation operation)
void storeList (const MUCListItemList items, MUCOperation operation)
int flags () const
- Public Member Functions inherited from IqHandler
virtual ~IqHandler ()
virtual bool handleIq (Stanza *stanza)=0
virtual bool handleIqID (Stanza *stanza, int context)=0

Additional Inherited Members

- Public Types inherited from MUCRoom
enum  HistoryRequestType {
  HistoryUnknown, HistoryMaxChars, HistoryMaxStanzas, HistorySeconds,
- Static Public Member Functions inherited from MUCRoom
static StanzadeclineInvitation (const JID &room, const JID &invitor, const std::string &reason="")
static StanzacreateDataForm (const JID &room, const DataForm &df)

Detailed Description

This class implements an instant MUC room.

XEP version: 1.21

Jakob Schroeter

Definition at line 30 of file instantmucroom.h.

Constructor & Destructor Documentation

InstantMUCRoom ( ClientBase parent,
const JID nick,
MUCRoomHandler mrh 

Creates a new abstraction of a unique Multi-User Chat room. The room is not joined automatically. Use join() to join the room, use leave() to leave it. See MUCRoom for detailed info.

parentThe ClientBase object to use for the communication.
nickThe room's name and service plus the desired nickname in the form room@service/nick.
mrhThe MUCRoomHandler that will listen to room events. May be 0 and may be specified later using registerMUCRoomHandler(). However, without one, MUC is no joy.
To subsequently configure the room, use MUCRoom::registerMUCRoomConfigHandler().

Definition at line 22 of file instantmucroom.cpp.

~InstantMUCRoom ( )

Virtual Destructor.

Definition at line 27 of file instantmucroom.cpp.

The documentation for this class was generated from the following files: