X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/97eb97cd6af1e3019980ed380a6cbaf1feae0abe..ba95bdd1193aefaac80e1f1f6d3956733ce0f3bd:/AudioscrobblerController.h?ds=sidebyside diff --git a/AudioscrobblerController.h b/AudioscrobblerController.h index 6b62360..00662db 100644 --- a/AudioscrobblerController.h +++ b/AudioscrobblerController.h @@ -13,13 +13,24 @@ #import +typedef enum { + AudioscrobblerIdleStatus = -1, + AudioscrobblerRequestingHandshakeStatus, + AudioscrobblerCompletedHandshakeStatus, + AudioscrobblerSubmittingTrackStatus +} AudioscrobblerStatus; + @interface AudioscrobblerController : NSObject { BOOL _handshakeCompleted; + AudioscrobblerStatus _currentStatus; + NSString *_md5Challenge; + NSURL *_postURL; NSMutableData *_responseData; } + (AudioscrobblerController *)sharedController; - (void)attemptHandshake; - (BOOL)handshakeCompleted; +- (void)submitTrack:(NSString *)title artist:(NSString *)artist album:(NSString *)album length:(int)length; @end