Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (64 sloc) 3.56 KB
//
// PInterfaceFacade.h
// Pods
//
// Created by Benjamin Smiley-andrews on 14/12/2016.
//
//
#ifndef PInterfaceFacade_h
#define PInterfaceFacade_h
@protocol PUser;
@protocol PThread;
@protocol PChatOptionsHandler;
@protocol PSearchViewController;
@protocol PSendBar;
@protocol BChatOptionDelegate;
@protocol PImageViewController;
@protocol PLocationViewController;
@class BChatViewController;
@class BFriendsListViewController;
@class BChatOption;
@class BTextInputView;
@protocol PInterfaceFacade <NSObject>
-(UIViewController *) privateThreadsViewController;
-(UIViewController *) publicThreadsViewController;
-(UIViewController *) contactsViewController;
-(UIViewController *) profileViewControllerWithUser: (id<PUser>) user ;
-(UIViewController *) appTabBarViewController;
-(UIViewController *) eulaViewController;
-(UINavigationController *) eulaNavigationController;
-(BFriendsListViewController *) friendsViewControllerWithUsersToExclude: (NSArray *) usersToExclude onComplete: (void(^)(NSArray * users, NSString * name)) action;
-(UINavigationController *) friendsNavigationControllerWithUsersToExclude: (NSArray *) usersToExclude onComplete: (void(^)(NSArray * users, NSString * name)) action;
-(BChatViewController *) chatViewControllerWithThread: (id<PThread>) thread;
-(NSArray *) defaultTabBarViewControllers;
-(UIView<PSendBar> *) sendBarView;
-(UIViewController *) searchViewControllerWithType: (NSString *) type excludingUsers: (NSArray *) users usersAdded: (void(^)(NSArray * users)) usersAdded;
-(UIViewController<PSearchViewController> *) searchViewControllerExcludingUsers: (NSArray *) users usersAdded: (void(^)(NSArray * users)) usersAdded;
-(void) addSearchViewController: (UIViewController<PSearchViewController> *) controller withType: (NSString *) type withName: (NSString *) name;
-(void) removeSearchViewControllerWithType: (NSString *) type;
-(void) setChatOptionsHandler: (id<PChatOptionsHandler>) handler;
-(NSArray *) tabBarViewControllers;
-(NSArray *) tabBarNavigationViewControllers;
-(NSMutableArray *) chatOptions;
-(id<PChatOptionsHandler>) chatOptionsHandlerWithDelegate: (id<BChatOptionDelegate>) delegate;
-(UIViewController *) usersViewControllerWithThread: (id<PThread>) thread parentNavigationController: (UINavigationController *) parent;
-(UINavigationController *) usersViewNavigationControllerWithThread: (id<PThread>) thread parentNavigationController: (UINavigationController *) parent;
-(void) addChatOption: (BChatOption *) option;
-(void) removeChatOption: (BChatOption *) option;
-(void) addTabBarViewController: (UIViewController *) controller atIndex: (int) index;
-(void) removeTabBarViewControllerAtIndex: (int) index;
-(NSDictionary *) additionalSearchControllerNames;
-(UIViewController *) settingsViewController;
-(UIColor *) colorForName: (NSString *) name;
-(BOOL) showLocalNotification: (id) notification;
-(void) setShowLocalNotifications: (BOOL) shouldShow;
-(UIViewController<PImageViewController> *) imageViewController;
-(UINavigationController *) imageViewNavigationController;
-(UIViewController<PLocationViewController> *) locationViewController;
-(UINavigationController *) locationViewNavigationController;
-(UIViewController *) searchIndexViewControllerWithIndexes: (NSArray *) indexes withCallback: (void(^)(NSArray *)) callback;
-(UINavigationController *) searchIndexNavigationControllerWithIndexes: (NSArray *) indexes withCallback: (void(^)(NSArray *)) callback;
-(void) registerCustomMessageWithCellClass: (Class) cellClass messageType: (NSNumber *) type;
-(NSArray *) customMessageCellTypes;
@end
#endif /* PInterfaceFacade_h */