![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|


Classes | |
| struct | SPlayer |
Public Types | |
| using | PlayerMap = std::map< std::string, SPlayer > |
Public Member Functions | |
| Impl (const Script::Interface *scriptInterface, const std::string &sUsername, const std::string &sPassword, const std::string &sRoom, const std::string &sNick, const int historyRequestSize, const bool regOpt) | |
Public Attributes | |
| std::string | m_server |
| gloox::Client | m_client |
| std::optional< gloox::MUCRoom > | m_mucRoom |
| gloox::Registration | m_registration |
| gloox::Jingle::SessionManager | m_sessionManager |
| std::string | m_username |
| std::string | m_password |
| std::string | m_room |
| std::string | m_nick |
| std::string | m_xpartamuppId |
| std::string | m_echelonId |
| std::string | m_connectionDataJid |
| std::string | m_connectionDataIqId |
| gloox::CertStatus | m_certStatus |
| bool | m_initialLoadComplete |
| bool | m_regOpt |
| std::set< std::string > | m_Buddies |
| PlayerMap | m_PlayerMap |
| Map of players. More... | |
| bool | m_PlayerMapUpdate |
| Whether or not the playermap has changed since the last time the GUI checked. More... | |
| std::vector< std::unique_ptr< const gloox::Tag > > | m_GameList |
| List of games. More... | |
| std::vector< std::unique_ptr< const gloox::Tag > > | m_BoardList |
| List of rankings. More... | |
| std::vector< std::unique_ptr< const gloox::Tag > > | m_Profile |
| Profile data. More... | |
| const Script::Interface * | m_ScriptInterface |
| Script::Interface to root the values. More... | |
| JS::PersistentRootedVector< JS::Value > | m_GuiMessageQueue |
| Queue of messages for the GUI. More... | |
| JS::PersistentRootedVector< JS::Value > | m_HistoricGuiMessages |
| Cache of all GUI messages received since the login. More... | |
| std::wstring | m_Subject |
| Current room subject/topic. More... | |
Private Member Functions | |
| void | handleMUCParticipantPresence (gloox::MUCRoom *room, gloox::MUCRoomParticipant, const gloox::Presence &) override |
| Update local data when a user changes presence. More... | |
| void | handleMUCError (gloox::MUCRoom *room, gloox::StanzaError) override |
| Handle MUC room errors. More... | |
| void | handleMUCMessage (gloox::MUCRoom *room, const gloox::Message &msg, bool priv) override |
| Handle a room message. More... | |
| void | handleMUCSubject (gloox::MUCRoom *room, const std::string &nick, const std::string &subject) override |
| Update local cache when subject changes. More... | |
| bool | handleMUCRoomCreation (gloox::MUCRoom *) override |
| void | handleMUCInviteDecline (gloox::MUCRoom *, const gloox::JID &, const std::string &) override |
| void | handleMUCInfo (gloox::MUCRoom *, int, const std::string &, const gloox::DataForm *) override |
| void | handleMUCItems (gloox::MUCRoom *, const std::list< gloox::Disco::Item *, std::allocator< gloox::Disco::Item * > > &) override |
| void | handleLog (gloox::LogLevel level, gloox::LogArea area, const std::string &message) override |
| Log (debug) Handler. More... | |
| void | onConnect () override |
| Handle connection. More... | |
| void | onDisconnect (gloox::ConnectionError e) override |
| Handle disconnection. More... | |
| bool | onTLSConnect (const gloox::CertInfo &info) override |
| Handle TLS connection. More... | |
| bool | handleIq (const gloox::IQ &iq) override |
| Handle portions of messages containing custom stanza extensions. More... | |
| void | handleIqID (const gloox::IQ &, int) override |
| void | handleRegistrationFields (const gloox::JID &, int fields, std::string instructions) override |
| void | handleRegistrationResult (const gloox::JID &, gloox::RegistrationResult result) override |
| void | handleAlreadyRegistered (const gloox::JID &) override |
| void | handleDataForm (const gloox::JID &, const gloox::DataForm &) override |
| void | handleOOB (const gloox::JID &, const gloox::OOB &oob) override |
| void | handleMessage (const gloox::Message &msg, gloox::MessageSession *session) override |
| Handle a private message. More... | |
| void | handleSessionAction (gloox::Jingle::Action action, gloox::Jingle::Session *session, const gloox::Jingle::Session::Jingle *jingle) override |
| void | handleSessionActionError (gloox::Jingle::Action, gloox::Jingle::Session *, const gloox::Error *) override |
| void | handleIncomingSession (gloox::Jingle::Session *) override |
| void | handleSessionInitiation (gloox::Jingle::Session *session, const gloox::Jingle::Session::Jingle *jingle) |
| void | UpdateBuddies () |
| Rebuild m_Buddies from the roster. More... | |
| void | MigrateBuddyList () |
| Move a pre-roster buddy list from the config into the roster, then drop it from the config. More... | |
| void | handleItemAdded (const gloox::JID &jid) override |
| void | handleItemSubscribed (const gloox::JID &) override |
| void | handleItemRemoved (const gloox::JID &jid) override |
| void | handleItemUpdated (const gloox::JID &jid) override |
| void | handleItemUnsubscribed (const gloox::JID &) override |
| void | handleRoster (const gloox::Roster &) override |
| void | handleRosterPresence (const gloox::RosterItem &, const std::string &, gloox::Presence::PresenceType, const std::string &) override |
| void | handleSelfPresence (const gloox::RosterItem &, const std::string &, gloox::Presence::PresenceType, const std::string &) override |
| bool | handleSubscriptionRequest (const gloox::JID &, const std::string &) override |
| bool | handleUnsubscriptionRequest (const gloox::JID &, const std::string &) override |
| void | handleNonrosterPresence (const gloox::Presence &) override |
| void | handleRosterError (const gloox::IQ &iq) override |
| template<typename... Args> | |
| void | CreateGUIMessage (const std::string &type, const std::string &level, const std::time_t time, Args const &... args) |
| using XmppClient::Impl::PlayerMap = std::map<std::string, SPlayer> |
| XmppClient::Impl::Impl | ( | const Script::Interface * | scriptInterface, |
| const std::string & | sUsername, | ||
| const std::string & | sPassword, | ||
| const std::string & | sRoom, | ||
| const std::string & | sNick, | ||
| const int | historyRequestSize, | ||
| const bool | regOpt | ||
| ) |
|
private |
|
overrideprivate |
|
overrideprivate |
|
inlineoverrideprivate |
|
overrideprivate |
Handle portions of messages containing custom stanza extensions.
|
inlineoverrideprivate |
|
overrideprivate |
|
overrideprivate |
|
inlineoverrideprivate |
|
inlineoverrideprivate |
|
overrideprivate |
|
overrideprivate |
Log (debug) Handler.
|
overrideprivate |
Handle a private message.
|
overrideprivate |
Handle MUC room errors.
|
inlineoverrideprivate |
|
inlineoverrideprivate |
|
inlineoverrideprivate |
|
overrideprivate |
Handle a room message.
|
overrideprivate |
Update local data when a user changes presence.
|
inlineoverrideprivate |
|
overrideprivate |
Update local cache when subject changes.
|
inlineoverrideprivate |
|
overrideprivate |
|
overrideprivate |
|
overrideprivate |
|
overrideprivate |
|
overrideprivate |
|
inlineoverrideprivate |
|
inlineoverrideprivate |
|
overrideprivate |
|
inlineoverrideprivate |
|
private |
|
inlineoverrideprivate |
|
inlineoverrideprivate |
|
private |
Move a pre-roster buddy list from the config into the roster, then drop it from the config.
Does nothing once that migration has happened.
Must only be called once the roster has been received, since an empty roster cannot be distinguished from one without buddies.
|
overrideprivate |
Handle connection.
|
overrideprivate |
Handle disconnection.
|
overrideprivate |
Handle TLS connection.
|
private |
Rebuild m_Buddies from the roster.
| std::vector<std::unique_ptr<const gloox::Tag> > XmppClient::Impl::m_BoardList |
List of rankings.
| std::set<std::string> XmppClient::Impl::m_Buddies |
| gloox::CertStatus XmppClient::Impl::m_certStatus |
| gloox::Client XmppClient::Impl::m_client |
| std::string XmppClient::Impl::m_connectionDataIqId |
| std::string XmppClient::Impl::m_connectionDataJid |
| std::string XmppClient::Impl::m_echelonId |
| std::vector<std::unique_ptr<const gloox::Tag> > XmppClient::Impl::m_GameList |
List of games.
| JS::PersistentRootedVector<JS::Value> XmppClient::Impl::m_GuiMessageQueue |
Queue of messages for the GUI.
| JS::PersistentRootedVector<JS::Value> XmppClient::Impl::m_HistoricGuiMessages |
Cache of all GUI messages received since the login.
| bool XmppClient::Impl::m_initialLoadComplete |
| std::optional<gloox::MUCRoom> XmppClient::Impl::m_mucRoom |
| std::string XmppClient::Impl::m_nick |
| std::string XmppClient::Impl::m_password |
| PlayerMap XmppClient::Impl::m_PlayerMap |
Map of players.
| bool XmppClient::Impl::m_PlayerMapUpdate |
Whether or not the playermap has changed since the last time the GUI checked.
| std::vector<std::unique_ptr<const gloox::Tag> > XmppClient::Impl::m_Profile |
Profile data.
| gloox::Registration XmppClient::Impl::m_registration |
| bool XmppClient::Impl::m_regOpt |
| std::string XmppClient::Impl::m_room |
| const Script::Interface* XmppClient::Impl::m_ScriptInterface |
Script::Interface to root the values.
| std::string XmppClient::Impl::m_server |
| gloox::Jingle::SessionManager XmppClient::Impl::m_sessionManager |
| std::wstring XmppClient::Impl::m_Subject |
Current room subject/topic.
| std::string XmppClient::Impl::m_username |
| std::string XmppClient::Impl::m_xpartamuppId |