67 Entry*
get(
int idx );
70 void add( Entry* entry );
86 static Playlist*
load(
const QString& filename,
bool useRelativePaths );
88 bool save_file(
const QString& pl_path,
const QString& name,
bool overwrite,
bool useRelativePaths );
97 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const override;
130 assert( idx >= 0 && idx <
size() );
static Playlist * __instance
Object holding the current Playlist singleton.
void setNextSongByNumber(int SongNumber)
std::vector< Entry * > __entries
void setIsModified(bool IsModified)
int getActiveSongNumber()
int m_nSelectedSongNumber
void save_to(XMLNode *node, bool useRelativePaths)
static void create_instance()
If __instance equals 0, a new Playlist singleton will be created and stored in it.
void activateSong(int SongNumber)
void execScript(int index)
void setFilename(const QString &filename)
void setSelectedSongNr(int songNumber)
QString toQString(const QString &sPrefix="", bool bShort=true) const override
Formatted string version for debugging purposes.
void setActiveSongNumber(int ActiveSongNumber)
bool save_file(const QString &pl_path, const QString &name, bool overwrite, bool useRelativePaths)
static Playlist * load_from(XMLNode *root, QFileInfo &fileInfo, bool useRelativePaths)
const QString & getFilename()
static Playlist * get_instance()
Returns a pointer to the current Playlist singleton stored in __instance.
static Playlist * load(const QString &filename, bool useRelativePaths)
static Playlist * load_file(const QString &pl_path, bool useRelativePaths)
bool getSongFilenameByNumber(int songNumber, QString &fileName)
XMLNode is a subclass of QDomNode with read and write values methods.