#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 |
|
|
Constructs a new IPod instance for an iPod at the given path. Does not actually read the contents - you need to open it with |
|
|
The destructor. |
|
|
Clears all data we got from this instance whether or not it was changed. Resets the state of this instance. |
|
|
Returns the ITunesDB for this iPod.
|
|
|
Returns the ITunesDB for this iPod (const).
|
|
|
returns the error occured during read or write |
|
|
Returns the name of the iPod |
|
|
Returns the IPodSysInfo for this IPod instance.
|
|
|
Returns the IPodSysInfo for this IPod instance (const).
|
|
|
initializes this ipod by creating the nessessary directories and files This IPod instance then contains the information about the initialized ipod - no need to call open() afterwards. |
|
|
Returns true if this instances data differ somehow from the original data from the iPod and need to be synchronized. |
|
|
Returns true if open() was called successfully for this instance.
|
|
|
Returns true if the ipod represented by this instance is still connected to the system
|
|
|
Lock control functions to prevent concurrent access to the iPod from different programs |
|
|
Tries to open an ipod. That means reading all important information from the device.
|
|
|
Sets the name of the iPod. When the iPod is not opened (isOpen() == false) nothing is changed |
|
|
Writes back all the changed data to the device. This only includes control structures like the iTunesDB and DeviceInfo data. |
1.4.6