|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.axelwernicke.mypod.ipod.IPod
Class representing an iPod.
| Field Summary | |
protected static java.lang.String |
IPOD_CONTROL_DIR
string to probe ipod availability |
protected static java.lang.String |
IPOD_ITUNES_DIR
Relative Path to the iTunes directory on the iPod |
| Constructor Summary | |
IPod()
Standard Constructor |
|
| Method Summary | |
boolean |
addClips(DataPool dataPool,
java.util.Vector oids,
java.util.Hashtable iMapper,
IPodSyncDialog dialog)
Moves Clips to the iPod |
void |
createPlaylists(javax.swing.DefaultListModel playlistList,
java.util.Hashtable iMapper,
IPodSyncDialog dialog)
Creates playlists on iPod. |
long |
getClipsSize(java.util.Vector oids,
java.util.Hashtable iMapper)
Gets the summarized filesize for all clips. |
long |
getDiscSpace()
Getter for property discSpace. |
long |
getDiscSpaceFree()
Getter for property discSpaceFree. |
long |
getDiscSpaceUsed()
Getter for property discSpaceUsed. |
ITunesDB |
getITunesDB()
Getter for property itunesDB. |
java.lang.String |
getName()
Gets the name of the iPod. |
Playcounts |
getPlaycounts()
Gets the playcounts object, loads it from file if not done yet |
java.lang.String |
getSerialNumber()
Getter for property serial number. |
java.lang.String |
getVersion()
Getter for property version. |
static boolean |
isConnected()
Probes iPod. |
void |
removeAllClips()
Removes all Clips from iPod. |
boolean |
removeClips(java.util.Vector oids,
java.util.Hashtable iMapper,
IPodSyncDialog dialog)
Removes Clips from iPod. |
void |
removeEmptyPlaylists()
Removes empty playlists on iPod. |
void |
removePlaycounts()
|
boolean |
saveITunesDB()
Saves iTunes database on iPod. |
boolean |
saveITunesDB(ITunesDB db)
saves the iTunes database on iPod. |
void |
setITunesDB(ITunesDB iTunesDB)
Setter for property itunesDB. |
void |
setName(java.lang.String name)
Setter for property name. |
void |
setPlaycounts(Playcounts playcounts)
Setter for property Playcounts. |
void |
wipe()
Wipes all music from the iPod. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String IPOD_CONTROL_DIR
protected static final java.lang.String IPOD_ITUNES_DIR
| Constructor Detail |
public IPod()
| Method Detail |
public boolean saveITunesDB(ITunesDB db)
db - Database to save.
public boolean saveITunesDB()
public static boolean isConnected()
public long getClipsSize(java.util.Vector oids,
java.util.Hashtable iMapper)
iMapper - hashtable that allows to find songs on the iPod by myPod oidoids - vector of oids to summarize filesizes
public boolean removeClips(java.util.Vector oids,
java.util.Hashtable iMapper,
IPodSyncDialog dialog)
dialog - to inform user about progressoids - to remove from iPodiMapper - to correct
public void removeAllClips()
public boolean addClips(DataPool dataPool,
java.util.Vector oids,
java.util.Hashtable iMapper,
IPodSyncDialog dialog)
dataPool - to determine clip meta datadialog - to show progressoids - of the clips to moveiMapper - to correct
public void removeEmptyPlaylists()
public void createPlaylists(javax.swing.DefaultListModel playlistList,
java.util.Hashtable iMapper,
IPodSyncDialog dialog)
playlistList - list of playlists to createdialog - to inform user about progressiMapper - mapper objectpublic void setName(java.lang.String name)
name - New value of property name.public java.lang.String getName()
public void wipe()
public ITunesDB getITunesDB()
public void setITunesDB(ITunesDB iTunesDB)
iTunesDB - to setpublic java.lang.String getVersion()
public java.lang.String getSerialNumber()
public long getDiscSpace()
public long getDiscSpaceFree()
public long getDiscSpaceUsed()
public Playcounts getPlaycounts()
public void setPlaycounts(Playcounts playcounts)
public void removePlaycounts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||