~ubuntu-branches/ubuntu/saucy/minitube/saucy-proposed

« back to all changes in this revision

Viewing changes to src/downloaditem.h

  • Committer: Package Import Robot
  • Author(s): Jakob Haufe
  • Date: 2012-09-29 02:43:53 UTC
  • mfrom: (2.1.10)
  • Revision ID: package-import@ubuntu.com-20120929024353-cvsvqeewq4p93pb4
Tags: 1.9-1
* New upstream version (Closes: #673696).
* Refresh disable-update-check.
* Refresh proper-tempfiles.
* Use hardening-wrapper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    qint64 bytesTotal() const;
32
32
    qint64 bytesReceived() const;
33
33
    double remainingTime() const;
 
34
    double totalTime() { return m_totalTime; }
34
35
    double currentSpeed() const;
35
36
    int currentPercent() const { return percent; }
36
37
    Video* getVideo() const { return video; }
38
39
    DownloadItemStatus status() const { return m_status; }
39
40
    static QString formattedFilesize(qint64 size);
40
41
    static QString formattedSpeed(double speed);
41
 
    static QString formattedTime(double time);
 
42
    static QString formattedTime(double time, bool remaining = true);
42
43
    QString errorMessage() const;
43
44
 
44
45
public slots:
67
68
    bool m_finishedDownloading;
68
69
    QTime m_lastProgressTime;
69
70
    int percent;
 
71
    double m_totalTime;
70
72
 
71
73
    QUrl m_url;
72
74