|
Twitch SDK (Internal)
|
#include <profileimagestatus.h>
Public Types | |
| using | DisposerFunc = std::function< void()> |
| using | UploadProfileImageCallback = std::function< void(TTV_ErrorCode ec, const std::vector< ProfileImage > &images)> |
| enum | State { State::Uninitialized, State::Initialized, State::ShuttingDown, State::Inert } |
Public Member Functions | |
| ProfileImageStatus (const std::shared_ptr< User > &user, ChannelId userId) | |
| virtual | ~ProfileImageStatus ()=default |
| TTV_ErrorCode | UploadProfileImage (const char *imageBuffer, size_t imageSize, const UploadProfileImageCallback &callback) |
| virtual void | Update () override |
| virtual std::string | GetLoggerName () const override |
| void | OnTopicSubscribeStateChanged (const std::string &, PubSubClient::SubscribeState::Enum state, TTV_ErrorCode) override |
| void | OnTopicMessageReceived (const std::string &topic, const json::Value &msg) override |
| virtual void | CompleteShutdown () override |
| void | SetListener (const std::shared_ptr< IChannelListener > &listener) |
| void | SetDisposer (DisposerFunc &&func) |
| TTV_ErrorCode | Dispose () |
| virtual TTV_ErrorCode | Initialize () override |
| virtual TTV_ErrorCode | Shutdown () override |
| 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 |
Static Public Member Functions | |
| static std::string | GetComponentName () |
Protected Member Functions | |
| 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< IChannelListener > | 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 |
Private Member Functions | |
| virtual bool | CheckShutdown () override |
| void | FireListenerAndCallback (const std::string &uploadId, const std::vector< ProfileImage > &images, TTV_ErrorCode ec) |
Private Attributes | |
| UploadProfileImageCallback | mCallback |
| WaitForEventWithTimeout | mUploadTimeout |
| std::string | mImage |
| std::string | mUploadId |
| std::string | mPubSubTopic |
| UserId | mUserId |
| bool | mUploadInProgress |
Handle profile image upload and listeners for successful upload
| using ttv::ProfileImageStatus::DisposerFunc = std::function<void()> |
| using ttv::ProfileImageStatus::UploadProfileImageCallback = std::function<void(TTV_ErrorCode ec, const std::vector<ProfileImage>& images)> |
|
stronginherited |
| ttv::ProfileImageStatus::ProfileImageStatus | ( | const std::shared_ptr< User > & | user, |
| ChannelId | userId | ||
| ) |
|
virtualdefault |
|
protectedvirtualinherited |
|
overrideprivatevirtual |
Reimplemented from ttv::PubSubComponentBase.
|
inlineoverridevirtualinherited |
Reimplemented from ttv::PubSubComponentBase.
Reimplemented in ttv::ChannelStatus.
|
protectedinherited |
|
inherited |
|
private |
|
inlinestatic |
|
overridevirtual |
Implements ttv::PubSubComponentBase.
|
overridevirtualinherited |
Implements ttv::IComponent.
|
inlineinherited |
|
overridevirtualinherited |
Reimplemented from ttv::UserComponent.
Reimplemented in ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, and ttv::ChannelStatus.
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
|
overridevirtual |
Implements ttv::PubSubComponentBase.
|
overridevirtual |
Implements ttv::PubSubComponentBase.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented in ttv::social::FriendList, ttv::social::Presence, and ttv::chat::ChatUserThreads.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
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 |
|
overridevirtual |
Reimplemented from ttv::Component.
| TTV_ErrorCode ttv::ProfileImageStatus::UploadProfileImage | ( | const char * | imageBuffer, |
| size_t | imageSize, | ||
| const UploadProfileImageCallback & | callback | ||
| ) |
|
private |
|
protectedinherited |
|
private |
|
protectedinherited |
|
protectedinherited |
Whether or not the internal updates of the component are on hold because of an issue with the OAuth token.
|
protectedinherited |
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
private |
|
private |
|
private |
|
protectedinherited |
|
private |
1.8.13