|
Twitch SDK (Internal)
|
#include <chatconnection.h>
Classes | |
| class | Listener |
Public Member Functions | |
| ChatConnection (ChannelId channelId, const std::shared_ptr< User > &user) | |
| virtual | ~ChatConnection () |
| void | SetListener (Listener *listener) |
| void | SetChatObjectFactory (std::shared_ptr< IChatObjectFactory > factory) |
| void | SetChannelName (const std::string &channelName) |
| TTV_ErrorCode | Connect (const std::string &uri) |
| TTV_ErrorCode | Disconnect () |
| TTV_ErrorCode | SendChatMessage (const std::string &message, const ChatUserInfo &localUserInfo) |
| TTV_ErrorCode | Update () |
| std::string | GetLocalUserName () const |
| virtual void | ReceiveEvent (const ChatNetworkEvent &evt) |
Static Public Member Functions | |
| static TTV_ErrorCode | CheckFactoryAvailability (const std::string &uri) |
Private Member Functions | |
| void | SetState (ConnectionState state) |
| void | Join () |
| void | HandleCapMessage (const ChatNetworkEvent &evt) |
| void | HandlePrivateMessage (const ChatNetworkEvent &evt) |
| void | HandleUserState (const ChatNetworkEvent &evt) |
| void | HandleNotice (const ChatNetworkEvent &evt) |
| void | HandleClearChatMessage (const ChatNetworkEvent &evt) |
| void | HandleHostTargetMessage (const ChatNetworkEvent &evt) |
| void | HandleUserNotice (const ChatNetworkEvent &evt) |
| void | HandleMessageTags (const ChatNetworkEvent &evt) |
| void | HandleRoomState (const ChatNetworkEvent &evt) |
| void | CreateObjects () |
| void | ReleaseObjects () |
| std::string | CreateAnonymousUserName () |
Private Attributes | |
| std::shared_ptr< ChatReader > | mReader |
| The socket reader. More... | |
| std::shared_ptr< ChatWriter > | mWriter |
| The socket writer. More... | |
| std::shared_ptr< ChatSession > | mSession |
| The message interpreter. More... | |
| std::shared_ptr< IChatObjectFactory > | mChatObjectFactory |
| The internal chat object factory. More... | |
| std::shared_ptr< IChatTransport > | mTransport |
| The transport for sending and receiving chat messages. More... | |
| WaitForEventWithTimeout | mWelcomeMessageTimeout |
| WaitForEventWithTimeout | mJoinAttemptTimeout |
| std::string | mIrcChannelName |
| std::string | mUserName |
| The cached username. More... | |
| ConnectionState | mConnectionState |
| Listener * | mListener |
| TTV_ErrorCode | mConnectionError |
| std::shared_ptr< User > | mUser |
| ChannelId | mChannelId |
| ChatChannelRestrictions | mChatRestrictions |
| Stores the state of chat restrictions received by ROOMSTATE. More... | |
| bool | mAnonymous |
| Whether or not connecting anonymously to the channel. More... | |
| bool | mDisconnectionRequested |
| Whether or not expecting a disconnect. More... | |
| bool | mFireConnectionErrorEvents |
| Whether or not to fire a connection error event. More... | |
Wraps an instance of an IRC connection.
|
private |
| ttv::chat::ChatConnection::ChatConnection | ( | ChannelId | channelId, |
| const std::shared_ptr< User > & | user | ||
| ) |
|
virtual |
|
static |
| TTV_ErrorCode ttv::chat::ChatConnection::Connect | ( | const std::string & | uri | ) |
Connect to the channel.
|
private |
|
private |
| TTV_ErrorCode ttv::chat::ChatConnection::Disconnect | ( | ) |
Disconnect from the channel.
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Handles PRIVMSG.
|
private |
|
private |
|
private |
|
private |
|
virtual |
Implements ttv::chat::IChatReceiveNetworkEvent.
|
private |
| TTV_ErrorCode ttv::chat::ChatConnection::SendChatMessage | ( | const std::string & | message, |
| const ChatUserInfo & | localUserInfo | ||
| ) |
Sends a message from the current user.
| void ttv::chat::ChatConnection::SetChannelName | ( | const std::string & | channelName | ) |
| void ttv::chat::ChatConnection::SetChatObjectFactory | ( | std::shared_ptr< IChatObjectFactory > | factory | ) |
|
inline |
|
private |
| TTV_ErrorCode ttv::chat::ChatConnection::Update | ( | ) |
|
private |
Whether or not connecting anonymously to the channel.
|
private |
|
private |
The internal chat object factory.
|
private |
Stores the state of chat restrictions received by ROOMSTATE.
|
private |
|
private |
|
private |
Whether or not expecting a disconnect.
|
private |
Whether or not to fire a connection error event.
|
private |
|
private |
|
private |
|
private |
The socket reader.
|
private |
The message interpreter.
|
private |
The transport for sending and receiving chat messages.
|
private |
|
private |
The cached username.
|
private |
|
private |
The socket writer.
1.8.13