Expose duration from Enclosure

This commit is contained in:
Bart De Vries 2021-04-13 22:48:09 +02:00
parent f85dbd0572
commit 65c5a16dc8
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ class Enclosure : public QObject
Q_PROPERTY(double downloadProgress MEMBER m_downloadProgress NOTIFY downloadProgressChanged) Q_PROPERTY(double downloadProgress MEMBER m_downloadProgress NOTIFY downloadProgressChanged)
Q_PROPERTY(QString path READ path CONSTANT) Q_PROPERTY(QString path READ path CONSTANT)
Q_PROPERTY(qint64 playPosition READ playPosition WRITE setPlayPosition NOTIFY playPositionChanged) Q_PROPERTY(qint64 playPosition READ playPosition WRITE setPlayPosition NOTIFY playPositionChanged)
Q_PROPERTY(qint64 duration MEMBER m_duration CONSTANT)
public: public:
Enclosure(Entry *entry); Enclosure(Entry *entry);
@ -58,7 +59,7 @@ private:
void processDownloadedFile(); void processDownloadedFile();
Entry *m_entry; Entry *m_entry;
int m_duration; qint64 m_duration;
int m_size; int m_size;
QString m_title; QString m_title;
QString m_type; QString m_type;