diff options
author | Arno <arno@disconnect.de> | 2016-09-03 21:03:34 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-09-03 21:03:34 +0200 |
commit | e11e257f88726fd04774bf0ca4584d1678bc7f9b (patch) | |
tree | 848c1f16d09f1a06afd7d638f40b6e39e4cd6ead /helper.h | |
parent | b49c6828a92590311712d766d54c15596f13addf (diff) | |
download | ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.tar.gz ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.tar.bz2 ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.zip |
Add detailed video dialog
Show each and everything ffprobe can extract from a video file and
display it as a tree.
Diffstat (limited to 'helper.h')
-rw-r--r-- | helper.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -2,9 +2,26 @@ #define HELPER_H #include <QString> +#include <QJsonDocument> namespace Helper { const QString md5Sum(const QString &path); + const QJsonDocument ffpmegData(const QString &path); + class Duration { + public: + Duration(); + Duration(qint64 seconds); + Duration(const QString &dur); + Duration operator+(const Duration &dur) const; + const QString toString() const; + bool isNull() const; + qint64 toSeconds() const; + + private: + int mHours; + int mMinutes; + int mSeconds; + }; } #endif // HELPER_H |