Ignore:
Timestamp:
May 16, 2014, 9:51:55 AM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to latest 0.8.7

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/findsubtitles/filedownloader/filedownloader.h

    r142 r165  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    1717*/
    1818
    19 /* Based on the Qt network/http example */
    20 
    21 #ifndef _FILEDOWNLOADER_H_
    22 #define _FILEDOWNLOADER_H_
     19#ifndef FILEDOWNLOADER_H
     20#define FILEDOWNLOADER_H
    2321
    2422#include <QProgressDialog>
    2523#include <QUrl>
    2624#include <QNetworkProxy>
    27 
    28 class QHttp;
    29 class QHttpResponseHeader;
     25#include <QNetworkAccessManager>
     26#include <QNetworkReply>
    3027
    3128class FileDownloader : public QProgressDialog
    3229{
    33     Q_OBJECT
     30        Q_OBJECT
    3431
    3532public:
     
    4845
    4946private slots:
    50         void httpRequestFinished(int request_id, bool error);
    51         void readResponseHeader(const QHttpResponseHeader &responseHeader);
    52         void updateDataReadProgress(int bytes_read, int total_bytes);
     47        void gotResponse(QNetworkReply* reply);
     48        void updateDataReadProgress(qint64 bytes_read, qint64 total_bytes);
     49
     50        /*
     51        void reportFileSaved(const QString &, const QString &);
     52        void reportSaveFailed(const QString &);
     53        void reportError(int error_number, QString error_str);
     54        */
    5355
    5456private:
    55         QHttp * http;
    56         int http_get_id;
    57         bool http_request_aborted;
    58 
     57        QNetworkAccessManager* manager;
     58        QNetworkReply* reply;
    5959};
    6060
Note: See TracChangeset for help on using the changeset viewer.