FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
BlockAlertView.h
1//
2// BlockAlertView.h
3//
4//
5
6#import <UIKit/UIKit.h>
7
8@interface BlockAlertView : NSObject
9{
10 @protected
11 UIView *_view;
12 NSMutableArray *_blocks;
13 CGFloat _height;
14 NSString *_title;
15 NSString *_message;
16 BOOL _shown;
17 BOOL _cancelBounce;
18}
19
20+ (BlockAlertView *)alertWithTitle:(NSString *)title message:(NSString *)message;
21
22+ (void)showInfoAlertWithTitle:(NSString *)title message:(NSString *)message;
23+ (void)showErrorAlert:(NSError *)error;
24
25- (id)initWithTitle:(NSString *)title message:(NSString *)message;
26
27- (void)setDestructiveButtonWithTitle:(NSString *)title block:(void (^)())block;
28- (void)setCancelButtonWithTitle:(NSString *)title block:(void (^)())block;
29- (void)addButtonWithTitle:(NSString *)title block:(void (^)())block;
30
31- (void)addComponents:(CGRect)frame;
32
33- (void)show;
34- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated;
35
36- (void)setupDisplay;
37
38@property(nonatomic, retain) UIImage *backgroundImage;
39@property(nonatomic, readonly) UIView *view;
40@property(nonatomic, readwrite) BOOL vignetteBackground;
41
42@end