1 | /* |
2 | SPDX-FileCopyrightText: 2018 Alexander Stippich <a.stippich@gmx.net> |
3 | |
4 | SPDX-License-Identifier: LGPL-2.1-or-later |
5 | */ |
6 | |
7 | #ifndef KFILEMETADATA_FORMATSTRINGS_P_H |
8 | #define KFILEMETADATA_FORMATSTRINGS_P_H |
9 | |
10 | #include <QString> |
11 | #include <QVariant> |
12 | |
13 | namespace KFileMetaData { |
14 | |
15 | class Q_DECL_HIDDEN FormatStrings |
16 | { |
17 | public: |
18 | static QString toStringFunction(const QVariant& value); |
19 | |
20 | static QString formatDouble(const QVariant& value); |
21 | |
22 | static QString formatDate(const QVariant& value); |
23 | |
24 | static QString formatDuration(const QVariant& value); |
25 | |
26 | static QString formatBitRate(const QVariant& value); |
27 | |
28 | static QString formatSampleRate(const QVariant& value); |
29 | |
30 | static QString formatOrientationValue(const QVariant& value); |
31 | |
32 | static QString formatPhotoFlashValue(const QVariant& value); |
33 | |
34 | static QString formatAsDegree(const QVariant& value); |
35 | |
36 | static QString formatAsMeter(const QVariant& value); |
37 | |
38 | static QString formatAsMilliMeter(const QVariant& value); |
39 | |
40 | static QString formatAsFrameRate(const QVariant& value); |
41 | |
42 | static QString formatPhotoTime(const QVariant& value); |
43 | |
44 | static QString formatPhotoExposureBias(const QVariant& value); |
45 | |
46 | static QString formatAspectRatio(const QVariant& value); |
47 | |
48 | static QString formatAsFNumber(const QVariant& value); |
49 | |
50 | }; |
51 | |
52 | } |
53 | |
54 | #endif |
55 | |