-
Notifications
You must be signed in to change notification settings - Fork 5
/
FolderAlbums.h
208 lines (169 loc) · 5.69 KB
/
FolderAlbums.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/**
FolderAlbums.h
FoldMusic
version 1.2.0, July 15th, 2012
Copyright (C) 2012 theiostream
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
theiostream
**/
#ifndef kCFCoreFoundationVersionNumber_iOS_6_0
#define kCFCoreFoundationVersionNumber_iOS_6_0 793.00
#endif
#import <MediaPlayer/MediaPlayer.h>
#import <AppSupport/CPDistributedMessagingCenter.h>
#import "FACalloutView.h"
typedef struct {
int direction;
CGRect rect;
} SBNotchInfo;
typedef struct {
UIImage *image;
} MPMediaItemArtworkInternal;
@interface AVAudioSession : NSObject
+ (id)sharedInstance;
- (BOOL)isOtherAudioPlaying;
@end
@interface SBApplication : NSObject
@end
@interface SBApplicationController : NSObject
+ (id)sharedInstance;
- (SBApplication *)applicationWithDisplayIdentifier:(NSString *)displayIdentifier;
@end
@interface SBMediaController : NSObject
+ (BOOL)applicationCanBeConsideredNowPlaying:(SBApplication *)playing;
- (BOOL)isPlaying;
@end
@interface SBFolderTitleLabel : UILabel
@end
@interface ISIconSupport : NSObject
+ (id)sharedInstance;
- (BOOL)addExtension:(NSString *)extension;
@end
@interface SBFolder : NSObject
- (Class)listModelClass;
- (NSString *)displayName;
- (void)setDisplayName:(NSString *)displayName;
@end
@interface FAFolder : SBFolder
- (MPMediaItemCollection *)mediaCollection;
- (void)setMediaCollection:(MPMediaItemCollection *)mediaCollection;
- (NSString *)keyName;
- (void)setKeyName:(NSString *)key;
@end
@interface SBFolderBackgroundView : UIView
+ (CGFloat)cornerRadiusToInsetContent;
@end
@interface SBFolderView : UIView
- (NSArray *)iconListViews;
@end
@interface FACommonFolderView : SBFolderView <UITableViewDelegate, UITableViewDataSource>
- (NSArray *)itemKeys;
- (void)rotateToOrientation:(int)orientation;
- (FAFolder *)folder;
- (void)initializeProgTimer;
- (void)initializeControlViewWithSuperview:(UIView *)superview haveExtraView:(BOOL)extra;
- (Class)detailSliderClass;
@end
@interface FAFolderView : FACommonFolderView <FACalloutViewDelegate>
- (UILabel *)groupLabel;
@end
@interface FAFloatyFolderView : FACommonFolderView <UITableViewDelegate, UITableViewDataSource>
- (void)setupArtistLabel;
- (void)setupFolderAlbumsInView:(UIView *)view;
- (void)createFolderAlbumsInView:(UIView *)view;
@end
@interface SBIcon : NSObject
- (id)delegate;
- (void)setDelegate:(id)delegate;
@end
@interface SBFolderIcon : SBIcon
- (SBFolderIcon *)initWithFolder:(SBFolder *)folder;
- (SBFolder *)folder;
- (NSString *)displayName;
- (void)updateLabel;
@end
@interface SBIconView : UIView
- (void)setShowsCloseBox:(BOOL)box;
@end
@interface SBFolderIconView : SBIconView
- (BOOL)canReceiveGrabbedIcon:(id)icon;
- (SBFolder *)folder;
- (SBIcon *)icon;
@end
@interface SBIconViewMap
+ (id)homescreenMap;
- (SBIconView *)mappedIconViewForIcon:(SBIcon *)icon;
@end
@interface SBIconListModel : NSObject
+ (NSUInteger)maxIcons;
- (void)addAlbumFolderForTitle:(NSString *)title plusKeyName:(NSString *)keyName andMediaCollection:(MPMediaItemCollection *)query atIndex:(NSUInteger)index insert:(BOOL)force;
- (NSArray *)icons;
- (void)addIcon:(SBIcon *)icon;
- (void)insertIcon:(SBIcon *)icon atIndex:(NSUInteger *)index;
- (BOOL)isFull;
- (NSUInteger)index;
- (NSUInteger)firstFreeSlotIndex;
- (NSUInteger)indexForIcon:(SBIcon *)icon;
@end
@interface SBIconListView : UIView
- (SBIconListModel *)model;
- (void)insertIcon:(SBIcon *)icon atIndex:(NSUInteger)index moveNow:(BOOL)moveNow;
@end
@interface SBRootFolderController : NSObject
- (SBFolderView *)contentView;
@end
@interface SBIconController : NSObject
+ (SBIconController *)sharedInstance;
- (void)addNewAlbumIconWithUnusedMessageName:(NSString *)messageName userInfo:(NSDictionary *)userInfo;
- (void)commitAlbumFolders;
- (SBIconListView *)currentRootIconList;
- (SBIconListView *)rootIconListAtIndex:(NSUInteger)index;
- (SBIconListModel *)firstAvailableModel;
- (NSArray *)rootIconLists;
- (void)updateCurrentIconListIndexAndVisibility;
- (void)scrollToIconListAtIndex:(int)index animate:(BOOL)animate;
- (id)addEmptyListViewForFolder:(id)folder;
- (SBRootFolderController *)_rootFolderController;
@end
@interface SBIconModel : NSObject
+ (SBIconModel *)sharedInstance;
- (void)saveIconState;
- (void)saveAlbumFolders;
- (void)noteIconStateChangedExternally;
- (void)layout;
- (void)relayout;
- (void)setVisibilityOfIconsWithVisibleTags:(NSSet *)arg1 hiddenTags:(NSSet *)arg2;
@end
@interface MPDetailSlider : UISlider
+ (CGFloat)defaultHeight;
- (id)initWithFrame:(CGRect)frame style:(int)style;
- (void)setAllowsDetailScrubbing:(BOOL)allows;
- (void)setDuration:(NSTimeInterval)duration;
- (void)setDelegate:(id)delegate;
@end
@interface SBIconGridImage : UIImage
@end
@interface UIApplication (FASpringBoard)
- (void)launchMusicPlayerSuspended;
@end
@interface MPMusicPlayerController (FAMusicPlayerControllerPrivate)
- (MPMediaQuery *)queueAsQuery;
@end
@interface FAFolderIcon : SBFolderIcon
@end
@interface SBFolderIconImageView : UIImageView
- (SBFolderIcon *)_folderIcon;
@end