Submissions work now. Committing before I break something by adding queues.
[MenuTunes.git] / AudioscrobblerController.h
index 6b62360..00662db 100644 (file)
 
 #import <Cocoa/Cocoa.h>
 
 
 #import <Cocoa/Cocoa.h>
 
+typedef enum {
+       AudioscrobblerIdleStatus = -1,
+       AudioscrobblerRequestingHandshakeStatus,
+       AudioscrobblerCompletedHandshakeStatus,
+       AudioscrobblerSubmittingTrackStatus
+} AudioscrobblerStatus;
+
 @interface AudioscrobblerController : NSObject {
        BOOL _handshakeCompleted;
 @interface AudioscrobblerController : NSObject {
        BOOL _handshakeCompleted;
+       AudioscrobblerStatus _currentStatus;
        
        
+       NSString *_md5Challenge;
+       NSURL *_postURL;
        NSMutableData *_responseData;
 }
 + (AudioscrobblerController *)sharedController;
 
 - (void)attemptHandshake;
 - (BOOL)handshakeCompleted;
        NSMutableData *_responseData;
 }
 + (AudioscrobblerController *)sharedController;
 
 - (void)attemptHandshake;
 - (BOOL)handshakeCompleted;
+- (void)submitTrack:(NSString *)title artist:(NSString *)artist album:(NSString *)album length:(int)length;
 @end
 @end