#include <ipodsysinfo.h>
Public Types | |
|
typedef itunesdb::utils::DereferencingRangeIterator< QString, PropertyMap::const_iterator, KeyDereferencer > | KeyIterator |
Public Member Functions | |
| IPodSysInfo (const QString &filename) | |
| bool | load () |
| void | refreshDiskUsageStats () |
| KeyIterator | getKeys () const |
| QString | getValue (const QString &key) const |
| unsigned long | getTotalDiskSpaceKB () |
| unsigned long | getAvailableDiskSpaceKB () |
| unsigned long | getUsedDiskSpaceKB () |
| int | getNumTrackFileDirs () const |
| const QDir & | getMusicDir () const |
| const QString & | getDeviceMountpoint () const |
| void | clear () |
| QString | getIPodControlDirName () |
| bool | createMusicDirs () |
| QString | findNewTrackFileName (Q_UINT32 id) |
Classes | |
| struct | KeyDereferencer |
| bool IPodSysInfo::load | ( | ) |
Loads the /Device/SysInfo file and figures out where the music directories are.
| void IPodSysInfo::refreshDiskUsageStats | ( | ) |
Refreshes the statistics about disc space (total space, usage, available space)
| IPodSysInfo::KeyIterator IPodSysInfo::getKeys | ( | ) | const |
Get the keys to all known system information properties.
| QString IPodSysInfo::getValue | ( | const QString & | key | ) | const |
Retrieve an individual property by key
| key | The key to look up. |
| unsigned long IPodSysInfo::getTotalDiskSpaceKB | ( | ) |
Returns the total disk space available on the device (filesystem wise) in kBytes
| unsigned long IPodSysInfo::getAvailableDiskSpaceKB | ( | ) |
Returns the currently available disk space on the device (filesystem wise) in kBytes
| unsigned long IPodSysInfo::getUsedDiskSpaceKB | ( | ) |
Returns the currently used disk space on the device (filesystem wise) in kBytes
| int IPodSysInfo::getNumTrackFileDirs | ( | ) | const [inline] |
Returns the number of fXX directories inside the "Music" dir
| const QDir& IPodSysInfo::getMusicDir | ( | ) | const [inline] |
Returns the directory where the music files reside.
| const QString& IPodSysInfo::getDeviceMountpoint | ( | ) | const [inline] |
Returns the device mountpoint (or drive letter on windows)
| void IPodSysInfo::clear | ( | ) |
clears all information from this sysinfo instance.
| QString IPodSysInfo::getIPodControlDirName | ( | ) | [inline] |
Returns the path to the "iPod_Control" directory on the iPod.
| bool IPodSysInfo::createMusicDirs | ( | ) |
Creates the "Music" directory and the fXX subdirs.
| QString IPodSysInfo::findNewTrackFileName | ( | Q_UINT32 | id | ) |
finds the first track filename for the given trackid. the track filename will be formed like
kpod[decimal encoded ID]
the file extension needs to be added later
1.5.0