3 * AudioscrobblerController
4 * Audioscrobbler Support Class
6 * Original Author : Kent Sutherland <kent.sutherland@ithinksw.com>
7 * Responsibility : Kent Sutherland <kent.sutherland@ithinksw.com>
9 * Copyright (c) 2005 iThink Software.
14 #import <Cocoa/Cocoa.h>
17 AudioscrobblerIdleStatus = -1,
18 AudioscrobblerRequestingHandshakeStatus,
19 AudioscrobblerCompletedHandshakeStatus,
20 AudioscrobblerSubmittingTrackStatus
21 } AudioscrobblerStatus;
23 @interface AudioscrobblerController : NSObject {
24 BOOL _handshakeCompleted;
25 AudioscrobblerStatus _currentStatus;
27 NSString *_md5Challenge;
29 NSMutableData *_responseData;
31 + (AudioscrobblerController *)sharedController;
33 - (void)attemptHandshake;
34 - (BOOL)handshakeCompleted;
35 - (void)submitTrack:(NSString *)title artist:(NSString *)artist album:(NSString *)album length:(int)length;