NCUserInterfaceController.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import <Foundation/Foundation.h>
  6. #import <UIKit/UIKit.h>
  7. #import "CallViewController.h"
  8. #import "NCNotificationController.h"
  9. #import "NCNavigationController.h"
  10. #import "NCPushNotification.h"
  11. #import "RoomsTableViewController.h"
  12. @class NCSplitViewController;
  13. @class ChatViewController;
  14. typedef void (^PresentCallControllerCompletionBlock)(void);
  15. @interface NCUserInterfaceController : NSObject
  16. @property (nonatomic, strong) NCSplitViewController *mainViewController;
  17. @property (nonatomic, strong) RoomsTableViewController *roomsTableViewController;
  18. + (instancetype)sharedInstance;
  19. - (void)presentConversationsList;
  20. - (void)popToConversationsList;
  21. - (void)presentLoginViewController;
  22. - (void)presentOfflineWarningAlert;
  23. - (void)presentLoggedOutInvalidCredentialsAlert;
  24. - (void)presentChatForLocalNotification:(NSDictionary *)userInfo;
  25. - (void)presentChatForPushNotification:(NCPushNotification *)pushNotification;
  26. - (void)presentAlertForPushNotification:(NCPushNotification *)pushNotification;
  27. - (void)presentAlertViewController:(UIAlertController *)alertViewController;
  28. - (void)presentAlertIfNotPresentedAlready:(UIAlertController *)alertViewController;
  29. - (void)presentAlertWithTitle:(NSString *)title withMessage:(NSString *)message;
  30. - (void)presentChatViewController:(ChatViewController *)chatViewController;
  31. - (void)presentCallViewController:(CallViewController *)callViewController withCompletionBlock:(PresentCallControllerCompletionBlock)block;
  32. - (void)presentCallKitCallInRoom:(NSString *)token withVideoEnabled:(BOOL)video;
  33. - (void)presentChatForURL:(NSURLComponents *)urlComponents;
  34. - (void)presentLoginViewControllerForServerURL:(NSString *)serverURL withUser:(NSString *)user;
  35. - (void)presentSettingsViewController;
  36. - (void)presentShareLinkDialogForRoom:(NCRoom *)room inViewContoller:(UITableViewController *)viewController forIndexPath:(NSIndexPath *)indexPath;
  37. - (void)logOutAccountWithAccountId:(NSString *)accountId;
  38. @end