|
hydrogen 1.2.3
|
#include <Playlist.h>
Data Structures | |
| struct | Entry |
Public Member Functions | |
| ~Playlist () | |
| void | activateSong (int SongNumber) |
| void | add (Entry *entry) |
| void | clear () |
| Entry * | get (int idx) |
| int | getActiveSongNumber () |
| const QString & | getFilename () |
| bool | getIsModified () |
| int | getSelectedSongNr () |
| bool | getSongFilenameByNumber (int songNumber, QString &fileName) |
| bool | save_file (const QString &pl_path, const QString &name, bool overwrite, bool useRelativePaths) |
| void | setActiveSongNumber (int ActiveSongNumber) |
| void | setFilename (const QString &filename) |
| void | setIsModified (bool IsModified) |
| void | setNextSongByNumber (int SongNumber) |
| void | setSelectedSongNr (int songNumber) |
| int | size () const |
| QString | toQString (const QString &sPrefix="", bool bShort=true) const override |
| Formatted string version for debugging purposes. | |
Public Member Functions inherited from Object< Playlist > | |
| Object () | |
| Object (const Object< Playlist > &other) | |
Public Member Functions inherited from Base | |
| Base () | |
| Base (const Base &other) | |
| virtual const char * | class_name () const |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. | |
Static Public Member Functions | |
| static void | create_instance () |
| If __instance equals 0, a new Playlist singleton will be created and stored in it. | |
| 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) |
Static Public Member Functions inherited from Base | |
| static const char * | _class_name () |
| return the class name | |
| static QString | base_clock (const QString &sMsg) |
| Measures the current time and stores it in __last_clock. | |
| static QString | base_clock_in (const QString &sMsg) |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! | |
| static bool | count_active () |
| static int | getAliveObjectCount () |
| static object_map_t | getObjectMap () |
| static Logger * | logger () |
| return the logger instance | |
| static int | objects_count () |
| static void | printObjectMapDiff (object_map_t map) |
| Creates the difference between a snapshot of the object map and its current state and prints it to std::cout. | |
| static void | set_count (bool flag) |
| enable/disable class instances counting | |
| static void | write_objects_map_to (std::ostream &out, object_map_t *map=nullptr) |
| output the full objects map to a given ostream | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr | |
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 | |
| std::vector< Entry * > | __entries |
| QString | __filename |
| bool | m_bIsModified |
| int | m_nActiveSongNumber |
| int | m_nSelectedSongNumber |
Static Private Attributes | |
| static Playlist * | __instance = nullptr |
| Object holding the current Playlist singleton. | |
Additional Inherited Members | |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Protected Member Functions inherited from Object< Playlist > | |
| ~Object () | |
Protected Member Functions inherited from Base | |
| ~Base () | |
Static Protected Member Functions inherited from Base | |
| static void | registerClass (const char *name, const atomic_obj_cpt_t *counters) |
Static Protected Attributes inherited from Base | |
| static bool | __count = false |
| should we count class instances | |
| static timeval | __last_clock = { 0, 0 } |
| static Logger * | __logger = nullptr |
Drumkit info.
Definition at line 35 of file Playlist.h.
| ~Playlist | ( | ) |
Definition at line 44 of file Playlist.cpp.
|
private |
Definition at line 36 of file Playlist.cpp.
| void activateSong | ( | int | SongNumber | ) |
Definition at line 173 of file Playlist.cpp.
|
inline |
Definition at line 134 of file Playlist.h.
| void clear | ( | ) |
Definition at line 57 of file Playlist.cpp.
|
static |
If __instance equals 0, a new Playlist singleton will be created and stored in it.
It is called in Hydrogen::audioEngine_init().
Definition at line 50 of file Playlist.cpp.
|
private |
Definition at line 207 of file Playlist.cpp.
|
inline |
Definition at line 128 of file Playlist.h.
|
inlinestatic |
Returns a pointer to the current Playlist singleton stored in __instance.
Definition at line 60 of file Playlist.h.
|
inline |
Definition at line 149 of file Playlist.h.
|
inline |
Definition at line 159 of file Playlist.h.
|
inline |
Definition at line 169 of file Playlist.h.
|
inline |
Definition at line 139 of file Playlist.h.
| bool getSongFilenameByNumber | ( | int | songNumber, |
| QString & | fileName ) |
Definition at line 181 of file Playlist.cpp.
|
static |
Definition at line 156 of file Playlist.cpp.
|
static |
Definition at line 65 of file Playlist.cpp.
Definition at line 88 of file Playlist.cpp.
| bool save_file | ( | const QString & | pl_path, |
| const QString & | name, | ||
| bool | overwrite, | ||
| bool | useRelativePaths ) |
Definition at line 123 of file Playlist.cpp.
|
private |
Definition at line 141 of file Playlist.cpp.
|
inline |
Definition at line 154 of file Playlist.h.
|
inline |
Definition at line 164 of file Playlist.h.
|
inline |
Definition at line 174 of file Playlist.h.
| void setNextSongByNumber | ( | int | SongNumber | ) |
Definition at line 197 of file Playlist.cpp.
|
inline |
Definition at line 144 of file Playlist.h.
|
inline |
Definition at line 123 of file Playlist.h.
|
overridevirtual |
Formatted string version for debugging purposes.
| sPrefix | String prefix which will be added in front of every new line |
| bShort | Instead of the whole content of all classes stored as members just a single unique identifier will be displayed without line breaks. |
Reimplemented from Base.
Definition at line 220 of file Playlist.cpp.
|
private |
Definition at line 108 of file Playlist.h.
|
private |
Definition at line 106 of file Playlist.h.
|
staticprivate |
Object holding the current Playlist singleton.
It is initialized with NULL, set with create_instance(), and accessed with get_instance().
Definition at line 105 of file Playlist.h.
|
private |
Definition at line 113 of file Playlist.h.
|
private |
Definition at line 111 of file Playlist.h.
|
private |
Definition at line 110 of file Playlist.h.