Ignore:
Timestamp:
Feb 21, 2014, 5:26:03 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to 0.8.6

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/youtube/retrieveyoutubeurl.h

    r142 r156  
    2020#define _RETRIEVEYOUTUBEURL_
    2121
    22 #include "simplehttp.h"
     22#include <QNetworkAccessManager>
     23#include <QNetworkReply>
    2324#include <QMap>
    2425
    25 class RetrieveYoutubeUrl : public SimpleHttp
     26class RetrieveYoutubeUrl : public QObject
    2627{
    2728        Q_OBJECT
     
    3637
    3738        void fetchPage(const QString & url);
     39        void close();
     40
     41        void setUserAgent(const QString & s) { user_agent = s; };
     42        QString userAgent() { return user_agent; };
    3843
    3944        void setPreferredQuality(Quality q) { preferred_quality = q; }
     
    5257        void gotEmptyList();
    5358
     59        void connecting(QString host);
     60        void errorOcurred(int error_number, QString error_str);
     61
     62        void signatureNotFound(const QString & title);
     63
    5464protected slots:
     65        void gotResponse(QNetworkReply* reply);
    5566        void parse(QByteArray text);
    5667
    5768protected:
    58         QString sanitizeForUnicodePoint(QString string);
    59         void htmlDecode(QString& string);
     69        static QString sanitizeForUnicodePoint(QString string);
     70        static void htmlDecode(QString& string);
    6071
    6172        QMap<int, QString> urlMap;
     
    6576
    6677        Quality preferred_quality;
     78        QString user_agent;
     79
     80private:
     81        QNetworkAccessManager* manager;
     82        QNetworkReply* reply;
    6783};
    6884
Note: See TracChangeset for help on using the changeset viewer.