mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 07:30:40 +00:00
38 lines
978 B
Objective-C
38 lines
978 B
Objective-C
//
|
|
// BITAuthenticationViewController.h
|
|
// HockeySDK
|
|
//
|
|
// Created by Stephan Diederich on 08.08.13.
|
|
//
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
@protocol BITAuthenticationViewControllerDelegate;
|
|
@class BITAuthenticator;
|
|
|
|
@interface BITAuthenticationViewController : UITableViewController
|
|
|
|
/**
|
|
* can be set to YES to also require the users password
|
|
*
|
|
* defaults to NO
|
|
*/
|
|
@property (nonatomic, assign) BOOL requirePassword;
|
|
|
|
/**
|
|
* TODO: instead of passing the whole authenticator, we actually only need
|
|
* something to create and enqueue BITHTTPOperations
|
|
*/
|
|
@property (nonatomic, weak) BITAuthenticator *authenticator;
|
|
|
|
@property (nonatomic, weak) id<BITAuthenticationViewControllerDelegate> delegate;
|
|
|
|
@end
|
|
|
|
@protocol BITAuthenticationViewControllerDelegate<NSObject>
|
|
|
|
- (void) authenticationViewControllerDidCancel:(UIViewController*) viewController;
|
|
- (void) authenticationViewController:(UIViewController*) viewController authenticatedWithToken:(NSString*) token;
|
|
|
|
@end
|