1 #ifndef MUSICPLAYLIST_H
2 #define MUSICPLAYLIST_H
39 : m_playlistRow(index),
47 return m_playlistRow != -1 && !m_path.isEmpty();
76 void setShuffleMode(
bool shuffle);
90 int currentIndex()
const;
98 QString currentMediaPath()
const;
103 const MusicPlayItemList& mediaList()
const;
107 const MusicPlayItemList& queueList()
const;
116 bool isEmpty()
const;
125 void update(
const TTK::IndexPropertyList &indexs);
134 int find(
int playlistRow,
const QString &content,
int from = 0);
139 void add(
int playlistRow,
const QString &content);
143 void add(
int playlistRow,
const QStringList &items);
148 void append(
int playlistRow,
const QString &content);
152 void append(
int playlistRow,
const QStringList &items);
156 void appendQueue(
int playlistRow,
const QString &content);
161 bool remove(
int pos);
165 int remove(
int playlistRow,
const QString &content);
175 void currentIndexChanged(
int index);
185 void setCurrentIndex(
int index);
189 void setCurrentIndex(
int playlistRow,
const QString &path);
208 void setEnabled(
bool enable);
212 bool isEnabled()
const;
216 void initialize(
const MusicPlayItemList &items);
235 #endif // MUSICPLAYLIST_H
bool operator==(const VolumeSettings &v1, const VolumeSettings &v2)
The class of the music play item.
#define TTK_MODULE_EXPORT
MusicPlayItemList m_queueList
MusicPlayItem(int index, const QString &path)
static constexpr int PLAY_PREVIOUS_LEVEL
#define TTK_DECLARE_MODULE(Class)
MusicPlayItemList m_mediaList
static constexpr int PLAY_NEXT_LEVEL
TTK::PlayMode m_playbackMode
The class of the music play list.
TTK_DECLARE_LIST(MusicPlayItem)