#include <XspfTrack.h>
List of all members.
Detailed Description
Represents an XSPF track without extensions.
Definition at line 61 of file XspfTrack.h.
Constructor & Destructor Documentation
Creates a new, blank track.
Copy constructor.
- Parameters:
-
| source | Source to copy from |
Deletes all memory that has not been stolen before.
Member Function Documentation
XML_Char const* getAlbum |
( |
|
) |
const |
Returns the album property.
- Returns:
- Album, can be NULL
int getDuration |
( |
|
) |
const |
Returns the duration property. Durations are measured in milliseconds.
- Returns:
- Duration, zero-based, -1 if unknown
XML_Char const* getIdentifier |
( |
int |
index |
) |
const |
Gets a specific identifier from the list. If the list is empty NULL
is returned.
- Returns:
- Specified identifier, can be NULL
int getIdentifierCount |
( |
|
) |
const |
Returns the number of identifiers.
- Returns:
- 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.
- Returns:
- Specified location, can be NULL
int getLocationCount |
( |
|
) |
const |
Returns the number of locations.
- Returns:
- Number of locations
int getTrackNum |
( |
|
) |
const |
Returns the track number property.
- Returns:
- Track number, one-based, -1 if unknown
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.
- Parameters:
-
| album | Album string to set |
| copy | Copy flag |
void giveAppendIdentifier |
( |
XML_Char const * |
identifier, |
|
|
bool |
copy | |
|
) |
| | |
Appends an identifier to the identifier list.
- Parameters:
-
| identifier | Identifier to append |
| copy | Copy flag |
void giveAppendLocation |
( |
XML_Char const * |
location, |
|
|
bool |
copy | |
|
) |
| | |
Appends an location to the location list.
- Parameters:
-
| 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.
- Parameters:
-
| 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.
- Parameters:
-
| 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.
- Parameters:
-
| location | Location to append |
Assignment operator.
- Parameters:
-
| source | Source to copy from |
void setDuration |
( |
int |
duration |
) |
|
Overwrites the duration property. Durations are in milliseconds.
- Parameters:
-
void setTrackNum |
( |
int |
trackNum |
) |
|
Overwrites the track number property.
- Parameters:
-
| trackNum | Track number to set |
Steals the album property.
- Returns:
- Album, can be NULL
XML_Char* stealFirstIdentifier |
( |
|
) |
|
Steals the first identifier from the list. If the list is empty NULL
is returned.
- Returns:
- First identifier, can be NULL
XML_Char* stealFirstLocation |
( |
|
) |
|
Steals the first location from the list. If the list is empty NULL
is returned.
- Returns:
- First location, can be NULL
The documentation for this class was generated from the following file: