2017-04-28 18:18:42 +02:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2017-05-02 17:16:34 +02:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-05-01 18:51:59 +02:00
|
|
|
@class SignalAccount;
|
2017-04-28 18:18:42 +02:00
|
|
|
|
|
|
|
@protocol SelectRecipientViewControllerDelegate <NSObject>
|
|
|
|
|
|
|
|
- (NSString *)phoneNumberSectionTitle;
|
|
|
|
- (NSString *)phoneNumberButtonText;
|
|
|
|
- (NSString *)contactsSectionTitle;
|
|
|
|
|
|
|
|
- (void)phoneNumberWasSelected:(NSString *)phoneNumber;
|
|
|
|
|
2017-05-02 16:54:07 +02:00
|
|
|
- (BOOL)canSignalAccountBeSelected:(SignalAccount *)signalAccount;
|
|
|
|
|
2017-05-01 18:51:59 +02:00
|
|
|
- (void)signalAccountWasSelected:(SignalAccount *)signalAccount;
|
2017-04-28 18:18:42 +02:00
|
|
|
|
2017-05-02 16:54:07 +02:00
|
|
|
- (nullable NSString *)accessoryMessageForSignalAccount:(SignalAccount *)signalAccount;
|
|
|
|
|
2017-04-28 18:18:42 +02:00
|
|
|
- (BOOL)shouldHideLocalNumber;
|
|
|
|
|
|
|
|
- (BOOL)shouldHideContacts;
|
|
|
|
|
|
|
|
- (BOOL)shouldValidatePhoneNumbers;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark -
|
|
|
|
|
|
|
|
@class ContactsViewHelper;
|
|
|
|
|
|
|
|
@interface SelectRecipientViewController : UIViewController
|
|
|
|
|
|
|
|
@property (nonatomic, weak) id<SelectRecipientViewControllerDelegate> delegate;
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) ContactsViewHelper *contactsViewHelper;
|
|
|
|
|
|
|
|
@end
|
2017-05-02 17:16:34 +02:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|