-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeaders.h
executable file
·150 lines (127 loc) · 5.11 KB
/
Headers.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
//
// Headers.h
// CCNowPlaying
//
// Created by kinda on 01.01.2014.
// Copyright (c) 2014-2015 kinda. All rights reserved.
//
#ifndef kCFCoreFoundationVersionNumber_iOS_8_0
#define kCFCoreFoundationVersionNumber_iOS_8_0 1141.14
// #define kCFCoreFoundationVersionNumber_iOS_8_0 1129.15
#endif
#define CCNOWPLAYING_PREFERENCES_PATH @"/var/mobile/Library/Preferences/com.kindadev.ccnowplaying.plist"
#define AUXO3_PREFERENCES_PATH @"/var/mobile/Library/Preferences/com.a3tweaks.auxo3.plist"
#define CCNOWPLAYING_PREFERENCES_NEW "com.kindadev.ccnowplaying"
#define CCNOWPLAYING_PREFERENCES_CHANGE "com.kindadev.ccnowplaying.settingschanged"
#define AUXO_3_PREFERENCES_CHANGE "com.a3tweaks.auxo3.preferencesChanged"
// #define AUXO_3_PREFERENCES_CHANGE "com.a3tweaks.auxo3.exceptionsChanged"
#define CCNOWPLAYING_DISPATCH_QUEUE "com.kindadev.ccnowplaying.dispatch"
#define CCNOWPLAYING_CENTER_NAME @"com.kindadev.ccnowplaying.center"
#define CCNOWPLAYING_CENTER_NAME_AUXO_3 @"com.kindadev.ccnowplaying.center.auxo3"
#define SEND_MESSAGE_NAME_INFO_CHANGED @"com.kindadev.ccnowplaying.info.changed"
#define SEND_MESSAGE_NAME_AUXO_3_CHANGED @"com.kindadev.ccnowplaying.info.auxo3.changed"
#define AUXO_3_REACH_TRACK_INFO_VIEW_HEIGHT 73.0f
#define AUXO_3_NON_REACH_TRACK_INFO_VIEW_HEIGHT 61.0f
#define IS_IOS8() (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_8_0)
@interface SBUIControlCenterButton : UIButton
+ (void)initialize;
+ (id)circularButton;
+ (id)circularButtonWithGlyphImage:(id)image;
+ (id)roundRectButton;
+ (id)roundRectButtonWithGlyphImage:(id)image;
- (void)_updateSelected:(BOOL)selected highlighted:(BOOL)highlighted;
+ (id)_buttonWithBGImage:(id)bgImage1 selectedBGImage:(id)bgImage2 glyphImage:(id)glyphImage naturalHeight:(float)height;
// iOS 8 or heigher.
+ (id)_buttonWithBGImage:(id)bgImage1 glyphImage:(id)glyphImage naturalHeight:(float)height;
- (void)setIsCircleButton:(BOOL)button;
- (void)setIsRectButton:(BOOL)button;
@end
@interface SBControlCenterSectionViewController : UIViewController {
// id<SBControlCenterSectionViewControllerDelegate> _delegate;
}
// @property(readonly, assign, nonatomic) NSString* sectionIdentifier;
// @property(assign, nonatomic) id<SBControlCenterSectionViewControllerDelegate> delegate;
+ (Class)viewClass;
- (void)controlCenterDidFinishTransition;
- (void)controlCenterWillBeginTransition;
- (void)controlCenterDidDismiss;
- (void)controlCenterWillPresent;
- (void)noteSettingsDidUpdate:(id)noteSettings;
- (CGSize)contentSizeForOrientation:(int)orientation;
- (BOOL)enabledForOrientation:(int)orientation;
- (id)view;
- (void)loadView;
@end
@interface MPUNowPlayingController
@property(readonly, nonatomic) UIImage *currentNowPlayingArtwork;
@property(readonly, nonatomic) NSDictionary *currentNowPlayingInfo;
- (void)setShouldUpdateNowPlayingArtwork:(BOOL)enabled;
- (void)update;
@end
@protocol MPUSystemMediaControlsDelegate <NSObject>
@optional
- (void)systemMediaControlsViewController:(id)controller didTapOnTrackInformationView:(id)view;
- (void)systemMediaControlsViewController:(id)controller didReceiveTapOnControlType:(int)type;
@end
@interface MPUSystemMediaControlsViewController : UIViewController
// MPUNowPlayingController *_nowPlayingController;
@end
@interface SBCCMediaControlsSectionController : SBControlCenterSectionViewController <MPUSystemMediaControlsDelegate> {
// MPUSystemMediaControlsViewController* _systemMediaViewController;
}
- (void)handleMessageNamed:(NSString *)name userInfo:(NSDictionary *)userInfo;
- (void)handleTaped:(int)tapedChoice withSender:(id)sender;
- (void)dismissNotificationCenter;
@end
@interface UminoControlCenterBottomView : UIView
- (void)alphaButtonWithScrollView:(UIView *)scrollView;
- (void)handleMessageNamed:(NSString *)name userInfo:(NSDictionary *)userInfo;
- (void)handleTaped:(int)tapedChoice withSender:(id)sender;
- (void)dismissNotificationCenter;
@end
@interface UminoControlCenterBottomScrollView : UIScrollView
- (_Bool)gestureRecognizer:(id)gesture shouldReceiveTouch:(id)touch;
@end
@interface SBMediaController
+ (id)sharedInstance;
- (id)nowPlayingAlbum;
- (id)nowPlayingTitle;
- (id)nowPlayingArtist;
- (id)nowPlayingApplication;
- (id)_nowPlayingInfo;
- (BOOL)isPlaying;
@end
@interface SpringBoard : UIApplication
- (BOOL)isLocked;
- (void)requestDeviceUnlock;
- (int)activeInterfaceOrientation;
@end
@interface SBAppSwitcherController : UIViewController
@end
@interface SBUserAgent
+ (id)sharedUserAgent;
- (BOOL)deviceIsPasscodeLockedRemotely;
- (BOOL)deviceIsPasscodeLocked;
@end
@interface SBApplication
- (id)displayName;
@end
@interface SBUIController
+(id)sharedInstance;
-(id)switcherController;
@end
@interface SBControlCenterController
+ (id)sharedInstance;
- (void)dismissAnimated:(BOOL)animated;
@end
@interface SBNotificationCenterController
+ (id)sharedInstance;
- (void)dismissAnimated:(BOOL)animated;
@end
@interface UIViewController (CCNowPlaying)
- (void)setInterfaceOrientation:(int)orientation;
@end
@interface UIWindow (CCNowPlaying)
+ (id)keyWindow;
- (id)firstResponder;
@end