forked from bps/scrobblepod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBGScrobbleDecisionManager.h
49 lines (38 loc) · 1.04 KB
/
BGScrobbleDecisionManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// BGScrobbleDecisionManager.h
// ScrobblePod
//
// Created by Ben Gummer on 15/05/08.
// Copyright 2008 Ben Gummer. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Growl/GrowlApplicationBridge.h>
@interface BGScrobbleDecisionManager : NSObject {
BOOL cachedOverallDecision;
BOOL isDecisionMadeAutomatically;
BOOL usersManualChoice;
BOOL firstRefresh;
NSTimer *refreshTimer;
}
@property (assign) BOOL cachedOverallDecision;
@property (assign) BOOL isDecisionMadeAutomatically;
@property (assign) BOOL usersManualChoice;
+(BGScrobbleDecisionManager *)sharedManager;
+(id)allocWithZone:(NSZone *)zone;
-(id)copyWithZone:(NSZone *)zone;
-(id)retain;
-(unsigned)retainCount;
-(void)release;
-(id)autorelease;
-(id)init;
#pragma mark Decision Making
-(BOOL)shouldScrobble;
-(BOOL)shouldScrobbleAuto;
#pragma mark Refreshing Cache
-(void)refreshDecisionAndNotifyIfChanged:(BOOL)notify;
#pragma mark Timer
-(void)startRefreshTimer;
-(void)refreshFromTimer:(NSTimer *)fromTimer;
-(void)stopRefreshTimer;
-(void)resetRefreshTimer;
@end