IPod ipod( "/media/ipod" );
IPod ipod( "E:" );
if( !ipod.open() ) { // failed }
// get the iTunesDB instance ITunesDB& itunesdb = ipod.getITunesDB();
// get an Iterator over all tracks found on the device ITunesDB::TrackConstIterator iter = itunesdb.getAllTracks(); while( iter.hasNext() ) { // get the next track ITunesDBTrack * track = iter.next(); // print track meta data printf( "%s\t%s\t%s\t%s\n", track->getArtist().ascii(), track->getAlbum().ascii(), track->getTitle().ascii(), itunesdb.getFileForPathInfo( track->getPathInfo() ).ascii() ); }
// synchronize with the device
ipod.synchronize();
ipod.close();
Other Testcases in the classes implementing Test in the "tests/" directory
IPodSysInfo& sysinfo = ipod.getSysInfo();