Adds viewer list + livechecks (#105)

* Added check for livestatus + tooltip.

* Also added live check on startup.

* Added viewerlist + livesearch.

* Refactored code to make it compacter.
This commit is contained in:
Cranken
2017-09-11 22:37:39 +02:00
committed by fourtf
parent 8d2e48f944
commit 7db45aa7f2
7 changed files with 156 additions and 28 deletions
+4 -17
View File
@@ -29,6 +29,7 @@ Channel::Channel(WindowManager &_windowManager, EmoteManager &_emoteManager,
, _subLink("https://www.twitch.tv/" + name + "/subscribe?ref=in_chat_subscriber_link")
, _channelLink("https://twitch.tv/" + name)
, _popoutPlayerLink("https://player.twitch.tv/?channel=" + name)
, isLive(false)
// , _loggingChannel(logging::get(_name))
{
qDebug() << "Open channel:" << this->name;
@@ -62,24 +63,10 @@ const QString &Channel::getPopoutPlayerLink() const
return _popoutPlayerLink;
}
bool Channel::getIsLive() const
void Channel::setRoomID(std::string id)
{
return _isLive;
}
int Channel::getStreamViewerCount() const
{
return _streamViewerCount;
}
const QString &Channel::getStreamStatus() const
{
return _streamStatus;
}
const QString &Channel::getStreamGame() const
{
return _streamGame;
this->roomID = id;
this->roomIDchanged();
}
messages::LimitedQueueSnapshot<messages::SharedMessage> Channel::getMessageSnapshot()