libxspf
1.2.0
|
#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 |
![]() | |
void | giveImage (XML_Char const *image, bool copy) |
void | giveInfo (XML_Char const *info, bool copy) |
void | giveAnnotation (XML_Char const *annotation, bool copy) |
void | giveCreator (XML_Char const *creator, bool copy) |
void | giveTitle (XML_Char const *title, bool copy) |
void | giveAppendLink (XML_Char const *rel, bool copyRel, XML_Char const *content, bool copyContent) |
void | giveAppendMeta (XML_Char const *rel, bool copyRel, XML_Char const *content, bool copyContent) |
void | giveAppendExtension (XspfExtension const *extension, bool copy) |
void | lendImage (XML_Char const *image) |
void | lendInfo (XML_Char const *info) |
void | lendAnnotation (XML_Char const *annotation) |
void | lendCreator (XML_Char const *creator) |
void | lendTitle (XML_Char const *title) |
void | lendAppendLink (XML_Char const *rel, XML_Char const *content) |
void | lendAppendMeta (XML_Char const *rel, XML_Char const *content) |
void | lendAppendExtension (XspfExtension *extension) |
XML_Char * | stealImage () |
XML_Char * | stealInfo () |
XML_Char * | stealAnnotation () |
XML_Char * | stealCreator () |
XML_Char * | stealTitle () |
std::pair< XML_Char *, XML_Char * > * | stealFirstLink () |
std::pair< XML_Char *, XML_Char * > * | stealFirstMeta () |
XspfExtension * | stealFirstExtension () |
XML_Char const * | getImage () const |
XML_Char const * | getInfo () const |
XML_Char const * | getAnnotation () const |
XML_Char const * | getCreator () const |
XML_Char const * | getTitle () const |
std::pair< XML_Char const *, XML_Char const * > * | getLink (int index) const |
std::pair< XML_Char const *, XML_Char const * > * | getMeta (int index) const |
XspfExtension const * | getExtension (int index) const |
int | getLinkCount () const |
int | getMetaCount () const |
int | getExtensionCount () const |
Friends | |
class | XspfTrackPrivate |
Additional Inherited Members | |
![]() | |
static bool const | COPY |
Memory is copied. | |
static bool const | TRANSFER |
Memory ownership is transfered. | |
![]() | |
XspfData () | |
XspfData (XspfData const &source) | |
XspfData & | operator= (XspfData const &source) |
virtual | ~XspfData () |
![]() | |
static XML_Char * | stealHelper (XML_Char const *&property, bool own) |
Represents an XSPF track without extensions.
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.