|
Chatterino
|
#include <TwitchChannel.hpp>
Classes | |
| struct | RoomModes |
| struct | StreamStatus |
Public Member Functions | |
| TwitchChannel (const QString &channelName) | |
| void | initialize () |
| virtual bool | isEmpty () const override |
| virtual bool | canSendMessage () const override |
| virtual void | sendMessage (const QString &message) override |
| virtual void | sendReply (const QString &message, const QString &replyId) |
| virtual bool | isMod () const override |
| bool | isVip () const |
| bool | isStaff () const |
| virtual bool | isBroadcaster () const override |
| virtual bool | hasHighRateLimit () const override |
| virtual bool | canReconnect () const override |
| virtual void | reconnect () override |
| void | refreshTitle () |
| void | createClip () |
| const QString & | subscriptionUrl () |
| const QString & | channelUrl () |
| const QString & | popoutPlayerUrl () |
| int | chatterCount () |
| virtual bool | isLive () const override |
| QString | roomId () const |
| SharedAccessGuard< const RoomModes > | accessRoomModes () const |
| SharedAccessGuard< const StreamStatus > | accessStreamStatus () const |
| boost::optional< EmotePtr > | bttvEmote (const EmoteName &name) const |
| boost::optional< EmotePtr > | ffzEmote (const EmoteName &name) const |
| boost::optional< EmotePtr > | seventvEmote (const EmoteName &name) const |
| std::shared_ptr< const EmoteMap > | bttvEmotes () const |
| std::shared_ptr< const EmoteMap > | ffzEmotes () const |
| std::shared_ptr< const EmoteMap > | seventvEmotes () const |
| virtual void | refreshBTTVChannelEmotes (bool manualRefresh) |
| virtual void | refreshFFZChannelEmotes (bool manualRefresh) |
| virtual void | refreshSevenTVChannelEmotes (bool manualRefresh) |
| const QString & | seventvUserID () const |
| const QString & | seventvEmoteSetID () const |
| void | addSeventvEmote (const SeventvEventAPIEmoteAddDispatch &dispatch) |
| void | updateSeventvEmote (const SeventvEventAPIEmoteUpdateDispatch &dispatch) |
| void | removeSeventvEmote (const SeventvEventAPIEmoteRemoveDispatch &dispatch) |
| void | updateSeventvUser (const SeventvEventAPIUserConnectionUpdateDispatch &dispatch) |
| void | updateSeventvData (const QString &newUserID, const QString &newEmoteSetID) |
| boost::optional< EmotePtr > | ffzCustomModBadge () const |
| boost::optional< EmotePtr > | ffzCustomVipBadge () const |
| boost::optional< EmotePtr > | twitchBadge (const QString &set, const QString &version) const |
| boost::optional< CheerEmote > | cheerEmote (const QString &string) |
| void | addReplyThread (const std::shared_ptr< MessageThread > &thread) |
| const std::unordered_map< QString, std::weak_ptr< MessageThread > > & | threads () const |
| void | addChannelPointReward (const ChannelPointReward &reward) |
| bool | isChannelPointRewardKnown (const QString &rewardId) |
| boost::optional< ChannelPointReward > | channelPointReward (const QString &rewardId) const |
Public Member Functions inherited from chatterino::Channel | |
| Channel (const QString &name, Type type) | |
| virtual | ~Channel () |
| Type | getType () const |
| const QString & | getName () const |
| bool | isTwitchChannel () const |
| LimitedQueueSnapshot< MessagePtr > | getMessageSnapshot () |
| void | addMessage (MessagePtr message, boost::optional< MessageFlags > overridingFlags=boost::none) |
| void | addMessagesAtStart (const std::vector< MessagePtr > &messages_) |
| void | fillInMissingMessages (const std::vector< MessagePtr > &messages) |
| Inserts the given messages in order by Message::serverReceivedTime. More... | |
| void | addOrReplaceTimeout (MessagePtr message) |
| void | disableAllMessages () |
| void | replaceMessage (MessagePtr message, MessagePtr replacement) |
| void | replaceMessage (size_t index, MessagePtr replacement) |
| void | deleteMessage (QString messageID) |
| MessagePtr | findMessage (QString messageID) |
| bool | hasMessages () const |
| virtual bool | isWritable () const |
| virtual bool | hasModRights () const |
| virtual bool | shouldIgnoreHighlights () const |
Public Member Functions inherited from chatterino::ChannelChatters | |
| ChannelChatters (Channel &channel) | |
| virtual | ~ChannelChatters ()=default |
| SharedAccessGuard< const ChatterSet > | accessChatters () const |
| void | addRecentChatter (const QString &user) |
| void | addJoinedUser (const QString &user) |
| void | addPartedUser (const QString &user) |
| const QColor | getUserColor (const QString &user) |
| void | setUserColor (const QString &user, const QColor &color) |
| void | updateOnlineChatters (const std::unordered_set< QString > &usernames) |
| size_t | colorsSize () const |
Public Attributes | |
| pajlada::Signals::NoArgSignal | roomIdChanged |
| pajlada::Signals::NoArgSignal | userStateChanged |
| pajlada::Signals::NoArgSignal | liveStatusChanged |
| pajlada::Signals::NoArgSignal | roomModesChanged |
| pajlada::Signals::SelfDisconnectingSignal< ChannelPointReward > | channelPointRewardAdded |
Public Attributes inherited from chatterino::Channel | |
| pajlada::Signals::Signal< const QString &, const QString &, bool & > | sendMessageSignal |
| pajlada::Signals::Signal< const QString &, const QString &, const QString &, bool & > | sendReplySignal |
| pajlada::Signals::Signal< MessagePtr & > | messageRemovedFromStart |
| pajlada::Signals::Signal< MessagePtr &, boost::optional< MessageFlags > > | messageAppended |
| pajlada::Signals::Signal< std::vector< MessagePtr > & > | messagesAddedAtStart |
| pajlada::Signals::Signal< size_t, MessagePtr & > | messageReplaced |
| pajlada::Signals::Signal< const std::vector< MessagePtr > & > | filledInMessages |
| Invoked when some number of messages were filled in using time received. More... | |
| pajlada::Signals::NoArgSignal | destroyed |
| pajlada::Signals::NoArgSignal | displayNameChanged |
| pajlada::Signals::NoArgSignal | connected |
| Invoked when AbstractIrcServer::onReadConnected occurs. More... | |
| CompletionModel | completionModel |
| QDate | lastDate_ |
Protected Attributes | |
| Atomic< std::shared_ptr< const EmoteMap > > | bttvEmotes_ |
| Atomic< std::shared_ptr< const EmoteMap > > | ffzEmotes_ |
| Atomic< std::shared_ptr< const EmoteMap > > | seventvEmotes_ |
| Atomic< boost::optional< EmotePtr > > | ffzCustomModBadge_ |
| Atomic< boost::optional< EmotePtr > > | ffzCustomVipBadge_ |
Friends | |
| class | TwitchIrcServer |
| class | TwitchMessageBuilder |
| class | IrcMessageHandler |
Additional Inherited Members | |
Public Types inherited from chatterino::Channel | |
| enum | Type { Type::None, Type::Direct, Type::Twitch, Type::TwitchWhispers, Type::TwitchWatching, Type::TwitchMentions, Type::TwitchLive, Type::TwitchEnd, Type::Irc, Type::Misc } |
Static Public Member Functions inherited from chatterino::Channel | |
| static std::shared_ptr< Channel > | getEmpty () |
Static Public Attributes inherited from chatterino::ChannelChatters | |
| static constexpr int | maxChatterColorCount = 5000 |
Protected Member Functions inherited from chatterino::Channel | |
| virtual void | onConnected () |
|
explicit |
| SharedAccessGuard< const TwitchChannel::RoomModes > chatterino::TwitchChannel::accessRoomModes | ( | ) | const |
| SharedAccessGuard< const TwitchChannel::StreamStatus > chatterino::TwitchChannel::accessStreamStatus | ( | ) | const |
| void chatterino::TwitchChannel::addChannelPointReward | ( | const ChannelPointReward & | reward | ) |
| void chatterino::TwitchChannel::addReplyThread | ( | const std::shared_ptr< MessageThread > & | thread | ) |
Stores the given thread in this channel.
Note: This method not take ownership of the MessageThread; this TwitchChannel instance will store a weak_ptr to the thread.
| void chatterino::TwitchChannel::addSeventvEmote | ( | const SeventvEventAPIEmoteAddDispatch & | dispatch | ) |
Adds a 7TV channel emote to this channel.
| boost::optional< EmotePtr > chatterino::TwitchChannel::bttvEmote | ( | const EmoteName & | name | ) | const |
| std::shared_ptr< const EmoteMap > chatterino::TwitchChannel::bttvEmotes | ( | ) | const |
|
overridevirtual |
Reimplemented from chatterino::Channel.
|
overridevirtual |
| boost::optional< ChannelPointReward > chatterino::TwitchChannel::channelPointReward | ( | const QString & | rewardId | ) | const |
| const QString & chatterino::TwitchChannel::channelUrl | ( | ) |
| int chatterino::TwitchChannel::chatterCount | ( | ) |
| boost::optional< CheerEmote > chatterino::TwitchChannel::cheerEmote | ( | const QString & | string | ) |
| void chatterino::TwitchChannel::createClip | ( | ) |
| boost::optional< EmotePtr > chatterino::TwitchChannel::ffzCustomModBadge | ( | ) | const |
| boost::optional< EmotePtr > chatterino::TwitchChannel::ffzCustomVipBadge | ( | ) | const |
| boost::optional< EmotePtr > chatterino::TwitchChannel::ffzEmote | ( | const EmoteName & | name | ) | const |
| std::shared_ptr< const EmoteMap > chatterino::TwitchChannel::ffzEmotes | ( | ) | const |
|
overridevirtual |
Reimplemented from chatterino::Channel.
| void chatterino::TwitchChannel::initialize | ( | ) |
|
overridevirtual |
Reimplemented from chatterino::Channel.
| bool chatterino::TwitchChannel::isChannelPointRewardKnown | ( | const QString & | rewardId | ) |
|
overridevirtual |
Reimplemented from chatterino::Channel.
|
overridevirtual |
|
overridevirtual |
| bool chatterino::TwitchChannel::isStaff | ( | ) | const |
| bool chatterino::TwitchChannel::isVip | ( | ) | const |
| const QString & chatterino::TwitchChannel::popoutPlayerUrl | ( | ) |
|
overridevirtual |
|
virtual |
|
virtual |
|
virtual |
| void chatterino::TwitchChannel::refreshTitle | ( | ) |
| void chatterino::TwitchChannel::removeSeventvEmote | ( | const SeventvEventAPIEmoteRemoveDispatch & | dispatch | ) |
Removes a 7TV channel emote from this channel
| QString chatterino::TwitchChannel::roomId | ( | ) | const |
|
overridevirtual |
|
virtual |
| boost::optional< EmotePtr > chatterino::TwitchChannel::seventvEmote | ( | const EmoteName & | name | ) | const |
| std::shared_ptr< const EmoteMap > chatterino::TwitchChannel::seventvEmotes | ( | ) | const |
| const QString & chatterino::TwitchChannel::seventvEmoteSetID | ( | ) | const |
| const QString & chatterino::TwitchChannel::seventvUserID | ( | ) | const |
| const QString & chatterino::TwitchChannel::subscriptionUrl | ( | ) |
| const std::unordered_map< QString, std::weak_ptr< MessageThread > > & chatterino::TwitchChannel::threads | ( | ) | const |
| boost::optional< EmotePtr > chatterino::TwitchChannel::twitchBadge | ( | const QString & | set, |
| const QString & | version | ||
| ) | const |
| void chatterino::TwitchChannel::updateSeventvData | ( | const QString & | newUserID, |
| const QString & | newEmoteSetID | ||
| ) |
| void chatterino::TwitchChannel::updateSeventvEmote | ( | const SeventvEventAPIEmoteUpdateDispatch & | dispatch | ) |
| void chatterino::TwitchChannel::updateSeventvUser | ( | const SeventvEventAPIUserConnectionUpdateDispatch & | dispatch | ) |
Updates the current 7TV user. Currently, only the emote-set is updated.
|
friend |
|
friend |
|
friend |
| pajlada::Signals::SelfDisconnectingSignal<ChannelPointReward> chatterino::TwitchChannel::channelPointRewardAdded |
| pajlada::Signals::NoArgSignal chatterino::TwitchChannel::liveStatusChanged |
| pajlada::Signals::NoArgSignal chatterino::TwitchChannel::roomIdChanged |
| pajlada::Signals::NoArgSignal chatterino::TwitchChannel::roomModesChanged |
| pajlada::Signals::NoArgSignal chatterino::TwitchChannel::userStateChanged |
1.8.13