21#ifndef PLAYLISTTASK_P_H
22#define PLAYLISTTASK_P_H
28#include "playlistmodel.h"
29#include "playlistcontainer_p.h"
37class PlayListTask :
public QThread
52 explicit PlayListTask(QObject *parent);
58 void sortByColumn(QList<PlayListTrack *> tracks,
int column);
59 void removeInvalidTracks(QList<PlayListTrack *> tracks, PlayListTrack *current_track);
60 void removeDuplicates(QList<PlayListTrack *> tracks, PlayListTrack *current_track);
61 void refresh(QList<PlayListTrack *> tracks, PlayListTrack *current_track);
65 TaskType type()
const;
66 bool isChanged(PlayListContainer *container);
67 QList<PlayListTrack *> takeResults(PlayListTrack **current_track);
68 PlayListTrack *currentTrack()
const;
70 bool isReverted()
const;
75 QList<TrackField *> m_fields;
76 QList<PlayListTrack *> m_tracks;
77 QList<PlayListTrack *> m_input_tracks;
79 QList<PlayListTrack *> m_new_tracks;
80 PlayListTrack *m_current_track;
82 TaskType m_task = EMPTY;
83 bool m_reverted =
true;
84 bool m_align_groups =
false;
86 static const QHash<int, Qmmp::MetaData> m_sort_keys;
SortMode
Definition playlistmodel.h:331
@ TITLE
Definition playlistmodel.h:332
The PlayListTrack class provides a track for use with the PlayListModel class.
Definition playlisttrack.h:37