IPodSysInfo Class Reference

#include <ipodsysinfo.h>

List of all members.

Public Member Functions

 IPodSysInfo (const QString &filename)
bool load ()
void refreshDiskUsageStats ()
QValueList< QString > 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)


Detailed Description

Author:
Andrew de Quincey, Michael Schulze


Member Function Documentation

bool IPodSysInfo::load (  ) 

Loads the /Device/SysInfo file and figures out where the music directories are.

QValueList< QString > IPodSysInfo::getKeys (  )  const

Get the keys to all known system information properties.

Returns:
Key list.

QString IPodSysInfo::getValue ( const QString &  key  )  const

Retrieve an individual property by key

Parameters:
key The key to look up.
Returns:
The value, or QString::null if unknown.

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.

Returns:
the path to the "iPod_Control" directory on the iPod.

bool IPodSysInfo::createMusicDirs (  ) 

Creates the "Music" directory and the fXX subdirs.

Returns:
true if successful, false if such a directory already exists

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


The documentation for this class was generated from the following files:
Generated on Tue Dec 12 16:39:27 2006 for libqtpod.kdevelop by  doxygen 1.5.1