/** * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: GPL-3.0-or-later */ #import @interface DetailedOption : NSObject @property (nonatomic, copy) NSString *identifier; @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString *subtitle; @property (nonatomic, copy) UIImage *image; @property (nonatomic, assign) BOOL selected; @end typedef NS_ENUM(NSInteger, DetailedOptionsSelectorType) { DetailedOptionsSelectorTypeDefault = 0, DetailedOptionsSelectorTypeAccounts }; @class DetailedOptionsSelectorTableViewController; @protocol DetailedOptionsSelectorTableViewControllerDelegate - (void)detailedOptionsSelector:(DetailedOptionsSelectorTableViewController *)viewController didSelectOptionWithIdentifier:(DetailedOption *)option; - (void)detailedOptionsSelectorWasCancelled:(DetailedOptionsSelectorTableViewController *)viewController; @end @interface DetailedOptionsSelectorTableViewController : UITableViewController @property (nonatomic, weak) id delegate; @property (nonatomic, strong) NSArray *options; @property (nonatomic, strong) NSString *senderId; @property (nonatomic, assign) DetailedOptionsSelectorType type; - (instancetype)initWithOptions:(NSArray *)options forSenderIdentifier:(NSString *)senderId andStyle:(UITableViewStyle)style; - (instancetype)initWithAccounts:(NSArray *)accounts andStyle:(UITableViewStyle)style; @end