summaryrefslogtreecommitdiffstats
path: root/helper.h
blob: 90bef117071a7d1d94f7b4963e9ce797b888ce14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef HELPER_H
#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