summaryrefslogtreecommitdiffstats
path: root/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'helper.h')
-rw-r--r--helper.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/helper.h b/helper.h
index e005423..90bef11 100644
--- a/helper.h
+++ b/helper.h
@@ -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