another.im-ios/Monal/Classes/ActiveChatsViewController.h

65 lines
2.4 KiB
C
Raw Normal View History

2024-11-18 14:53:52 +00:00
//
// ActiveChatsViewController.h
// Monal
//
// Created by Anurodh Pokharel on 6/14/13.
//
//
#import <UIKit/UIKit.h>
#import "MLConstants.h"
#import "MLContact.h"
#import "MLCall.h"
#import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>
NS_ASSUME_NONNULL_BEGIN
@class UIHostingControllerWorkaround;
@class chatViewController;
@class MLCall;
@interface SizeClassWrapper: NSObject
@property (atomic) UIUserInterfaceSizeClass horizontal;
@end
@interface ActiveChatsViewController : UITableViewController <DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
@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<MLContact*>*) 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