PTLib
Version 2.10.4
|
#include <xmpp_muc.h>
Public Member Functions | |
Room (C2S::StreamHandler *handler, const JID &jid, const PString &nick) | |
Our user in the room. | |
const User & | GetUser () const |
const Users & | GetOtherUsers () const |
virtual PBoolean | Enter () |
virtual PBoolean | Leave () |
virtual PBoolean | SendMessage (const PString &msg) |
virtual PBoolean | SendMessage (Message &msg) |
virtual void | OnMessage (Message &msg) |
virtual void | OnRoomJoined () |
virtual void | OnRoomLeft () |
virtual void | OnUserAdded (User &user) |
virtual void | OnUserRemoved (User &user) |
virtual void | OnUserChanged (User &user) |
![]() | |
virtual | ~PObject () |
virtual PObject * | Clone () const |
Create a copy of the class on the heap. | |
virtual PINDEX | HashFunction () const |
This function yields a hash value required by the PDictionary class. | |
virtual const char * | GetClass (unsigned ancestor=0) const |
Get the current dynamic type of the object instance. | |
PBoolean | IsClass (const char *cls) const |
virtual PBoolean | InternalIsDescendant (const char *clsName) const |
Determine if the dynamic type of the current instance is a descendent of the specified class. | |
virtual Comparison | Compare (const PObject &obj) const |
Compare the two objects and return their relative rank. | |
virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
Determine the byte wise comparison of two objects. | |
bool | operator== (const PObject &obj) const |
Compare the two objects. | |
bool | operator!= (const PObject &obj) const |
Compare the two objects. | |
bool | operator< (const PObject &obj) const |
Compare the two objects. | |
bool | operator> (const PObject &obj) const |
Compare the two objects. | |
bool | operator<= (const PObject &obj) const |
Compare the two objects. | |
bool | operator>= (const PObject &obj) const |
Compare the two objects. | |
virtual void | PrintOn (ostream &strm) const |
Output the contents of the object to the stream. | |
virtual void | ReadFrom (istream &strm) |
Input the contents of the object from the stream. |
Protected Member Functions | |
PDECLARE_SMART_NOTIFIER (C2S::StreamHandler, Room, OnSessionReleased) | |
PDECLARE_SMART_NOTIFIER (Message, Room, OnMessage) | |
PDECLARE_SMART_NOTIFIER (Presence, Room, OnPresence) | |
![]() | |
PObject () | |
Constructor for PObject, made protected so cannot ever create one on its own. |
Additional Inherited Members | |
![]() | |
enum | Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 } |
Result of the comparison operation performed by the Compare() function. More... | |
![]() | |
static const char * | Class () |
Get the name of the class as a C string. | |
static Comparison | InternalCompareObjectMemoryDirect (const PObject *obj1, const PObject *obj2, PINDEX size) |
Internal function caled from CompareObjectMemoryDirect() | |
![]() |
XMPP::MUC::Room::Room | ( | C2S::StreamHandler * | handler, |
const JID & | jid, | ||
const PString & | nick | ||
) |
Our user in the room.
handler | The C2S stream handler |
jid | The room's jid |
|
virtual |
|
inline |
References m_OtherUsers.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by GetOtherUsers().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |