/* * Copyright (c) 2010-2020 Belledonne Communications SARL. * * This file is part of linphone-iphone * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #import #import #import "LinphoneManager.h" #import "TPMultiLayoutViewController.h" #import "SideMenuTableView.h" @interface UICompositeViewDescription : NSObject { } @property(strong) NSString *name; @property(strong) NSString *statusBar; @property(strong) NSString *tabBar; @property(strong) NSString *sideMenu; @property(strong) NSString *otherFragment; @property(assign) BOOL statusBarEnabled; @property(assign) BOOL tabBarEnabled; @property(assign) BOOL sideMenuEnabled; @property(assign) BOOL fullscreen; @property(assign) BOOL isLeftFragment; @property(assign) BOOL darkBackground; @property(assign) BOOL landscapeMode; @property(assign) BOOL portraitMode; - (id)copy; - (BOOL)equal:(UICompositeViewDescription *)description; - (id)init:(Class)name statusBar:(Class)statusBar tabBar:(Class)tabBar sideMenu:(Class)sideMenu fullscreen:(BOOL)fullscreen isLeftFragment:(BOOL)isLeftFragment fragmentWith:(Class)otherFragment; @end @protocol UICompositeViewDelegate + (UICompositeViewDescription *)compositeViewDescription; - (UICompositeViewDescription *)compositeViewDescription; @end @interface UICompositeView : TPMultiLayoutViewController { @private NSMutableDictionary *viewControllerCache; UICompositeViewDescription *currentViewDescription; UIInterfaceOrientation currentOrientation; } @property(strong) CATransition *viewTransition; @property(nonatomic, strong) IBOutlet UIView *statusBarView; @property(nonatomic, strong) IBOutlet UIView *mainView; @property(nonatomic, strong) IBOutlet UIView *detailsView; @property(nonatomic, strong) IBOutlet UIView *tabBarView; @property(strong, nonatomic) IBOutlet UIView *sideMenuView; - (void)changeView:(UICompositeViewDescription *)description; - (void)setFullscreen:(BOOL)enabled; - (void)hideStatusBar:(BOOL)hidden; - (void)hideTabBar:(BOOL)hidden; - (void)hideSideMenu:(BOOL)hidden; - (BOOL)currentViewSupportsLandscape; - (UIViewController *)getCachedController:(NSString *)name; - (UIViewController *)getCurrentViewController; - (UIInterfaceOrientation)currentOrientation; - (void)clearCache:(NSArray *)exclude; - (IBAction)onRightSwipe:(id)sender; @end