Changeset View
Changeset View
Standalone View
Standalone View
src/models/datamodel.h
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 104 | Q_SIGNALS: | |||
---|---|---|---|---|---|
123 | void needFrequentlyPlayedData(ElisaUtils::PlayListEntryType dataType); | 123 | void needFrequentlyPlayedData(ElisaUtils::PlayListEntryType dataType); | ||
124 | 124 | | |||
125 | void isBusyChanged(); | 125 | void isBusyChanged(); | ||
126 | 126 | | |||
127 | public Q_SLOTS: | 127 | public Q_SLOTS: | ||
128 | 128 | | |||
129 | void tracksAdded(DataModel::ListTrackDataType newData); | 129 | void tracksAdded(DataModel::ListTrackDataType newData); | ||
130 | 130 | | |||
131 | void radiosAdded(DataModel::ListTrackDataType newData); | ||||
132 | | ||||
131 | void trackModified(const DataModel::TrackDataType &modifiedTrack); | 133 | void trackModified(const DataModel::TrackDataType &modifiedTrack); | ||
132 | 134 | | |||
135 | void radioModified(const TrackDataType &modifiedRadio); | ||||
136 | | ||||
133 | void trackRemoved(qulonglong removedTrackId); | 137 | void trackRemoved(qulonglong removedTrackId); | ||
134 | 138 | | |||
135 | void genresAdded(DataModel::ListGenreDataType newData); | 139 | void genresAdded(DataModel::ListGenreDataType newData); | ||
136 | 140 | | |||
137 | void artistsAdded(DataModel::ListArtistDataType newData); | 141 | void artistsAdded(DataModel::ListArtistDataType newData); | ||
138 | 142 | | |||
139 | void artistRemoved(qulonglong removedDatabaseId); | 143 | void artistRemoved(qulonglong removedDatabaseId); | ||
140 | 144 | | |||
Show All 20 Lines | 163 | void initializeByGenreAndArtist(MusicListenersManager *manager, DatabaseInterface *database, | |||
161 | const QString &artist); | 165 | const QString &artist); | ||
162 | 166 | | |||
163 | void initializeRecentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | 167 | void initializeRecentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | ||
164 | ElisaUtils::PlayListEntryType modelType); | 168 | ElisaUtils::PlayListEntryType modelType); | ||
165 | 169 | | |||
166 | void initializeFrequentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | 170 | void initializeFrequentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | ||
167 | ElisaUtils::PlayListEntryType modelType); | 171 | ElisaUtils::PlayListEntryType modelType); | ||
168 | 172 | | |||
173 | void radiosModifiedUI(const DataModel::TrackDataType radiosData, bool isInsertion); | ||||
astippich: just call it radioModified for consistency with the others | |||||
174 | | ||||
169 | private Q_SLOTS: | 175 | private Q_SLOTS: | ||
170 | 176 | | |||
171 | void cleanedDatabase(); | 177 | void cleanedDatabase(); | ||
172 | 178 | | |||
173 | private: | 179 | private: | ||
174 | 180 | | |||
175 | int trackIndexFromId(qulonglong id) const; | 181 | int trackIndexFromId(qulonglong id) const; | ||
176 | 182 | | |||
183 | int radioIndexFromId(qulonglong id) const; | ||||
184 | | ||||
177 | void connectModel(DatabaseInterface *database); | 185 | void connectModel(DatabaseInterface *database); | ||
178 | 186 | | |||
179 | void setBusy(bool value); | 187 | void setBusy(bool value); | ||
180 | 188 | | |||
181 | void initializeModel(MusicListenersManager *manager, DatabaseInterface *database, | 189 | void initializeModel(MusicListenersManager *manager, DatabaseInterface *database, | ||
182 | ElisaUtils::PlayListEntryType modelType, FilterType type); | 190 | ElisaUtils::PlayListEntryType modelType, FilterType type); | ||
183 | 191 | | |||
184 | void askModelData(); | 192 | void askModelData(); | ||
185 | 193 | | |||
194 | void removeRadios(); | ||||
195 | | ||||
186 | std::unique_ptr<DataModelPrivate> d; | 196 | std::unique_ptr<DataModelPrivate> d; | ||
187 | 197 | | |||
188 | }; | 198 | }; | ||
189 | 199 | | |||
190 | #endif // DATAMODEL_H | 200 | #endif // DATAMODEL_H |
just call it radioModified for consistency with the others