Changeset View
Changeset View
Standalone View
Standalone View
src/types.h
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #ifndef ITEMTYPES_H | 20 | #ifndef ITEMTYPES_H | ||
21 | #define ITEMTYPES_H | 21 | #define ITEMTYPES_H | ||
22 | #include <QObject> | 22 | #include <QObject> | ||
23 | 23 | | |||
24 | class Types : public QObject { | 24 | class Types : public QObject { | ||
25 | Q_OBJECT | 25 | Q_OBJECT | ||
26 | Q_ENUMS(ItemTypes) | 26 | Q_ENUMS(ItemTypes) | ||
27 | Q_ENUMS(TimeGroup) | ||||
28 | Q_ENUMS(LocationGroup) | ||||
27 | public: | 29 | public: | ||
28 | Types(QObject* parent); | 30 | Types(QObject* parent); | ||
29 | ~Types(); | 31 | ~Types(); | ||
30 | 32 | | |||
31 | enum ItemTypes { Album, Folder, Image }; | 33 | enum ItemTypes { Album = 0 , Folder, Image }; | ||
34 | | ||||
35 | enum TimeGroup { | ||||
36 | Year = 3, | ||||
37 | Month, | ||||
38 | Week, | ||||
39 | Day | ||||
40 | }; | ||||
41 | | ||||
42 | enum LocationGroup { | ||||
43 | Country = 7, | ||||
44 | State, | ||||
45 | City | ||||
46 | }; | ||||
32 | 47 | | |||
33 | }; | 48 | }; | ||
34 | 49 | | |||
35 | #endif | 50 | #endif |