Changeset View
Changeset View
Standalone View
Standalone View
src/mediaplaylist.cpp
Show All 10 Lines | |||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | * Lesser General Public License for more details. | 12 | * Lesser General Public License for more details. | ||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #include "mediaplaylist.h" | 18 | #include "mediaplaylist.h" | ||
19 | #include "databaseinterface.h" | 19 | #include "datatypes.h" | ||
20 | #include "musicaudiotrack.h" | 20 | #include "musicaudiotrack.h" | ||
21 | #include "musiclistenersmanager.h" | 21 | #include "musiclistenersmanager.h" | ||
22 | 22 | | |||
23 | #include <QUrl> | 23 | #include <QUrl> | ||
24 | #include <QPersistentModelIndex> | 24 | #include <QPersistentModelIndex> | ||
25 | #include <QList> | 25 | #include <QList> | ||
26 | #include <QMediaPlaylist> | 26 | #include <QMediaPlaylist> | ||
27 | #include <QFileInfo> | 27 | #include <QFileInfo> | ||
28 | #include <QJsonArray> | 28 | #include <QJsonArray> | ||
29 | #include <QJsonDocument> | 29 | #include <QJsonDocument> | ||
30 | #include <QDebug> | 30 | #include <QDebug> | ||
31 | #include <QRandomGenerator> | 31 | #include <QRandomGenerator> | ||
32 | 32 | | |||
33 | #include <algorithm> | 33 | #include <algorithm> | ||
34 | 34 | | |||
35 | class MediaPlayListPrivate | 35 | class MediaPlayListPrivate | ||
36 | { | 36 | { | ||
37 | public: | 37 | public: | ||
38 | 38 | | |||
39 | QList<MediaPlayListEntry> mData; | 39 | QList<MediaPlayListEntry> mData; | ||
40 | 40 | | |||
41 | QList<DatabaseInterface::TrackDataType> mTrackData; | 41 | QList<DataTypes::TrackDataType> mTrackData; | ||
42 | 42 | | |||
43 | MusicListenersManager* mMusicListenersManager = nullptr; | 43 | MusicListenersManager* mMusicListenersManager = nullptr; | ||
44 | 44 | | |||
45 | QPersistentModelIndex mPreviousTrack; | 45 | QPersistentModelIndex mPreviousTrack; | ||
46 | 46 | | |||
47 | QPersistentModelIndex mCurrentTrack; | 47 | QPersistentModelIndex mCurrentTrack; | ||
48 | 48 | | |||
49 | QPersistentModelIndex mNextTrack; | 49 | QPersistentModelIndex mNextTrack; | ||
▲ Show 20 Lines • Show All 1339 Lines • Show Last 20 Lines |