Changeset View
Changeset View
Standalone View
Standalone View
src/manageaudioplayer.h
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | 152 | Q_SIGNALS: | |||
---|---|---|---|---|---|
182 | void playerPositionChanged(); | 182 | void playerPositionChanged(); | ||
183 | 183 | | |||
184 | void playControlPositionChanged(); | 184 | void playControlPositionChanged(); | ||
185 | 185 | | |||
186 | void persistentStateChanged(); | 186 | void persistentStateChanged(); | ||
187 | 187 | | |||
188 | void seek(qint64 position); | 188 | void seek(qint64 position); | ||
189 | 189 | | |||
190 | void saveUndoPositionInAudioWrapper(qint64 position); | ||||
191 | | ||||
192 | void restoreUndoPositionInAudioWrapper(); | ||||
193 | | ||||
190 | void titleRoleChanged(); | 194 | void titleRoleChanged(); | ||
191 | 195 | | |||
192 | void artistNameRoleChanged(); | 196 | void artistNameRoleChanged(); | ||
193 | 197 | | |||
194 | void albumNameRoleChanged(); | 198 | void albumNameRoleChanged(); | ||
195 | 199 | | |||
196 | void sourceInError(QUrl source, QMediaPlayer::Error playerError); | 200 | void sourceInError(QUrl source, QMediaPlayer::Error playerError); | ||
197 | 201 | | |||
198 | void displayTrackError(const QString &fileName); | 202 | void displayTrackError(const QString &fileName); | ||
199 | 203 | | |||
200 | void startedPlayingTrack(const QUrl &fileName, const QDateTime &time); | 204 | void startedPlayingTrack(const QUrl &fileName, const QDateTime &time); | ||
201 | 205 | | |||
202 | public Q_SLOTS: | 206 | public Q_SLOTS: | ||
203 | 207 | | |||
204 | void setCurrentTrack(const QPersistentModelIndex ¤tTrack); | 208 | void setCurrentTrack(const QPersistentModelIndex ¤tTrack); | ||
205 | 209 | | |||
210 | void saveForUndoClearPlaylist(); | ||||
211 | | ||||
212 | void restoreForUndoClearPlaylist(); | ||||
213 | | ||||
206 | void setPlayListModel(QAbstractItemModel* aPlayListModel); | 214 | void setPlayListModel(QAbstractItemModel* aPlayListModel); | ||
207 | 215 | | |||
208 | void setUrlRole(int value); | 216 | void setUrlRole(int value); | ||
209 | 217 | | |||
210 | void setIsPlayingRole(int value); | 218 | void setIsPlayingRole(int value); | ||
211 | 219 | | |||
212 | void setPlayerStatus(QMediaPlayer::MediaStatus playerStatus); | 220 | void setPlayerStatus(QMediaPlayer::MediaStatus playerStatus); | ||
213 | 221 | | |||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 256 | private: | |||
290 | int mAudioDuration = 0; | 298 | int mAudioDuration = 0; | ||
291 | 299 | | |||
292 | bool mPlayerIsSeekable = false; | 300 | bool mPlayerIsSeekable = false; | ||
293 | 301 | | |||
294 | qint64 mPlayerPosition = 0; | 302 | qint64 mPlayerPosition = 0; | ||
295 | 303 | | |||
296 | QVariantMap mPersistentState; | 304 | QVariantMap mPersistentState; | ||
297 | 305 | | |||
306 | bool mUndoPlayingState = false; | ||||
307 | | ||||
308 | qint64 mUndoPlayerPosition = 0; | ||||
309 | | ||||
298 | }; | 310 | }; | ||
299 | 311 | | |||
300 | #endif // MANAGEAUDIOPLAYER_H | 312 | #endif // MANAGEAUDIOPLAYER_H |