Changeset View
Changeset View
Standalone View
Standalone View
src/viewmanager.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 33 | enum ViewsType { | |||
---|---|---|---|---|---|
45 | FrequentlyPlayedTracks, | 45 | FrequentlyPlayedTracks, | ||
46 | RecentlyPlayedTracks, | 46 | RecentlyPlayedTracks, | ||
47 | FilesBrowser | 47 | FilesBrowser | ||
48 | }; | 48 | }; | ||
49 | 49 | | |||
50 | Q_ENUM(ViewsType) | 50 | Q_ENUM(ViewsType) | ||
51 | 51 | | |||
52 | enum SortOrder { | 52 | enum SortOrder { | ||
53 | SortAscending = true, | 53 | NoSort, | ||
54 | SortDescending = false, | 54 | SortAscending, | ||
55 | SortDescending, | ||||
55 | }; | 56 | }; | ||
56 | 57 | | |||
57 | Q_ENUM(SortOrder) | 58 | Q_ENUM(SortOrder) | ||
58 | 59 | | |||
59 | static const bool SingleAlbum = true; | 60 | static const bool SingleAlbum = true; | ||
60 | static const bool MultipleAlbum = false; | 61 | static const bool MultipleAlbum = false; | ||
61 | 62 | | |||
62 | explicit ViewManager(QObject *parent = nullptr); | 63 | explicit ViewManager(QObject *parent = nullptr); | ||
63 | 64 | | |||
64 | Q_SIGNALS: | 65 | Q_SIGNALS: | ||
65 | 66 | | |||
66 | void openGridView(ViewManager::ViewsType viewType, ElisaUtils::FilterType filterType, int expectedDepth, | 67 | void openGridView(ViewManager::ViewsType viewType, ElisaUtils::FilterType filterType, int expectedDepth, | ||
67 | const QString &mainTitle, const QString &secondaryTitle, const QUrl &imageUrl, | 68 | const QString &mainTitle, const QString &secondaryTitle, const QUrl &imageUrl, | ||
68 | ElisaUtils::PlayListEntryType dataType, const QUrl &viewDefaultIcon, | 69 | ElisaUtils::PlayListEntryType dataType, const QUrl &viewDefaultIcon, | ||
69 | const QString &genreNameFilter, const QString &artistNameFilter, | 70 | const QString &genreNameFilter, const QString &artistNameFilter, | ||
70 | bool viewShowRating, bool viewDelegateDisplaySecondaryText); | 71 | bool viewShowRating, bool viewDelegateDisplaySecondaryText); | ||
71 | 72 | | |||
72 | void openListView(ViewManager::ViewsType viewType, ElisaUtils::FilterType filterType, int expectedDepth, | 73 | void openListView(ViewManager::ViewsType viewType, ElisaUtils::FilterType filterType, int expectedDepth, | ||
73 | const QString &mainTitle, const QString &secondaryTitle, qulonglong databaseId, | 74 | const QString &mainTitle, const QString &secondaryTitle, qulonglong databaseId, | ||
74 | const QUrl &imageUrl, ElisaUtils::PlayListEntryType dataType, int sortRole, | 75 | const QUrl &imageUrl, ElisaUtils::PlayListEntryType dataType, QVariant sortRole, | ||
75 | ViewManager::SortOrder sortOrder, bool displaySingleAlbum); | 76 | ViewManager::SortOrder sortOrder, bool displaySingleAlbum); | ||
76 | 77 | | |||
77 | void switchFilesBrowserView(ViewManager::ViewsType viewType, int expectedDepth, | 78 | void switchFilesBrowserView(ViewManager::ViewsType viewType, int expectedDepth, | ||
78 | const QString &mainTitle, const QUrl &imageUrl); | 79 | const QString &mainTitle, const QUrl &imageUrl); | ||
79 | 80 | | |||
80 | void switchOffAllViews(ViewManager::ViewsType viewType); | 81 | void switchOffAllViews(ViewManager::ViewsType viewType); | ||
81 | 82 | | |||
82 | void popOneView(); | 83 | void popOneView(); | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |