Collaboration diagram for Swift::MUC:Public Types | |
| enum | JoinResult { JoinSucceeded, JoinFailed } |
| enum | LeavingType { LeavePart, LeaveKick, LeaveBan, LeaveDestroy, LeaveNotMember, Disconnect } |
| typedef boost::shared_ptr< MUC > | ref |
Public Member Functions | |
| MUC (StanzaChannel *stanzaChannel, IQRouter *iqRouter, DirectedPresenceSender *presenceSender, const JID &muc, MUCRegistry *mucRegistry) | |
| JID | getJID () const |
| Returns the (bare) JID of the MUC. | |
| void | joinAs (const std::string &nick) |
| void | joinWithContextSince (const std::string &nick, const boost::posix_time::ptime &since) |
| std::string | getCurrentNick () |
| void | part () |
| void | handleIncomingMessage (Message::ref message) |
| void | handleUserLeft (LeavingType) |
| Expose public so it can be called when e.g. | |
| const MUCOccupant & | getOccupant (const std::string &nick) |
| Get occupant information. | |
| bool | hasOccupant (const std::string &nick) |
| void | kickOccupant (const JID &jid) |
| void | changeOccupantRole (const JID &jid, MUCOccupant::Role role) |
| void | requestAffiliationList (MUCOccupant::Affiliation) |
| void | changeAffiliation (const JID &jid, MUCOccupant::Affiliation affiliation) |
| void | changeSubject (const std::string &subject) |
| void | requestConfigurationForm () |
| void | configureRoom (Form::ref) |
| void | cancelConfigureRoom () |
| void | destroyRoom () |
| void | invitePerson (const JID &person, const std::string &reason="") |
| Send an invite for the person to join the MUC. | |
| void | setCreateAsReservedIfNew () |
| void | setPassword (const boost::optional< std::string > &password) |
Public Attributes | |
| boost::signal< void(const std::string &)> | onJoinComplete |
| boost::signal< void(ErrorPayload::ref)> | onJoinFailed |
| boost::signal< void(ErrorPayload::ref, const JID &, MUCOccupant::Role)> | onRoleChangeFailed |
| boost::signal< void(ErrorPayload::ref, const JID &, MUCOccupant::Affiliation)> | onAffiliationChangeFailed |
| boost::signal< void(ErrorPayload::ref)> | onConfigurationFailed |
| boost::signal< void(ErrorPayload::ref)> | onAffiliationListFailed |
| boost::signal< void(Presence::ref)> | onOccupantPresenceChange |
| boost::signal< void(const std::string &, const MUCOccupant &, const MUCOccupant::Role &)> | onOccupantRoleChanged |
| boost::signal< void(const std::string &, const MUCOccupant::Affiliation &, const MUCOccupant::Affiliation &)> | onOccupantAffiliationChanged |
| boost::signal< void(const MUCOccupant &)> | onOccupantJoined |
| boost::signal< void(const MUCOccupant &, LeavingType, const std::string &)> | onOccupantLeft |
| boost::signal< void(Form::ref)> | onConfigurationFormReceived |
| boost::signal< void(MUCOccupant::Affiliation, const std::vector< JID > &)> | onAffiliationListReceived |
Definition at line 23 of file MUC.h.
| typedef boost::shared_ptr<MUC> Swift::MUC::ref |
| Swift::MUC::MUC | ( | StanzaChannel * | stanzaChannel, | |
| IQRouter * | iqRouter, | |||
| DirectedPresenceSender * | presenceSender, | |||
| const JID & | muc, | |||
| MUCRegistry * | mucRegistry | |||
| ) |
| void Swift::MUC::cancelConfigureRoom | ( | ) |
| void Swift::MUC::changeAffiliation | ( | const JID & | jid, | |
| MUCOccupant::Affiliation | affiliation | |||
| ) |
| void Swift::MUC::changeOccupantRole | ( | const JID & | jid, | |
| MUCOccupant::Role | role | |||
| ) |
| void Swift::MUC::changeSubject | ( | const std::string & | subject | ) |
| void Swift::MUC::configureRoom | ( | Form::ref | ) |
| void Swift::MUC::destroyRoom | ( | ) |
| std::string Swift::MUC::getCurrentNick | ( | ) |
| JID Swift::MUC::getJID | ( | ) | const [inline] |
| const MUCOccupant& Swift::MUC::getOccupant | ( | const std::string & | nick | ) |
Get occupant information.
| void Swift::MUC::handleIncomingMessage | ( | Message::ref | message | ) |
| void Swift::MUC::handleUserLeft | ( | LeavingType | ) |
Expose public so it can be called when e.g.
user goes offline
| bool Swift::MUC::hasOccupant | ( | const std::string & | nick | ) |
| void Swift::MUC::invitePerson | ( | const JID & | person, | |
| const std::string & | reason = "" | |||
| ) |
Send an invite for the person to join the MUC.
| void Swift::MUC::joinAs | ( | const std::string & | nick | ) |
| void Swift::MUC::joinWithContextSince | ( | const std::string & | nick, | |
| const boost::posix_time::ptime & | since | |||
| ) |
| void Swift::MUC::kickOccupant | ( | const JID & | jid | ) |
| void Swift::MUC::part | ( | ) |
| void Swift::MUC::requestAffiliationList | ( | MUCOccupant::Affiliation | ) |
| void Swift::MUC::requestConfigurationForm | ( | ) |
| void Swift::MUC::setPassword | ( | const boost::optional< std::string > & | password | ) |
| boost::signal<void (ErrorPayload::ref, const JID&, MUCOccupant::Affiliation)> Swift::MUC::onAffiliationChangeFailed |
| boost::signal<void (ErrorPayload::ref)> Swift::MUC::onAffiliationListFailed |
| boost::signal<void (MUCOccupant::Affiliation, const std::vector<JID>&)> Swift::MUC::onAffiliationListReceived |
| boost::signal<void (ErrorPayload::ref)> Swift::MUC::onConfigurationFailed |
| boost::signal<void (Form::ref)> Swift::MUC::onConfigurationFormReceived |
| boost::signal<void (const std::string& )> Swift::MUC::onJoinComplete |
| boost::signal<void (ErrorPayload::ref)> Swift::MUC::onJoinFailed |
| boost::signal<void (const std::string&, const MUCOccupant::Affiliation& , const MUCOccupant::Affiliation& )> Swift::MUC::onOccupantAffiliationChanged |
| boost::signal<void (const MUCOccupant&)> Swift::MUC::onOccupantJoined |
| boost::signal<void (const MUCOccupant&, LeavingType, const std::string& )> Swift::MUC::onOccupantLeft |
| boost::signal<void (Presence::ref)> Swift::MUC::onOccupantPresenceChange |
| boost::signal<void (const std::string&, const MUCOccupant& , const MUCOccupant::Role& )> Swift::MUC::onOccupantRoleChanged |
| boost::signal<void (ErrorPayload::ref, const JID&, MUCOccupant::Role)> Swift::MUC::onRoleChangeFailed |
1.7.1