2 // FolderViewController.h
5 // Created by Mike Mayo on 12/15/10.
6 // The OpenStack project is provided under the Apache 2.0 license.
9 #import "OpenStackViewController.h"
11 @class OpenStackAccount, Container, Folder, StorageObject, ActivityIndicatorView, ContainersViewController, FolderDetailViewController, StorageObjectViewController;
13 @interface FolderViewController : OpenStackViewController <UITableViewDelegate, UITableViewDataSource, UISearchDisplayDelegate, UIActionSheetDelegate> {
14 OpenStackAccount *account;
18 ActivityIndicatorView *activityIndicatorView;
22 ContainersViewController *containersViewController;
23 FolderViewController *parentFolderViewController;
24 NSIndexPath *selectedContainerIndexPath;
25 NSIndexPath *selectedFolderIndexPath;
28 BOOL folderHasBeenRemoved;
29 BOOL refreshWhenAppeared;
31 IBOutlet UITableView *tableView;
32 IBOutlet UIBarButtonItem *homeButton;
33 IBOutlet UIBarButtonItem *refreshButton;
34 IBOutlet UISearchBar *searchBar;
35 IBOutlet UISearchDisplayController *searchDisplayController;
36 NSString *searchFilter;
38 FolderDetailViewController *folderDetailVC;
39 StorageObjectViewController *selectedObjectViewController;
42 @property (nonatomic, retain) OpenStackAccount *account;
43 @property (nonatomic, retain) Container *container;
44 @property (nonatomic, retain) Folder *folder;
45 @property (nonatomic, retain) NSString *name;
46 @property (nonatomic, retain) ContainersViewController *containersViewController;
47 @property (nonatomic, retain) NSIndexPath *selectedContainerIndexPath;
48 @property (nonatomic, retain) FolderViewController *parentFolderViewController;
49 @property (nonatomic, retain) NSIndexPath *selectedFolderIndexPath;
50 @property (nonatomic, assign) BOOL contentsLoaded;
51 @property (nonatomic, assign) BOOL needsRefreshing;
52 @property (nonatomic, assign) BOOL folderHasBeenRemoved;
53 @property (nonatomic, assign) BOOL refreshWhenAppeared;
54 @property (nonatomic, retain) IBOutlet UITableView *tableView;
55 @property (nonatomic, retain) IBOutlet UIBarButtonItem *refreshButton;
56 @property (nonatomic, retain) IBOutlet UISearchBar *searchBar;
57 @property (nonatomic, retain) IBOutlet UISearchDisplayController *searchDisplayController;
58 @property (nonatomic, retain) NSString *searchFilter;
59 @property (nonatomic, assign) FolderDetailViewController *folderDetailVC;
60 @property (nonatomic, assign) StorageObjectViewController *selectedObjectViewController;
62 - (IBAction)homeButtonPressed:(id)sender;
63 - (IBAction)refreshButtonPressed:(id)sender;
65 - (void)setDetailViewController;
66 - (void)deleteAnimatedObject:(StorageObject *)object;