#ifndef YTCHANNEL_H
#define YTCHANNEL_H
-#include <QtGui>
-#if QT_VERSION >= 0x050000
#include <QtWidgets>
-#endif
#include <QtNetwork>
class YTChannel : public QObject {
QString latestVideoId();
- static QList<YTChannel*> getCachedChannels() { return cache.values(); }
+ static const QHash<QString, YTChannel*> &getCachedChannels() { return cache; }
public slots:
void updateWatched();
private slots:
void parseResponse(const QByteArray &bytes);
- void requestError(QNetworkReply *reply);
+ void requestError(const QString &message);
void storeThumbnail(const QByteArray &bytes);
private: