mirror of https://github.com/KDE/kasts.git
Expose duration from Enclosure
This commit is contained in:
parent
f85dbd0572
commit
65c5a16dc8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue