Changeset View
Changeset View
Standalone View
Standalone View
src/modeldataloader.h
Show All 16 Lines | |||||
17 | 17 | | |||
18 | #ifndef MODELDATALOADER_H | 18 | #ifndef MODELDATALOADER_H | ||
19 | #define MODELDATALOADER_H | 19 | #define MODELDATALOADER_H | ||
20 | 20 | | |||
21 | #include "elisaLib_export.h" | 21 | #include "elisaLib_export.h" | ||
22 | 22 | | |||
23 | #include "elisautils.h" | 23 | #include "elisautils.h" | ||
24 | #include "databaseinterface.h" | 24 | #include "databaseinterface.h" | ||
25 | #include "datatypes.h" | ||||
25 | #include "models/datamodel.h" | 26 | #include "models/datamodel.h" | ||
26 | 27 | | |||
27 | #include <QObject> | 28 | #include <QObject> | ||
28 | 29 | | |||
29 | #include <memory> | 30 | #include <memory> | ||
30 | 31 | | |||
31 | class ModelDataLoaderPrivate; | 32 | class ModelDataLoaderPrivate; | ||
32 | 33 | | |||
33 | class ELISALIB_EXPORT ModelDataLoader : public QObject | 34 | class ELISALIB_EXPORT ModelDataLoader : public QObject | ||
34 | { | 35 | { | ||
35 | 36 | | |||
36 | Q_OBJECT | 37 | Q_OBJECT | ||
37 | 38 | | |||
38 | public: | 39 | public: | ||
39 | 40 | | |||
40 | using ListAlbumDataType = DatabaseInterface::ListAlbumDataType; | 41 | using ListAlbumDataType = DataTypes::ListAlbumDataType; | ||
41 | using ListArtistDataType = DatabaseInterface::ListArtistDataType; | 42 | using ListArtistDataType = DataTypes::ListArtistDataType; | ||
42 | using ListGenreDataType = DatabaseInterface::ListGenreDataType; | 43 | using ListGenreDataType = DataTypes::ListGenreDataType; | ||
43 | using ListTrackDataType = DatabaseInterface::ListTrackDataType; | 44 | using ListTrackDataType = DataTypes::ListTrackDataType; | ||
44 | using ListRadioDataType = DatabaseInterface::ListRadioDataType; | 45 | using ListRadioDataType = DataTypes::ListRadioDataType; | ||
45 | using TrackDataType = DatabaseInterface::TrackDataType; | 46 | using TrackDataType = DataTypes::TrackDataType; | ||
46 | using AlbumDataType = DatabaseInterface::AlbumDataType; | 47 | using AlbumDataType = DataTypes::AlbumDataType; | ||
47 | 48 | | |||
48 | using FilterType = ElisaUtils::FilterType; | 49 | using FilterType = ElisaUtils::FilterType; | ||
49 | 50 | | |||
50 | explicit ModelDataLoader(QObject *parent = nullptr); | 51 | explicit ModelDataLoader(QObject *parent = nullptr); | ||
51 | 52 | | |||
52 | ~ModelDataLoader() override; | 53 | ~ModelDataLoader() override; | ||
53 | 54 | | |||
54 | void setDatabase(DatabaseInterface *database); | 55 | void setDatabase(DatabaseInterface *database); | ||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |