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

void IPodSysInfo::clear  ) 
 

clears all information from this sysinfo instance.

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

unsigned long IPodSysInfo::getAvailableDiskSpaceKB  ) 
 

Returns the currently available disk space on the device (filesystem wise) in kBytes

const QString& IPodSysInfo::getDeviceMountpoint  )  const [inline]
 

Returns the device mountpoint (or drive letter on windows)

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.

QValueList< QString > IPodSysInfo::getKeys  )  const
 

Get the keys to all known system information properties.

Returns:
Key list.

const QDir& IPodSysInfo::getMusicDir  )  const [inline]
 

Returns the directory where the music files reside.

int IPodSysInfo::getNumTrackFileDirs  )  const [inline]
 

Returns the number of fXX directories inside the "Music" dir

unsigned long IPodSysInfo::getTotalDiskSpaceKB  ) 
 

Returns the total disk space available on the device (filesystem wise) in kBytes

unsigned long IPodSysInfo::getUsedDiskSpaceKB  ) 
 

Returns the currently used disk space on the device (filesystem wise) in kBytes

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.

bool IPodSysInfo::load  ) 
 

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


The documentation for this class was generated from the following files:
Generated on Sun Oct 1 20:34:30 2006 for libqtpod.kdevelop by  doxygen 1.4.6