Changeset View
Changeset View
Standalone View
Standalone View
src/models/datamodel.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 93 | Q_SIGNALS: | |||
---|---|---|---|---|---|
112 | void needFrequentlyPlayedData(ElisaUtils::PlayListEntryType dataType); | 112 | void needFrequentlyPlayedData(ElisaUtils::PlayListEntryType dataType); | ||
113 | 113 | | |||
114 | void isBusyChanged(); | 114 | void isBusyChanged(); | ||
115 | 115 | | |||
116 | public Q_SLOTS: | 116 | public Q_SLOTS: | ||
117 | 117 | | |||
118 | void tracksAdded(DataModel::ListTrackDataType newData); | 118 | void tracksAdded(DataModel::ListTrackDataType newData); | ||
119 | 119 | | |||
120 | void radiosAdded(DataModel::ListTrackDataType newData); | ||||
121 | | ||||
120 | void trackModified(const DataModel::TrackDataType &modifiedTrack); | 122 | void trackModified(const DataModel::TrackDataType &modifiedTrack); | ||
121 | 123 | | |||
124 | void radioModified(const TrackDataType &modifiedRadio); | ||||
125 | | ||||
122 | void trackRemoved(qulonglong removedTrackId); | 126 | void trackRemoved(qulonglong removedTrackId); | ||
123 | 127 | | |||
128 | void radioRemoved(qulonglong removedRadioId); | ||||
129 | | ||||
124 | void genresAdded(DataModel::ListGenreDataType newData); | 130 | void genresAdded(DataModel::ListGenreDataType newData); | ||
125 | 131 | | |||
126 | void artistsAdded(DataModel::ListArtistDataType newData); | 132 | void artistsAdded(DataModel::ListArtistDataType newData); | ||
127 | 133 | | |||
128 | void artistRemoved(qulonglong removedDatabaseId); | 134 | void artistRemoved(qulonglong removedDatabaseId); | ||
129 | 135 | | |||
130 | void albumsAdded(DataModel::ListAlbumDataType newData); | 136 | void albumsAdded(DataModel::ListAlbumDataType newData); | ||
131 | 137 | | |||
132 | void albumRemoved(qulonglong removedDatabaseId); | 138 | void albumRemoved(qulonglong removedDatabaseId); | ||
133 | 139 | | |||
134 | void albumModified(const DataModel::AlbumDataType &modifiedAlbum); | 140 | void albumModified(const DataModel::AlbumDataType &modifiedAlbum); | ||
135 | 141 | | |||
136 | void initialize(MusicListenersManager *manager, DatabaseInterface *database, | 142 | void initialize(MusicListenersManager *manager, DatabaseInterface *database, | ||
137 | ElisaUtils::PlayListEntryType modelType, ElisaUtils::FilterType filter, | 143 | ElisaUtils::PlayListEntryType modelType, ElisaUtils::FilterType filter, | ||
138 | const QString &genre, const QString &artist, qulonglong databaseId); | 144 | const QString &genre, const QString &artist, qulonglong databaseId); | ||
139 | 145 | | |||
146 | void radiosModifiedUI(const DataModel::TrackDataType radiosData, bool isInsertion); | ||||
astippich: just call it radioModified for consistency with the others | |||||
147 | | ||||
140 | private Q_SLOTS: | 148 | private Q_SLOTS: | ||
141 | 149 | | |||
142 | void cleanedDatabase(); | 150 | void cleanedDatabase(); | ||
143 | 151 | | |||
144 | private: | 152 | private: | ||
145 | 153 | | |||
146 | int trackIndexFromId(qulonglong id) const; | 154 | int trackIndexFromId(qulonglong id) const; | ||
147 | 155 | | |||
156 | int radioIndexFromId(qulonglong id) const; | ||||
157 | | ||||
148 | void connectModel(DatabaseInterface *database); | 158 | void connectModel(DatabaseInterface *database); | ||
149 | 159 | | |||
150 | void setBusy(bool value); | 160 | void setBusy(bool value); | ||
151 | 161 | | |||
152 | void initializeModel(MusicListenersManager *manager, DatabaseInterface *database, | 162 | void initializeModel(MusicListenersManager *manager, DatabaseInterface *database, | ||
153 | ElisaUtils::PlayListEntryType modelType, ElisaUtils::FilterType type); | 163 | ElisaUtils::PlayListEntryType modelType, ElisaUtils::FilterType type); | ||
154 | 164 | | |||
155 | void askModelData(); | 165 | void askModelData(); | ||
156 | 166 | | |||
167 | void removeRadios(); | ||||
168 | | ||||
157 | std::unique_ptr<DataModelPrivate> d; | 169 | std::unique_ptr<DataModelPrivate> d; | ||
158 | 170 | | |||
159 | }; | 171 | }; | ||
160 | 172 | | |||
161 | #endif // DATAMODEL_H | 173 | #endif // DATAMODEL_H |
just call it radioModified for consistency with the others