// // ActiveChatsViewController.h // Monal // // Created by Anurodh Pokharel on 6/14/13. // // #import #import "MLConstants.h" #import "MLContact.h" #import "MLCall.h" #import NS_ASSUME_NONNULL_BEGIN @class UIHostingControllerWorkaround; @class chatViewController; @class MLCall; @interface SizeClassWrapper: NSObject @property (atomic) UIUserInterfaceSizeClass horizontal; @end @interface ActiveChatsViewController : UITableViewController @property (nonatomic, strong) UITableView* chatListTable; @property (nonatomic, weak) IBOutlet UIBarButtonItem* settingsButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem* spinnerButton; @property (nonatomic, weak) IBOutlet UIBarButtonItem* composeButton; @property (nonatomic, strong) UIActivityIndicatorView* spinner; @property (atomic, strong) SizeClassWrapper* sizeClass; @property (atomic, readonly) chatViewController* _Nullable currentChatView; -(void) showCallContactNotFoundAlert:(NSString*) jid; -(void) callContact:(MLContact*) contact withUIKitSender:(_Nullable id) sender; -(void) callContact:(MLContact*) contact withCallType:(MLCallType) callType; -(void) presentAccountPickerForContacts:(NSArray*) contacts andCallType:(MLCallType) callType; -(void) presentCall:(MLCall*) call; -(void) presentChatWithContact:(MLContact* _Nullable) contact; -(void) presentChatWithContact:(MLContact* _Nullable) contact andCompletion:(monal_id_block_t _Nullable) completion; -(void) presentSplitPlaceholder; -(void) refreshDisplay; -(void) showContacts; -(void) deleteConversation; -(void) showSettings; -(void) showGeneralSettings; -(void) prependGeneralSettings; -(void) showNotificationSettings; -(void) showDetails; -(void) showRegisterWithUsername:(NSString*) username onHost:(NSString*) host withToken:(NSString* _Nullable) token usingCompletion:(monal_id_block_t _Nullable) callback; -(void) showAddContactWithJid:(NSString*) jid preauthToken:(NSString* _Nullable) preauthToken prefillAccount:(xmpp* _Nullable) account andOmemoFingerprints:(NSDictionary* _Nullable) fingerprints; -(void) showAddContact; -(void) sheetDismissed; -(void) segueToIntroScreensIfNeeded; -(void) resetViewQueue; -(void) dismissCompleteViewChainWithAnimation:(BOOL) animation andCompletion:(monal_void_block_t _Nullable) completion; -(void) updateSizeClass; @end NS_ASSUME_NONNULL_END