Changeset 58
- Timestamp:
- 05/11/07 23:18:08 (2 years ago)
- Files:
-
- trunk/src/main/org/lastpod/LastPod.java (modified) (4 diffs)
- trunk/src/main/org/lastpod/PreferencesEditor.java (modified) (1 diff)
- trunk/src/main/org/lastpod/UI.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/org/lastpod/LastPod.java
r57 r58 48 48 + "username and password."; 49 49 50 private static void Load() { 50 /** 51 * Loads the recent played information from the iPod and constructs the 52 * GUI to display it. 53 */ 54 private static void load() { 51 55 LastPod.recentplayed = new ArrayList(); 52 56 LastPod.UI = new UI(); … … 57 61 logger.addHandler(new LogHandler()); 58 62 59 LastPod. ParsePlayCounts();63 LastPod.parsePlayCounts(); 60 64 61 65 LastPod.UI.makeVisable(); 62 66 } 63 67 64 public static void ParsePlayCounts() { 68 /** 69 * Parses the play counts and track information from the iPod. 70 */ 71 public static void parsePlayCounts() { 65 72 Preferences fPrefs = Preferences.userRoot().node("ws/afterglo/audioPod"); 66 73 String iTunesPath = fPrefs.get("iTunes Path", "default"); … … 93 100 } 94 101 95 public static Object SubmitTracks() { 102 /** 103 * Submits the tracks to Last.fm 104 * @return A status message upon completion. 105 */ 106 public static Object submitTracks() { 96 107 Preferences fPrefs = Preferences.userRoot().node("ws/afterglo/audioPod"); 97 108 String username = fPrefs.get("Username", "default"); … … 194 205 javax.swing.SwingUtilities.invokeLater(new Runnable() { 195 206 public void run() { 196 LastPod. Load();207 LastPod.load(); 197 208 } 198 209 }); trunk/src/main/org/lastpod/PreferencesEditor.java
r56 r58 396 396 if (!oldItunesPath.equals(newItunesPath)) { 397 397 LastPod.recentplayed = new ArrayList(); 398 LastPod. ParsePlayCounts();398 LastPod.parsePlayCounts(); 399 399 LastPod.UI.newTrackListAvailable(); 400 400 } trunk/src/main/org/lastpod/UI.java
r52 r58 194 194 new SwingWorker() { 195 195 public Object construct() { 196 return LastPod. SubmitTracks();196 return LastPod.submitTracks(); 197 197 } 198 198
