#include <ipod_cpp.h>
Public Member Functions | |
IPodTrack (IPod &ipod) | |
Constructor, creates a new, empty track on the iPod. | |
IPodTrack (IPod &ipod, std::string filePath) | |
Constuctor, creates a new track from the supplied file on the iPod. | |
~IPodTrack () | |
Destructor, does not delete the track. | |
void | Remove (void) |
Removes the track from the iPod. | |
std::string | GetText (int tag) |
Retrieves a text attribute from the track. | |
void | SetText (int tag, std::string s) |
Sets a text attribute for the track. | |
bool | HasText (int tag) |
Indicates whether the track currently has a particular string. | |
uint32_t | GetAttribute (int tag) |
Return a numerical attribute for the track. | |
void | SetAttribute (int tag, uint32_t value) |
Set the value of an attribute for the track. | |
void | Upload (char *filePath, ipod_file_transfer_func callback=0, void *userData=0) |
Upload an audio file corresponding to this track. | |
void | Download (char *filePath, ipod_file_transfer_func callback=0, void *userData=0) |
Download an audio file corresponding to this track. | |
Friends | |
class | IPod |
|
Constructor, creates a new, empty track on the iPod.
|
|
Constuctor, creates a new track from the supplied file on the iPod. This is a quick and dirty way to add audio files to the iPod - you only have to supply a local file path to a supported audio file. The file will be analyzed to extract the appropriate tag and format information to populate the data structures, and the file will be uploaded to the iPod
|
|
Download an audio file corresponding to this track.
|
|
Return a numerical attribute for the track.
|
|
Retrieves a text attribute from the track.
|
|
Indicates whether the track currently has a particular string.
|
|
Removes the track from the iPod. This method will remove the track from all playlists and from the master track list, and will remove the audio file from the iPod |
|
Set the value of an attribute for the track.
track.SetAttribute(IPOD_TRACK_ID,15); |
|
Sets a text attribute for the track.
std:string title = "Dead Puppies";
track.SetText(IPOD_TITLE,title);
|
|
Upload an audio file corresponding to this track.
|