git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Submissions work now. Committing before I break something by adding queues.
[MenuTunes.git]
/
AudioscrobblerController.h
diff --git
a/AudioscrobblerController.h
b/AudioscrobblerController.h
index
6b62360
..
00662db
100644
(file)
--- a/
AudioscrobblerController.h
+++ b/
AudioscrobblerController.h
@@
-13,13
+13,24
@@
#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