forked from rpetrich/AppList
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathALApplicationTableDataSource.h
More file actions
47 lines (37 loc) · 1.62 KB
/
Copy pathALApplicationTableDataSource.h
File metadata and controls
47 lines (37 loc) · 1.62 KB
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
#import <UIKit/UIKit.h>
#import <libkern/OSAtomic.h>
@class ALApplicationList;
@interface ALApplicationTableDataSource : NSObject <UITableViewDataSource> {
@private
ALApplicationList *appList;
NSMutableArray *_sectionDescriptors;
NSMutableArray *_displayIdentifiers;
NSMutableArray *_displayNames;
NSMutableArray *_iconsToLoad;
OSSpinLock spinLock;
UITableView *_tableView;
UIImage *_defaultImage;
NSBundle *_localizationBundle;
}
+ (NSArray *)standardSectionDescriptors;
+ (id)dataSource;
- (id)init;
@property (nonatomic, copy) NSArray *sectionDescriptors;
@property (nonatomic, retain) UITableView *tableView;
@property (nonatomic, retain) NSBundle *localizationBundle;
- (id)cellDescriptorForIndexPath:(NSIndexPath *)indexPath; // NSDictionary if custom cell; NSString if app cell
- (NSString *)displayIdentifierForIndexPath:(NSIndexPath *)indexPath;
- (void)insertSectionDescriptor:(NSDictionary *)sectionDescriptor atIndex:(NSInteger)index;
- (void)removeSectionDescriptorAtIndex:(NSInteger)index;
- (void)removeSectionDescriptorsAtIndexes:(NSIndexSet *)indexSet;
@end
extern const NSString *ALSectionDescriptorTitleKey;
extern const NSString *ALSectionDescriptorFooterTitleKey;
extern const NSString *ALSectionDescriptorPredicateKey;
extern const NSString *ALSectionDescriptorCellClassNameKey;
extern const NSString *ALSectionDescriptorIconSizeKey;
extern const NSString *ALSectionDescriptorSuppressHiddenAppsKey;
extern const NSString *ALSectionDescriptorVisibilityPredicateKey;
extern const NSString *ALItemDescriptorTextKey;
extern const NSString *ALItemDescriptorDetailTextKey;
extern const NSString *ALItemDescriptorImageKey;