git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a small memory leak in PreferencesController and keychain access.
[MenuTunes.git]
/
AudioscrobblerController.h
diff --git
a/AudioscrobblerController.h
b/AudioscrobblerController.h
index
6b62360
..
a2dc6c4
100644
(file)
--- a/
AudioscrobblerController.h
+++ b/
AudioscrobblerController.h
@@
-13,13
+13,30
@@
#import <Cocoa/Cocoa.h>
#import <Cocoa/Cocoa.h>
+typedef enum {
+ AudioscrobblerIdleStatus = -1,
+ AudioscrobblerRequestingHandshakeStatus,
+ AudioscrobblerCompletedHandshakeStatus,
+ AudioscrobblerSubmittingTracksStatus,
+ AudioscrobblerWaitingIntervalStatus
+} AudioscrobblerStatus;
+
@interface AudioscrobblerController : NSObject {
BOOL _handshakeCompleted;
@interface AudioscrobblerController : NSObject {
BOOL _handshakeCompleted;
+ AudioscrobblerStatus _currentStatus;
+ NSMutableArray *_tracks, *_submitTracks;
+ NSDate *_delayDate;
+ NSString *_md5Challenge, *_lastStatus;
+ NSURL *_postURL;
NSMutableData *_responseData;
}
+ (AudioscrobblerController *)sharedController;
NSMutableData *_responseData;
}
+ (AudioscrobblerController *)sharedController;
+- (NSString *)lastStatus;
- (void)attemptHandshake;
- (void)attemptHandshake;
+- (void)attemptHandshake:(BOOL)force;
- (BOOL)handshakeCompleted;
- (BOOL)handshakeCompleted;
+- (void)submitTrack:(NSString *)title artist:(NSString *)artist album:(NSString *)album length:(int)length;
+- (void)submitTracks;
@end
@end