This commit is contained in:
fourtf
2018-07-15 20:41:57 +02:00
25 changed files with 47 additions and 83 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ public:
using pajlada::Settings::Setting<Type>::operator==;
using pajlada::Settings::Setting<Type>::operator!=;
using pajlada::Settings::Setting<Type>::operator const Type;
using pajlada::Settings::Setting<Type>::operator Type;
};
using BoolSetting = ChatterinoSetting<bool>;
-36
View File
@@ -1,36 +0,0 @@
#pragma once
#include "common/NetworkRequest.hpp"
#include <QObject>
#include <QString>
namespace chatterino {
// Not sure if I like these, but I'm trying them out
static NetworkRequest makeGetChannelRequest(const QString &channelId,
const QObject *caller = nullptr)
{
QString url("https://api.twitch.tv/kraken/channels/" + channelId);
auto request = NetworkRequest::twitchRequest(url);
request.setCaller(caller);
return request;
}
static NetworkRequest makeGetStreamRequest(const QString &channelId,
const QObject *caller = nullptr)
{
QString url("https://api.twitch.tv/kraken/streams/" + channelId);
auto request = NetworkRequest::twitchRequest(url);
request.setCaller(caller);
return request;
}
} // namespace chatterino