|
Twitch SDK (Internal)
|
#include <pubsubcomponent.h>
Public Types | |
| using | DisposerFunc = std::function< void()> |
| enum | State { State::Uninitialized, State::Initialized, State::ShuttingDown, State::Inert } |
Public Member Functions | |
| PubSubComponent (const std::shared_ptr< User > &user) | |
| virtual | ~PubSubComponent ()=default |
| virtual void | CompleteShutdown () override |
| void | SetListener (const std::shared_ptr< LISTENER > &listener) |
| void | SetDisposer (DisposerFunc &&func) |
| TTV_ErrorCode | Dispose () |
| virtual TTV_ErrorCode | Initialize () override |
| virtual TTV_ErrorCode | Shutdown () override |
| virtual std::string | GetLoggerName () const override=0 |
| virtual void | OnTopicSubscribeStateChanged (const std::string &topic, PubSubClient::SubscribeState::Enum state, TTV_ErrorCode ec)=0 |
| virtual void | OnTopicMessageReceived (const std::string &topic, const json::Value &msg)=0 |
| virtual void | OnTopicListenerRemoved (const std::string &topic, TTV_ErrorCode ec) |
| virtual void | SetTaskRunner (std::shared_ptr< TaskRunner > taskRunner) |
| std::shared_ptr< TaskRunner > | GetTaskRunner () |
| virtual State | GetState () const override |
| virtual void | Update () override |
Protected Member Functions | |
| virtual bool | CheckShutdown () override |
| virtual void | AddTopic (const std::string &topic) |
| virtual TTV_ErrorCode | SubscribeTopics () |
| virtual void | OnUserLogInComplete (TTV_ErrorCode ec) |
| virtual void | OnUserLogOutComplete (TTV_ErrorCode ec) |
| virtual void | OnUserInfoFetchComplete (TTV_ErrorCode ec) |
| virtual void | OnUserAuthenticationIssue (std::shared_ptr< const OAuthToken > oauthToken, TTV_ErrorCode ec) |
| void | Log (TTV_MessageLevel level, const char *format,...) |
| TTV_ErrorCode | StartTask (std::shared_ptr< Task > task) |
| void | CompleteTask (Task *task) |
| bool | IsTaskRunning (Task *task) const |
| virtual void | SetState (State state) |
| virtual void | SetClientState (State state) |
| virtual void | SetServerState (State state) |
Protected Attributes | |
| std::shared_ptr< LISTENER > | mListener |
| std::shared_ptr< PubSubClient > | mPubSub |
| std::shared_ptr< PubSubTopicListener > | mPubSubTopicListener |
| std::shared_ptr< PubSubTopicListenerHelper > | mPubSubTopicListenerHelper |
| DisposerFunc | mDisposerFunc |
| std::vector< std::string > | mPubSubTopics |
| std::weak_ptr< User > | mUser |
| bool | mOAuthIssue |
| Whether or not the internal updates of the component are on hold because of an issue with the OAuth token. More... | |
| ClientServerValue< State > | mState |
| std::shared_ptr< TaskRunner > | mTaskRunner |
| std::vector< std::shared_ptr< Task > > | mRunningTasks |
| std::mutex | mTaskMutex |
| uint64_t | mShutdownTimeMilliseconds |
Manages listeners for pub-sub updates on a channel
|
inherited |
|
stronginherited |
|
inline |
|
virtualdefault |
|
protectedvirtualinherited |
|
overrideprotectedvirtualinherited |
Reimplemented from ttv::Component.
Reimplemented in ttv::ChannelStatus, and ttv::ProfileImageStatus.
|
inlineoverridevirtual |
Reimplemented from ttv::PubSubComponentBase.
Reimplemented in ttv::chat::ChatRaid, and ttv::ChannelStatus.
|
protectedinherited |
|
inherited |
|
overridepure virtualinherited |
Implements ttv::Component.
Implemented in ttv::chat::ChatRaid, ttv::chat::UserEmoticonSets, ttv::ChannelStatus, ttv::ProfileImageStatus, ttv::chat::BitsStatus, ttv::chat::ChatRoom, ttv::chat::FollowersStatus, ttv::chat::SubscribersStatus, ttv::chat::ChatChannelProperties, ttv::chat::ChatRoomNotifications, and ttv::chat::ChannelChatRoomManager.
|
overridevirtualinherited |
Implements ttv::IComponent.
|
inlineinherited |
|
overridevirtualinherited |
Reimplemented from ttv::UserComponent.
Reimplemented in ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, and ttv::ChannelStatus.
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
|
pure virtualinherited |
Implemented in ttv::chat::UserEmoticonSets, ttv::chat::ChatRoom, ttv::chat::ChatRaid, ttv::chat::BitsStatus, ttv::chat::ChannelChatRoomManager, ttv::ChannelStatus, ttv::chat::SubscribersStatus, ttv::ProfileImageStatus, ttv::chat::FollowersStatus, ttv::chat::ChatChannelProperties, and ttv::chat::ChatRoomNotifications.
|
pure virtualinherited |
Implemented in ttv::chat::ChatRoom, ttv::chat::UserEmoticonSets, ttv::chat::ChatRaid, ttv::chat::BitsStatus, ttv::chat::ChannelChatRoomManager, ttv::ChannelStatus, ttv::chat::SubscribersStatus, ttv::ProfileImageStatus, ttv::chat::FollowersStatus, ttv::chat::ChatChannelProperties, and ttv::chat::ChatRoomNotifications.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented in ttv::social::FriendList, ttv::social::Presence, and ttv::chat::ChatUserThreads.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
inlineinherited |
|
inline |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
virtualinherited |
Reimplemented in ttv::broadcast::Streamer, and ttv::social::FriendList.
|
overridevirtualinherited |
Reimplemented from ttv::Component.
Reimplemented in ttv::chat::BitsStatus, and ttv::chat::UserEmoticonSets.
|
protectedinherited |
|
protectedvirtualinherited |
|
overridevirtualinherited |
Implements ttv::IComponent.
Reimplemented in ttv::PubSubClient, ttv::broadcast::Streamer, ttv::ComponentContainer, ttv::social::FriendList, ttv::chat::ChatUserThread, ttv::UserRepository, ttv::social::Presence, ttv::broadcast::IngestTester, ttv::User, ttv::chat::ChatUserThreads, ttv::chat::BitsConfigRepository, ttv::chat::ChatUserBlockList, ttv::chat::ChatReplay, ttv::chat::ChatChannelSet, ttv::ChannelRepository, ttv::chat::ChatRaid, ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, ttv::ChannelStatus, ttv::chat::ChatRoom, and ttv::ProfileImageStatus.
|
protectedinherited |
|
protected |
|
protectedinherited |
Whether or not the internal updates of the component are on hold because of an issue with the OAuth token.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
protectedinherited |
1.8.13