#include <ipod.h>
Public Member Functions | |
IPod (const QString &ipodBase) | |
virtual | ~IPod () |
bool | open () |
void | initialize (const QString &title) |
bool | isOpen () |
bool | isStillConnected () |
void | close () |
QString | getName () const |
void | setName (const QString &name) |
const QString & | getItunesDBError () const |
const IPodSysInfo & | getSysInfo () const |
IPodSysInfo & | getSysInfo () |
const ITunesDB & | getITunesDB () const |
ITunesDB & | getITunesDB () |
void | synchronize () |
bool | isDirty () const |
void | lock (bool write_lock) |
bool | isLocked () |
void | unlock () |
const QString & | getBasePath () const |
bool | hasPodcasts () |
Static Public Member Functions | |
static QString | createDistinctIPodName (const IPod &ipod) |
Protected Attributes | |
QString | m_ipodBase |
IPod::IPod | ( | const QString & | ipodBase | ) |
IPod::~IPod | ( | ) | [virtual] |
The destructor.
bool IPod::open | ( | ) |
Tries to open an ipod. That means reading all important information from the device.
void IPod::initialize | ( | const QString & | title | ) |
bool IPod::isOpen | ( | ) |
bool IPod::isStillConnected | ( | ) |
Returns true if the ipod represented by this instance is still connected to the system
void IPod::close | ( | ) |
Clears all data we got from this instance whether or not it was changed. Resets the state of this instance.
QString IPod::getName | ( | ) | const |
Returns the name of the iPod
void IPod::setName | ( | const QString & | name | ) |
Sets the name of the iPod. When the iPod is not opened (isOpen() == false) nothing is changed
const QString & IPod::getItunesDBError | ( | ) | const |
returns the error occured during read or write
const IPodSysInfo & IPod::getSysInfo | ( | ) | const |
Returns the IPodSysInfo for this IPod instance (const).
IPodSysInfo & IPod::getSysInfo | ( | ) |
Returns the IPodSysInfo for this IPod instance.
const ITunesDB & IPod::getITunesDB | ( | ) | const |
ITunesDB & IPod::getITunesDB | ( | ) |
void IPod::synchronize | ( | ) |
Writes back all the changed data to the device. This only includes control structures like the iTunesDB and DeviceInfo data.
bool IPod::isDirty | ( | ) | const [inline] |
Returns true if this instances data differ somehow from the original data from the iPod and need to be synchronized.
void IPod::lock | ( | bool | write_lock | ) |
Lock control functions to prevent concurrent access to the iPod from different programs