-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.h
65 lines (53 loc) · 2.82 KB
/
Settings.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
#import "ChannelManager.h"
#import "VideoManager.h"
#import "WordManager.h"
#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
#import <YouTubeHeader/YTAlertView.h>
#import <YouTubeHeader/YTAppSettingsSectionItemActionController.h>
#import <YouTubeHeader/YTHotConfig.h>
#import <YouTubeHeader/YTIIcon.h>
#import <YouTubeHeader/YTSearchableSettingsViewController.h>
#import <YouTubeHeader/YTSettingsGroupData.h>
#import <YouTubeHeader/YTSettingsPickerViewController.h>
#import <YouTubeHeader/YTSettingsSectionItem.h>
#import <YouTubeHeader/YTSettingsSectionItemManager.h>
#import <YouTubeHeader/YTSettingsViewController.h>
#import <YouTubeHeader/YTUIUtils.h>
#import <rootless.h>
#import <version.h>
NS_ASSUME_NONNULL_BEGIN
#define SECTION_HEADER(s) \
[sectionItems addObject:[objc_getClass("YTSettingsSectionItem") \
itemWithTitle:@"\t" \
titleDescription:s \
accessibilityIdentifier:nil \
detailTextBlock:nil \
selectBlock:^BOOL(YTSettingsCell *cell, NSUInteger sectionItemIndex) { \
return NO; \
}]]
static const NSInteger GonerinoSection = 2002;
#define TWEAK_VERSION PACKAGE_VERSION
static BOOL isImportOperation = NO;
@interface YTToastResponderEvent : NSObject
+ (instancetype)eventWithMessage:(NSString *)message firstResponder:(id)responder;
- (void)send;
@end
@interface YTNavigationController : UINavigationController
@end
@interface YTSettingsViewController ()
@property(nonatomic, strong, readonly, nullable) YTNavigationController *navigationController;
@end
@interface YTSettingsViewController (Gonerino)
- (void)setSectionItems:(nullable NSArray *)items
forCategory:(NSInteger)category
title:(nullable NSString *)title
titleDescription:(nullable NSString *)titleDescription
headerHidden:(BOOL)headerHidden;
@end
@interface YTSettingsSectionItemManager (Gonerino)<UIDocumentPickerDelegate>
- (void)updateGonerinoSectionWithEntry:(nullable id)entry;
- (void)updateChannelManagementSection:(nonnull YTSettingsViewController *)viewController;
- (nullable UITableView *)findTableViewInView:(nonnull UIView *)view;
- (void)reloadGonerinoSection;
@end
NS_ASSUME_NONNULL_END