An abstraction of a MUC user query. More...
#include <mucroom.h>
Inherits gloox::StanzaExtension.
Public Member Functions | |
MUCUser (MUCUserOperation operation, const std::string &to, const std::string &reason, const std::string &thread=EmptyString) | |
MUCUser (const Tag *tag=0) | |
virtual | ~MUCUser () |
int | flags () const |
MUCRoomAffiliation | affiliation () const |
MUCRoomRole | role () const |
const std::string * | alternate () const |
bool | continued () const |
MUCUserOperation | operation () const |
virtual const std::string & | filterString () const |
virtual StanzaExtension * | newInstance (const Tag *tag) const |
virtual Tag * | tag () const |
virtual StanzaExtension * | clone () const |
An abstraction of a MUC user query.
You should not need to use this class directly.
Definition at line 201 of file mucroom.h.
MUCUser | ( | MUCUserOperation | operation, | |
const std::string & | to, | |||
const std::string & | reason, | |||
const std::string & | thread = EmptyString | |||
) |
Constructor.
operation | An operation to perform. | |
to | The recipient. | |
reason | The reason for the operation. | |
thread | If this is an invitation, and if the invitation is part of a transformation of a one-to-one chat to a MUC, include the one-to-one chat's thread ID here. Defaults to the empty string (i.e. not a continuation). |
Definition at line 298 of file mucroom.cpp.
Constructs a new MUCUser object from the given Tag.
tag | The Tag to parse. |
Definition at line 309 of file mucroom.cpp.
~MUCUser | ( | ) | [virtual] |
Virtual destructor.
Definition at line 415 of file mucroom.cpp.
MUCRoomAffiliation affiliation | ( | ) | const [inline] |
const std::string* alternate | ( | ) | const [inline] |
virtual StanzaExtension* clone | ( | ) | const [inline, virtual] |
Returns an identical copy of the current StanzaExtension.
Implements StanzaExtension.
bool continued | ( | ) | const [inline] |
const std::string & filterString | ( | ) | const [virtual] |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension.
Definition at line 450 of file mucroom.cpp.
int flags | ( | ) | const [inline] |
virtual StanzaExtension* newInstance | ( | const Tag * | tag | ) | const [inline, virtual] |
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
StanzaExtension* FooExtension::newInstance( const Tag* tag ) const { return new FooExtension( tag ); }
Implements StanzaExtension.
MUCUserOperation operation | ( | ) | const [inline] |
MUCRoomRole role | ( | ) | const [inline] |
Tag * tag | ( | ) | const [virtual] |
Returns a Tag representation of the extension.
Implements StanzaExtension.
Definition at line 457 of file mucroom.cpp.