#include <XspfTrack.h>
Public Member Functions | |
XspfTrack () | |
XspfTrack (XspfTrack const &source) | |
XspfTrack & | operator= (XspfTrack const &source) |
~XspfTrack () | |
void | giveAlbum (XML_Char const *album, bool copy) |
void | giveAppendIdentifier (XML_Char const *identifier, bool copy) |
void | giveAppendLocation (XML_Char const *location, bool copy) |
void | lendAlbum (XML_Char const *album) |
void | lendAppendLocation (XML_Char const *location) |
void | lendAppendIdentifier (XML_Char const *identifier) |
void | setTrackNum (int trackNum) |
void | setDuration (int duration) |
XML_Char * | stealAlbum () |
XML_Char * | stealFirstIdentifier () |
XML_Char * | stealFirstLocation () |
XML_Char const * | getAlbum () const |
XML_Char const * | getIdentifier (int index) const |
XML_Char const * | getLocation (int index) const |
int | getIdentifierCount () const |
int | getLocationCount () const |
int | getDuration () const |
int | getTrackNum () const |
Friends | |
class | XspfTrackPrivate |
Definition at line 61 of file XspfTrack.h.
XspfTrack | ( | ) |
Creates a new, blank track.
~XspfTrack | ( | ) |
Deletes all memory that has not been stolen before.
XML_Char const* getAlbum | ( | ) | const |
Returns the album property.
int getDuration | ( | ) | const |
Returns the duration property. Durations are measured in milliseconds.
XML_Char const* getIdentifier | ( | int | index | ) | const |
Gets a specific identifier from the list. If the list is empty NULL
is returned.
int getIdentifierCount | ( | ) | const |
Returns the number of identifiers.
XML_Char const* getLocation | ( | int | index | ) | const |
Gets a specific location from the list. If the list is empty NULL
is returned.
int getLocationCount | ( | ) | const |
Returns the number of locations.
int getTrackNum | ( | ) | const |
Returns the track number property.
void giveAlbum | ( | XML_Char const * | album, | |
bool | copy | |||
) |
Overwrites the album property. If copy
is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
album | Album string to set | |
copy | Copy flag |
void giveAppendIdentifier | ( | XML_Char const * | identifier, | |
bool | copy | |||
) |
Appends an identifier to the identifier list.
identifier | Identifier to append | |
copy | Copy flag |
void giveAppendLocation | ( | XML_Char const * | location, | |
bool | copy | |||
) |
Appends an location to the location list.
location | Location to append | |
copy | Copy flag |
void lendAlbum | ( | XML_Char const * | album | ) |
Overwrites the album property. The string is only assigned not copied. The ownership is not transferred.
album | Album string to set |
void lendAppendIdentifier | ( | XML_Char const * | identifier | ) |
Appends an identifier to the identifier list. The associated memory is neither copied nor deleted on onject destruction.
identifier | Identifier to append |
void lendAppendLocation | ( | XML_Char const * | location | ) |
Appends an location to the location list. The associated memory is neither copied nor deleted on onject destruction.
location | Location to append |
Assignment operator.
source | Source to copy from |
void setDuration | ( | int | duration | ) |
Overwrites the duration property. Durations are in milliseconds.
duration | Duration to set |
void setTrackNum | ( | int | trackNum | ) |
Overwrites the track number property.
trackNum | Track number to set |
XML_Char* stealAlbum | ( | ) |
Steals the album property.
XML_Char* stealFirstIdentifier | ( | ) |
Steals the first identifier from the list. If the list is empty NULL
is returned.
XML_Char* stealFirstLocation | ( | ) |
Steals the first location from the list. If the list is empty NULL
is returned.