]> git.sur5r.net Git - minitube/blobdiff - src/channelaggregator.h
Upload 3.9.3-2 to unstable
[minitube] / src / channelaggregator.h
index 288ce82d70955883cbc9e1d263bf1b6e223e312f..6eeaba75c63320b9557c6e456edb11e34e7845ad 100644 (file)
@@ -22,6 +22,7 @@ $END_LICENSE */
 #define CHANNELAGGREGATOR_H
 
 #include <QtCore>
+#include <QtNetwork>
 
 class YTChannel;
 class Video;
@@ -48,8 +49,12 @@ signals:
     void unwatchedCountChanged(int count);
 
 private slots:
-    void videosLoaded(const QList<Video*> &videos);
+    void videosLoaded(const QVector<Video*> &videos);
     void processNextChannel();
+    void checkWebPage(YTChannel *channel);
+    void parseWebPage(const QByteArray &bytes);
+    void errorWebPage(const QString &message);
+    void reallyProcessChannel(YTChannel *channel);
 
 private:
     ChannelAggregator(QObject *parent = 0);
@@ -62,10 +67,12 @@ private:
     bool running;
 
     int newVideoCount;
-    QList<YTChannel*> updatedChannels;
+    QVector<YTChannel*> updatedChannels;
 
     QTimer *timer;
     bool stopped;
+
+    YTChannel *currentChannel;
 };
 
 #endif // CHANNELAGGREGATOR_H