src/partdownloadrequest.h

changeset 1217
314e12e23c3a
parent 998
5be0ce31ce60
child 1222
34def2630300
equal deleted inserted replaced
1216:12f9ea615cbc 1217:314e12e23c3a
33 Downloading, 33 Downloading,
34 Finished, 34 Finished,
35 Failed, 35 Failed,
36 }; 36 };
37 37
38 explicit PartDownloadRequest (QString url, QString dest, bool primary, PartDownloader* parent); 38 explicit PartDownloadRequest(QString url, QString dest, bool primary, PartDownloader* parent);
39 virtual ~PartDownloadRequest(); 39 virtual ~PartDownloadRequest();
40 40
41 Q_SLOT void abort(); 41 Q_SLOT void abort();
42 QString destination() const; 42 QString destination() const;
43 Q_SLOT void downloadFinished(); 43 Q_SLOT void downloadFinished();
49 QNetworkReply* networkReply() const; 49 QNetworkReply* networkReply() const;
50 qint64 numBytesRead() const; 50 qint64 numBytesRead() const;
51 qint64 numBytesTotal() const; 51 qint64 numBytesTotal() const;
52 PartDownloader* prompt() const; 52 PartDownloader* prompt() const;
53 Q_SLOT void readFromNetworkReply(); 53 Q_SLOT void readFromNetworkReply();
54 void setTableRow (int value); 54 void setTableRow(int value);
55 int tableRow() const; 55 int tableRow() const;
56 Q_SLOT void updateDownloadProgress (qint64 recv, qint64 total); 56 Q_SLOT void updateDownloadProgress(qint64 recv, qint64 total);
57 void updateToTable(); 57 void updateToTable();
58 QString url() const; 58 QString url() const;
59 59
60 private: 60 private:
61 int m_tableRow; 61 int m_tableRow;

mercurial