#include <ipod_cpp.h>
Public Types | |
enum | Encoding { IPOD_ENCODING_UTF_8, IPOD_ENCODING_ISO_8859_1 } |
String encodings. More... | |
Public Member Functions | |
IPod (std::string path) | |
Constructor, takes an absolute path to the mount point of the iPod. | |
~IPod () | |
Destructor, frees all data internal data structures. | |
void | Flush (void) |
Flushes any modifications to the iPod. | |
unsigned long | Version (void) |
Returns the database version found on the iPod. | |
void | DiskUsage (uint64_t *total, uint64_t *free) |
Returns information about the total and available storage on the iPod. | |
unsigned long | TrackCount (void) |
Returns the number of tracks on the iPod. | |
IPodTrack | TrackByIndex (unsigned long index) |
Returns an object encapsulating a single audio track. | |
IPodTrack | TrackByTrackID (uint32_t trackID) |
Returns an object encapsulating the single track with the supplied unique track ID. | |
unsigned long | PlaylistCount (void) |
Returns the number of playlists on the iPod. | |
IPodPlaylist | PlaylistByIndex (unsigned long index) |
Returns an object encapsulating a single playlist. | |
unsigned long | EQPresetCount (void) |
Returns the number of EQ Presets on the iPod. | |
IPodEQPreset | EQPresetByIndex (unsigned long index) |
Returns an object encapsulating a single EQ preset. | |
Static Public Member Functions | |
int | Discover (std::string **paths) |
Scans for mounted iPods. | |
Encoding | StringEncoding (void) |
The current encoding used for strings. | |
void | SetStringEncoding (Encoding encoding) |
Sets the current encoding for strings. | |
Friends | |
class | IPodTrack |
class | IPodPlaylist |
class | IPodEQPreset |
|
String encodings.
|
|
Constructor, takes an absolute path to the mount point of the iPod.
IPod ipod("/mnt/sda1"); |
|
Scans for mounted iPods. Scans the /mnt directory looking for mounted iPods
|
|
Returns information about the total and available storage on the iPod.
uint64_t total,free; ipod.DiskUsage(&total,&free); cout << "Total storage on iPod: " << total << " bytes" << endl; |
|
Returns an object encapsulating a single EQ preset.
|
|
Returns the number of EQ Presets on the iPod.
|
|
Flushes any modifications to the iPod. If any changes have been made to the data structures, will write out any affected databases to the iPod storage |
|
Returns an object encapsulating a single playlist.
|
|
Returns the number of playlists on the iPod.
|
|
Sets the current encoding for strings.
|
|
The current encoding used for strings.
|
|
Returns an object encapsulating a single audio track.
|
|
Returns an object encapsulating the single track with the supplied unique track ID.
|
|
Returns the number of tracks on the iPod.
|
|
Returns the database version found on the iPod.
|