|
hydrogen 1.1.1
|
#include <Playlist.h>
Data Structures | |
| struct | Entry |
Public Member Functions | |
| ~Playlist () | |
| void | activateSong (int SongNumber) |
| int | size () const |
| Entry * | get (int idx) |
| void | clear () |
| void | add (Entry *entry) |
| void | setNextSongByNumber (int SongNumber) |
| int | getSelectedSongNr () |
| void | setSelectedSongNr (int songNumber) |
| int | getActiveSongNumber () |
| void | setActiveSongNumber (int ActiveSongNumber) |
| bool | getSongFilenameByNumber (int songNumber, QString &fileName) |
| const QString & | getFilename () |
| void | setFilename (const QString &filename) |
| bool | getIsModified () |
| void | setIsModified (bool IsModified) |
| bool | save_file (const QString &pl_path, const QString &name, bool overwrite, bool useRelativePaths) |
Public Member Functions inherited from Object | |
| ~Object () | |
| destructor More... | |
| Object (const Object &obj) | |
| copy constructor More... | |
| Object (const char *class_name) | |
| constructor More... | |
| const char * | class_name () const |
| return the class name More... | |
| virtual QString | toQString (const QString &sPrefix, bool bShort=true) const |
| Formatted string version for debugging purposes. More... | |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. More... | |
Static Public Member Functions | |
| static void | create_instance () |
| If __instance equals 0, a new Playlist singleton will be created and stored in it. More... | |
| static Playlist * | get_instance () |
| Returns a pointer to the current Playlist singleton stored in __instance. More... | |
| static Playlist * | load (const QString &filename, bool useRelativePaths) |
| static Playlist * | load_file (const QString &pl_path, bool useRelativePaths) |
Static Public Member Functions inherited from Object | |
| static void | set_count (bool flag) |
| enable/disable class instances counting More... | |
| static bool | count_active () |
| return true if class instances counting is enabled More... | |
| static unsigned | objects_count () |
| return the number of objects More... | |
| static void | write_objects_map_to (std::ostream &out) |
| output the full objects map to a given ostream More... | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr More... | |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! More... | |
| static Logger * | logger () |
| return the logger instance More... | |
Private Member Functions | |
| Playlist () | |
| void | execScript (int index) |
| void | save_to (XMLNode *node, bool useRelativePaths) |
Static Private Member Functions | |
| static Playlist * | load_from (XMLNode *root, QFileInfo &fileInfo, bool useRelativePaths) |
Private Attributes | |
| QString | __filename |
| std::vector< Entry * > | __entries |
| int | m_nSelectedSongNumber |
| int | m_nActiveSongNumber |
| bool | m_bIsModified |
Static Private Attributes | |
| static Playlist * | __instance = nullptr |
| Object holding the current Playlist singleton. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Object | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. More... | |
Static Protected Attributes inherited from Object | |
| static Logger * | __logger = nullptr |
| logger instance pointer More... | |
Drumkit info.
| ~Playlist | ( | ) |
|
private |
| void activateSong | ( | int | SongNumber | ) |
|
inline |
| void clear | ( | ) |
|
static |
If __instance equals 0, a new Playlist singleton will be created and stored in it.
It is called in Hydrogen::audioEngine_init().
|
private |
|
inline |
|
inlinestatic |
Returns a pointer to the current Playlist singleton stored in __instance.
|
inline |
|
inline |
|
inline |
|
inline |
| bool getSongFilenameByNumber | ( | int | songNumber, |
| QString & | fileName | ||
| ) |
|
static |
|
static |
| bool save_file | ( | const QString & | pl_path, |
| const QString & | name, | ||
| bool | overwrite, | ||
| bool | useRelativePaths | ||
| ) |
|
private |
|
inline |
|
inline |
|
inline |
| void setNextSongByNumber | ( | int | SongNumber | ) |
|
inline |
|
inline |
|
private |
|
private |
|
staticprivate |
Object holding the current Playlist singleton.
It is initialized with NULL, set with create_instance(), and accessed with get_instance().
|
private |
|
private |
|
private |