Changeset View
Changeset View
Standalone View
Standalone View
src/mediaplaylist.h
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 77 | enum ColumnsRoles { | |||
---|---|---|---|---|---|
113 | PlayCounter, | 113 | PlayCounter, | ||
114 | PlayFrequency, | 114 | PlayFrequency, | ||
115 | ElementTypeRole, | 115 | ElementTypeRole, | ||
116 | IsValidRole, | 116 | IsValidRole, | ||
117 | TrackDataRole, | 117 | TrackDataRole, | ||
118 | CountRole, | 118 | CountRole, | ||
119 | IsPlayingRole, | 119 | IsPlayingRole, | ||
120 | AlbumSectionRole, | 120 | AlbumSectionRole, | ||
121 | HttpAddressRole, | ||||
121 | }; | 122 | }; | ||
122 | 123 | | |||
123 | Q_ENUM(ColumnsRoles) | 124 | Q_ENUM(ColumnsRoles) | ||
124 | 125 | | |||
125 | enum PlayState { | 126 | enum PlayState { | ||
126 | NotPlaying, | 127 | NotPlaying, | ||
127 | IsPlaying, | 128 | IsPlaying, | ||
128 | IsPaused, | 129 | IsPaused, | ||
▲ Show 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 211 | public Q_SLOTS: | |||
260 | void replaceAndPlay(const ElisaUtils::EntryData &newEntry, ElisaUtils::PlayListEntryType databaseIdType); | 261 | void replaceAndPlay(const ElisaUtils::EntryData &newEntry, ElisaUtils::PlayListEntryType databaseIdType); | ||
261 | 262 | | |||
262 | void enqueueRestoredEntry(const MediaPlayListEntry &newEntry); | 263 | void enqueueRestoredEntry(const MediaPlayListEntry &newEntry); | ||
263 | 264 | | |||
264 | void trackInError(const QUrl &sourceInError, QMediaPlayer::Error playerError); | 265 | void trackInError(const QUrl &sourceInError, QMediaPlayer::Error playerError); | ||
265 | 266 | | |||
266 | void undoClearPlayList(); | 267 | void undoClearPlayList(); | ||
267 | 268 | | |||
269 | void updateRadioData(const QVariant &value, int role); | ||||
270 | | ||||
268 | private Q_SLOTS: | 271 | private Q_SLOTS: | ||
269 | 272 | | |||
270 | void loadPlayListLoaded(); | 273 | void loadPlayListLoaded(); | ||
271 | 274 | | |||
272 | void loadPlayListLoadFailed(); | 275 | void loadPlayListLoadFailed(); | ||
273 | 276 | | |||
274 | private: | 277 | private: | ||
275 | void displayOrHideUndoInline(bool value); | 278 | void displayOrHideUndoInline(bool value); | ||
Show All 9 Lines | |||||
285 | void restoreRandomPlay(); | 288 | void restoreRandomPlay(); | ||
286 | 289 | | |||
287 | void restoreRepeatPlay(); | 290 | void restoreRepeatPlay(); | ||
288 | 291 | | |||
289 | void enqueueArtist(const QString &artistName); | 292 | void enqueueArtist(const QString &artistName); | ||
290 | 293 | | |||
291 | void enqueueFilesList(const ElisaUtils::EntryDataList &newEntries); | 294 | void enqueueFilesList(const ElisaUtils::EntryDataList &newEntries); | ||
292 | 295 | | |||
293 | void enqueueTracksListById(const ElisaUtils::EntryDataList &newEntries); | 296 | void enqueueTracksListById(const ElisaUtils::EntryDataList &newEntries, ElisaUtils::PlayListEntryType type); | ||
294 | 297 | | |||
295 | void enqueueOneEntry(const ElisaUtils::EntryData &entryData, ElisaUtils::PlayListEntryType type); | 298 | void enqueueOneEntry(const ElisaUtils::EntryData &entryData, ElisaUtils::PlayListEntryType type); | ||
296 | 299 | | |||
297 | void enqueueMultipleEntries(const ElisaUtils::EntryDataList &entriesData, ElisaUtils::PlayListEntryType type); | 300 | void enqueueMultipleEntries(const ElisaUtils::EntryDataList &entriesData, ElisaUtils::PlayListEntryType type); | ||
298 | 301 | | |||
299 | void enqueueCommon(); | 302 | void enqueueCommon(); | ||
300 | 303 | | |||
301 | void copyD(); | 304 | void copyD(); | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |