summaryrefslogtreecommitdiffstats
path: root/QuickActions/QuickActionsPrefs/QASAppSelectorController.h
blob: f439fcb86f261107ebeac5ffefe6dcefb45d0023 (plain) (blame)
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
#import <UIKit/UIKit.h>
#import "PSDetailController.h"
#import "LSApplicationProxy+AltList.h"

@interface UIImage (Private)
+(instancetype)_applicationIconImageForBundleIdentifier:(NSString*)bundleIdentifier format:(int)format scale:(CGFloat)scale;
-(UIImage *)_applicationIconImageForFormat:(int)format precomposed:(BOOL)precomposed scale:(CGFloat)scale;
@end

typedef enum {
    ENABLED = 0,
    SYSTEM,
    APPS
} ItemType;

@interface QASAppSelectorController : PSDetailController<UITableViewDataSource, UITableViewDelegate,
UISearchResultsUpdating, UISearchBarDelegate> {
    UISearchController *_searchController;
    NSString *_searchKey;
}
@property (nonatomic) UITableView *tableView;
@property (nonatomic) NSMutableArray<NSString *> *enabled;
@property (nonatomic) NSMutableArray<LSApplicationProxy *>*disabled;
@property (nonatomic) NSArray<NSString *> *systemDisabled;
@property (nonatomic) NSString *key;
@property (nonatomic) NSString *defaults;
-(NSArray<LSApplicationProxy *> *)filteredDisabled;
@end