Fixed a small memory leak in PreferencesController and keychain access.
[MenuTunes.git] / AudioscrobblerController.h
index 6b62360..a2dc6c4 100644 (file)
 
 #import <Cocoa/Cocoa.h>
 
+typedef enum {
+       AudioscrobblerIdleStatus = -1,
+       AudioscrobblerRequestingHandshakeStatus,
+       AudioscrobblerCompletedHandshakeStatus,
+       AudioscrobblerSubmittingTracksStatus,
+       AudioscrobblerWaitingIntervalStatus
+} AudioscrobblerStatus;
+
 @interface AudioscrobblerController : NSObject {
        BOOL _handshakeCompleted;
+       AudioscrobblerStatus _currentStatus;
+       NSMutableArray *_tracks, *_submitTracks;
+       NSDate *_delayDate;
        
+       NSString *_md5Challenge, *_lastStatus;
+       NSURL *_postURL;
        NSMutableData *_responseData;
 }
 + (AudioscrobblerController *)sharedController;
 
+- (NSString *)lastStatus;
 - (void)attemptHandshake;
+- (void)attemptHandshake:(BOOL)force;
 - (BOOL)handshakeCompleted;
+- (void)submitTrack:(NSString *)title artist:(NSString *)artist album:(NSString *)album length:(int)length;
+- (void)submitTracks;
 @end