TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicplaylistmanager.h
Go to the documentation of this file.
1 #ifndef MUSICPLAYLISTMANAGER_H
2 #define MUSICPLAYLISTMANAGER_H
3 
4 /***************************************************************************
5  * This file is part of the TTK Music Player project
6  * Copyright (C) 2015 - 2024 Greedysky Studio
7 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17 
18  * You should have received a copy of the GNU General Public License along
19  * with this program; If not, see <http://www.gnu.org/licenses/>.
20  ***************************************************************************/
21 
22 #include "musicsong.h"
23 
28 {
30 public:
34  void writeSongItem(const QString &path, const MusicSongItem &item);
38  void readSongItems(const QStringList &paths, MusicSongItemList &items);
39 
40 private:
44  bool readTKPLConfig(const QString &path, MusicSongItemList &items);
48  bool writeTKPLConfig(const QString &path, const MusicSongItem &item);
49 
53  bool readM3UConfig(const QString &path, MusicSongItemList &items);
57  bool writeM3UConfig(const QString &path, const MusicSongItem &item);
58 
62  bool readPLSConfig(const QString &path, MusicSongItemList &items);
66  bool writePLSConfig(const QString &path, const MusicSongItem &item);
67 
71  bool readWPLConfig(const QString &path, MusicSongItemList &items);
75  bool writeWPLConfig(const QString &path, const MusicSongItem &item);
76 
80  bool readXSPFConfig(const QString &path, MusicSongItemList &items);
84  bool writeXSPFConfig(const QString &path, const MusicSongItem &item);
85 
89  bool readJSPFConfig(const QString &path, MusicSongItemList &items);
93  bool writeJSPFConfig(const QString &path, const MusicSongItem &item);
94 
98  bool readASXConfig(const QString &path, MusicSongItemList &items);
102  bool writeASXConfig(const QString &path, const MusicSongItem &item);
103 
107  bool readFPLConfig(const QString &path, MusicSongItemList &items);
108 
112  bool readDBPLConfig(const QString &path, MusicSongItemList &items);
113 
117  bool readCSVConfig(const QString &path, MusicSongItemList &items);
121  bool writeCSVConfig(const QString &path, const MusicSongItem &item);
122 
126  bool readTXTConfig(const QString &path, MusicSongItemList &items);
130  bool writeTXTConfig(const QString &path, const MusicSongItem &item);
131 
132 };
133 
134 #endif // MUSICPLAYLISTMANAGER_H
#define TTK_MODULE_EXPORT
The class of the playlist manager.
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:152
The class of the music song item.
Definition: musicsong.h:161