+- (BOOL)currentSongShufflable
+{
+ BOOL temp1;
+ ITDebugLog(@"Getting current song shufflable status.");
+ temp1 = (![self isPlaying] || ([self currentPlaylistClass] == ITMTRemotePlayerRadioPlaylist)) ? NO : [ITSendAEWithString(@"'----':obj { form:'prop', want:type('prop'), seld:type('pSfa'), from:obj { form:'prop', want:type('prop'), seld:type('pTrk'), from:'null'() } }", 'core', 'getd', &savedPSN) booleanValue];
+ ITDebugLog(@"Getting current song shufflable status done.");
+ return temp1;
+}
+
+- (BOOL)setCurrentSongShufflable:(BOOL)shufflable
+{
+ ITDebugLog(@"Setting current song shufflable status to %i.", shufflable);
+ if ([self currentPlaylistClass] == ITMTRemotePlayerRadioPlaylist) {
+ ITDebugLog(@"Not a valid track to set status to, returning.");
+ return NO;
+ }
+ ITSendAEWithString([NSString stringWithFormat:@"data:long(%lu), '----':obj { form:'prop', want:type('prop'), seld:type('pSfa'), from:obj { form:'indx', want:type('cTrk'), seld:long(%lu), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:'null'() } } }", shufflable, [self currentSongIndex]], 'core', 'setd', &savedPSN);
+ ITDebugLog(@"Setting current song shufflable status to %i done.", shufflable);
+ return YES;
+}
+