2014-10-08 12:14:12 +00:00
|
|
|
/*
|
2015-04-14 08:55:18 +00:00
|
|
|
Copyright 2015 OpenMarket Ltd
|
2017-03-01 10:43:08 +00:00
|
|
|
Copyright 2017 Vector Creations Ltd
|
2020-09-15 14:48:35 +00:00
|
|
|
Copyright 2020 New Vector Ltd
|
2014-10-08 12:14:12 +00:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2015-04-14 08:55:18 +00:00
|
|
|
#import <MatrixKit/MatrixKit.h>
|
2014-10-08 12:14:12 +00:00
|
|
|
|
2020-09-15 14:48:35 +00:00
|
|
|
@protocol AuthenticationViewControllerDelegate;
|
|
|
|
|
|
|
|
|
2015-04-30 14:19:12 +00:00
|
|
|
@interface AuthenticationViewController : MXKAuthenticationViewController <MXKAuthenticationViewControllerDelegate>
|
2014-10-08 12:14:12 +00:00
|
|
|
|
2020-09-15 14:48:35 +00:00
|
|
|
// MXKAuthenticationViewController has already a `delegate` member
|
|
|
|
@property (nonatomic, weak) id<AuthenticationViewControllerDelegate> authVCDelegate;
|
|
|
|
|
2020-04-22 16:26:49 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIView *navigationBackView;
|
2017-07-21 09:28:17 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UINavigationBar *navigationBar;
|
2019-02-18 11:53:13 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIView *navigationBarSeparatorView;
|
2017-07-21 09:28:17 +00:00
|
|
|
|
2016-01-27 17:23:56 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UINavigationItem *mainNavigationItem;
|
2016-01-27 17:17:43 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIBarButtonItem *rightBarButtonItem;
|
2016-01-27 11:40:26 +00:00
|
|
|
|
2016-04-01 14:31:13 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIView *optionsContainer;
|
|
|
|
|
2017-03-01 10:43:08 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *skipButton;
|
2016-01-27 17:17:43 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *forgotPasswordButton;
|
2016-01-27 11:40:26 +00:00
|
|
|
|
2016-06-02 12:33:21 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *submitButtonMinLeadingConstraint;
|
|
|
|
|
2016-01-27 11:40:26 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIView *serverOptionsContainer;
|
2017-03-01 10:43:08 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *customServersTickButton;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *customServersContainer;
|
2016-01-27 11:40:26 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIView *homeServerContainer;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *identityServerContainer;
|
|
|
|
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *homeServerSeparator;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *identityServerSeparator;
|
|
|
|
|
2019-07-23 12:45:51 +00:00
|
|
|
@property (weak, nonatomic) IBOutlet UIView *softLogoutClearDataContainer;
|
|
|
|
@property (weak, nonatomic) IBOutlet UILabel *softLogoutClearDataLabel;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *softLogoutClearDataButton;
|
|
|
|
|
2019-09-10 09:51:49 +00:00
|
|
|
- (void)showCustomHomeserver:(NSString*)homeserver andIdentityServer:(NSString*)identityServer;
|
|
|
|
|
2014-10-08 12:14:12 +00:00
|
|
|
@end
|
|
|
|
|
2020-09-15 14:48:35 +00:00
|
|
|
|
|
|
|
@protocol AuthenticationViewControllerDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)authenticationViewControllerDidDismiss:(AuthenticationViewController *)authenticationViewController;
|
|
|
|
|
|
|
|
@end;
|