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 | | |||
139 | void radioRemoved(qulonglong removedRadioId); | ||||
140 | | ||||
135 | void genresAdded(DataModel::ListGenreDataType newData); | 141 | void genresAdded(DataModel::ListGenreDataType newData); | ||
136 | 142 | | |||
137 | void artistsAdded(DataModel::ListArtistDataType newData); | 143 | void artistsAdded(DataModel::ListArtistDataType newData); | ||
138 | 144 | | |||
139 | void artistRemoved(qulonglong removedDatabaseId); | 145 | void artistRemoved(qulonglong removedDatabaseId); | ||
140 | 146 | | |||
141 | void albumsAdded(DataModel::ListAlbumDataType newData); | 147 | void albumsAdded(DataModel::ListAlbumDataType newData); | ||
142 | 148 | | |||
Show All 18 Lines | 165 | void initializeByGenreAndArtist(MusicListenersManager *manager, DatabaseInterface *database, | |||
161 | const QString &artist); | 167 | const QString &artist); | ||
162 | 168 | | |||
163 | void initializeRecentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | 169 | void initializeRecentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | ||
164 | ElisaUtils::PlayListEntryType modelType); | 170 | ElisaUtils::PlayListEntryType modelType); | ||
165 | 171 | | |||
166 | void initializeFrequentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | 172 | void initializeFrequentlyPlayed(MusicListenersManager *manager, DatabaseInterface *database, | ||
167 | ElisaUtils::PlayListEntryType modelType); | 173 | ElisaUtils::PlayListEntryType modelType); | ||
168 | 174 | | |||
175 | void radiosModifiedUI(const DataModel::TrackDataType radiosData, bool isInsertion); | ||||
astippich: just call it radioModified for consistency with the others | |||||
176 | | ||||
169 | private Q_SLOTS: | 177 | private Q_SLOTS: | ||
170 | 178 | | |||
171 | void cleanedDatabase(); | 179 | void cleanedDatabase(); | ||
172 | 180 | | |||
173 | private: | 181 | private: | ||
174 | 182 | | |||
175 | int trackIndexFromId(qulonglong id) const; | 183 | int trackIndexFromId(qulonglong id) const; | ||
176 | 184 | | |||
185 | int radioIndexFromId(qulonglong id) const; | ||||
186 | | ||||
177 | void connectModel(DatabaseInterface *database); | 187 | void connectModel(DatabaseInterface *database); | ||
178 | 188 | | |||
179 | void setBusy(bool value); | 189 | void setBusy(bool value); | ||
180 | 190 | | |||
181 | void initializeModel(MusicListenersManager *manager, DatabaseInterface *database, | 191 | void initializeModel(MusicListenersManager *manager, DatabaseInterface *database, | ||
182 | ElisaUtils::PlayListEntryType modelType, FilterType type); | 192 | ElisaUtils::PlayListEntryType modelType, FilterType type); | ||
183 | 193 | | |||
184 | void askModelData(); | 194 | void askModelData(); | ||
185 | 195 | | |||
196 | void removeRadios(); | ||||
197 | | ||||
186 | std::unique_ptr<DataModelPrivate> d; | 198 | std::unique_ptr<DataModelPrivate> d; | ||
187 | 199 | | |||
188 | }; | 200 | }; | ||
189 | 201 | | |||
190 | #endif // DATAMODEL_H | 202 | #endif // DATAMODEL_H |
just call it radioModified for consistency with the others