Talrijke aanpassingen gemaakt. Vorige commit gaf een fout en ik heb geen zin om informatie opnieuw te typen.

This commit is contained in:
2011-02-20 12:36:53 +00:00
parent 757d4f3868
commit b77e280343
26 changed files with 704 additions and 60 deletions

View File

@@ -150,5 +150,19 @@ public class ITPlaylist extends ITObject {
Dispatch tracks = Dispatch.get(object, "Tracks").toDispatch();
return new ITTrackCollection(tracks);
}
/**
* Returns the shuffle state.
* @return true if current state is shuffle.
*/
public boolean getShuffle() {
return Dispatch.get(object, "Shuffle").getBoolean();
}
/**
* Toggle the shuffle state.
*/
public void toggleShuffle() {
setShuffle(!getShuffle());
}
}

View File

@@ -342,6 +342,13 @@ public class iTunes {
setMute(!getMute());
}
/**
* Toggle the shuffle state.
*/
public void toggleShuffle() {
getCurrentPlaylist().toggleShuffle();
}
/**
* Returns the current player state.
* @return Returns the current player state.