1ac6cd24bbb585a6d9b05a9bc66e9e5ba8efc53e
[pithos-ios] / Classes / UIViewController+Conveniences.h
1 //
2 //  UIViewController+Conveniences.h
3 //
4 //  Created by Mike Mayo on 7/21/10.
5 //
6
7 #import <Foundation/Foundation.h>
8
9 @class OpenStackRequest;
10
11 @interface UIViewController (Conveniences) <UIAlertViewDelegate>
12
13 - (void)alert:(NSString *)title message:(NSString *)message;
14 - (void)alert:(NSString *)message request:(OpenStackRequest *)request;
15 - (void)failOnBadConnection;
16
17 // presents a modal view controller inside of a UINavigationController
18 // it maintains the central navigation bar of the build
19 - (UINavigationController *)navigationControllerWithRootViewController:(UIViewController *)viewController;
20 - (void)presentModalViewControllerWithNavigation:(UIViewController *)viewController animated:(BOOL)animated;
21 - (void)presentModalViewControllerWithNavigation:(UIViewController *)viewController;
22 - (void)presentPrimaryViewController:(UIViewController *)viewController animated:(BOOL)animated;
23 - (void)presentPrimaryViewController:(UIViewController *)viewController;
24 - (void)addCancelButton;
25
26 // this requires - (void)saveButtonPressed:(id)sender to be defined
27 - (void)addSaveButton;
28
29 // this requires - (void)addButtonPressed:(id)sender to be defined
30 - (void)addAddButton;
31
32 // this requires - (void)doneButtonPressed:(id)sender to be defined
33 - (void)addDoneButton;
34
35 // this requires - (void)nextButtonPressed:(id)sender to be defined
36 - (void)addNextButton;
37
38
39 - (UITableViewCell *)tableView:(UITableView *)tableView emptyCellWithImage:(UIImage *)image title:(NSString *)title subtitle:(NSString *)subtitle;
40 - (UITableViewCell *)tableView:(UITableView *)tableView emptyCellWithImage:(UIImage *)image title:(NSString *)title subtitle:(NSString *)subtitle deleteButtonTitle:(NSString *)deleteButtonTitle deleteButtonSelector:(SEL)deleteButtonSelector;
41
42 @end