forked from tomcool420/SMFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMFControllerPasscodeController.h
39 lines (37 loc) · 1.48 KB
/
SMFControllerPasscodeController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// SMFControllerPasscodeController.h
// SMFramework
//
// Created by Thomas Cool on 2/20/11.
// Copyright 2011 Thomas Cool. All rights reserved.
//
#import "SMFPasscodeController.h"
/**
*Special subclass of SMFPasscodeController made to block a controller
*
*It is made for ease of use. It only has one class or instance method and that is the initialization
*
*If the user returns the wrong passcode, nothing happens, the controller is simply popped
*/
@interface SMFControllerPasscodeController : SMFPasscodeController {
BRController *blockedController;
int _passcode;
}
/**
*Creating the passcode controller
*@param controller the controller to block (should not be pushed to stack but should have been autoreleased)
*@param passcode the passcode to unlock the controller
*@return the controller to be pushed to the BRApplicationStack
*@see initForController:withPasscode:
*/
+ (SMFControllerPasscodeController *)controllerPasscodeControllerForController:(BRController *)controller withPasscode:(int)passcode;
/**
*Creating the passcode controller
*@param controller the controller to block (should not be pushed to stack but should have been autoreleased)
*@param passcode the passcode to unlock the controller
*@return the controller to be pushed to the BRApplicationStack
*@see controllerPasscodeControllerForController:withPasscode:
*/
- (id)initForController:(BRController *)controller withPasscode:(int)passcode;
@property (retain)BRController *blockedController;
@end