1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Add public getter for DownloadJob's track.

This commit is contained in:
Christian Muehlhaeuser
2015-03-31 19:02:48 +02:00
parent 62812a05f6
commit b896a7fb91

View File

@@ -53,6 +53,7 @@ public:
TrackState state() const { return m_state; }
unsigned int retries() const { return m_retries; }
Tomahawk::track_ptr track() const { return m_track; }
int progressPercentage() const;
long receivedSize() const { return m_rcvdSize; }
long fileSize() const { return m_fileSize; }
@@ -85,7 +86,6 @@ private slots:
void onDownloadProgress( qint64, qint64 );
void onDownloadFinished();
void onUrlRetrieved( const QVariantMap& data );
private: