Changeset View
Changeset View
Standalone View
Standalone View
src/mediaplaylist.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 65 | Q_PROPERTY(bool randomPlay | |||
---|---|---|---|---|---|
67 | WRITE setRandomPlay | 67 | WRITE setRandomPlay | ||
68 | NOTIFY randomPlayChanged) | 68 | NOTIFY randomPlayChanged) | ||
69 | 69 | | |||
70 | Q_PROPERTY(bool repeatPlay | 70 | Q_PROPERTY(bool repeatPlay | ||
71 | READ repeatPlay | 71 | READ repeatPlay | ||
72 | WRITE setRepeatPlay | 72 | WRITE setRepeatPlay | ||
73 | NOTIFY repeatPlayChanged) | 73 | NOTIFY repeatPlayChanged) | ||
74 | 74 | | |||
75 | Q_PROPERTY(int remainingTracks | ||||
76 | READ remainingTracks | ||||
77 | NOTIFY remainingTracksChanged) | ||||
78 | | ||||
75 | public: | 79 | public: | ||
76 | 80 | | |||
77 | enum ColumnsRoles { | 81 | enum ColumnsRoles { | ||
78 | TitleRole = DatabaseInterface::TitleRole, | 82 | TitleRole = DatabaseInterface::TitleRole, | ||
79 | SecondaryTextRole, | 83 | SecondaryTextRole, | ||
80 | ImageUrlRole, | 84 | ImageUrlRole, | ||
81 | ShadowForImageRole, | 85 | ShadowForImageRole, | ||
82 | ChildModelRole, | 86 | ChildModelRole, | ||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
167 | QPersistentModelIndex currentTrack() const; | 171 | QPersistentModelIndex currentTrack() const; | ||
168 | 172 | | |||
169 | int currentTrackRow() const; | 173 | int currentTrackRow() const; | ||
170 | 174 | | |||
171 | bool randomPlay() const; | 175 | bool randomPlay() const; | ||
172 | 176 | | |||
173 | bool repeatPlay() const; | 177 | bool repeatPlay() const; | ||
174 | 178 | | |||
179 | int remainingTracks() const; | ||||
180 | | ||||
175 | Q_SIGNALS: | 181 | Q_SIGNALS: | ||
176 | void displayUndoInline(); | 182 | void displayUndoInline(); | ||
177 | 183 | | |||
178 | void hideUndoInline(); | 184 | void hideUndoInline(); | ||
179 | 185 | | |||
180 | void newTrackByNameInList(const QVariant &title, const QVariant &artist, const QVariant &album, const QVariant &trackNumber, const QVariant &discNumber); | 186 | void newTrackByNameInList(const QVariant &title, const QVariant &artist, const QVariant &album, const QVariant &trackNumber, const QVariant &discNumber); | ||
181 | 187 | | |||
182 | void newEntryInList(qulonglong newDatabaseId, | 188 | void newEntryInList(qulonglong newDatabaseId, | ||
Show All 21 Lines | |||||
204 | void playListFinished(); | 210 | void playListFinished(); | ||
205 | 211 | | |||
206 | void playListLoaded(); | 212 | void playListLoaded(); | ||
207 | 213 | | |||
208 | void playListLoadFailed(); | 214 | void playListLoadFailed(); | ||
209 | 215 | | |||
210 | void ensurePlay(); | 216 | void ensurePlay(); | ||
211 | 217 | | |||
218 | void remainingTracksChanged(); | ||||
219 | | ||||
212 | public Q_SLOTS: | 220 | public Q_SLOTS: | ||
213 | 221 | | |||
214 | void setPersistentState(const QVariantMap &persistentState); | 222 | void setPersistentState(const QVariantMap &persistentState); | ||
215 | 223 | | |||
216 | void removeSelection(QList<int> selection); | 224 | void removeSelection(QList<int> selection); | ||
217 | 225 | | |||
218 | void tracksListAdded(qulonglong newDatabaseId, | 226 | void tracksListAdded(qulonglong newDatabaseId, | ||
219 | const QString &entryTitle, | 227 | const QString &entryTitle, | ||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |