// The OpenStack project is provided under the Apache 2.0 license.
//
-#import "OpenStackViewController.h"
#import "ASIProgressDelegate.h"
#import <MessageUI/MFMailComposeViewController.h>
+enum {
+ StorageObjectActionOpenFile = 0,
+ StorageObjectActionMailFile = 1,
+};
+typedef NSInteger StorageObjectAction;
+
@class OpenStackAccount, Container, Folder, StorageObject, AnimatedProgressView, FolderViewController;
-@interface StorageObjectViewController : OpenStackViewController <UITableViewDelegate, UITableViewDataSource, UIDocumentInteractionControllerDelegate, ASIProgressDelegate, UIActionSheetDelegate, MFMailComposeViewControllerDelegate> {
+@interface StorageObjectViewController : UITableViewController <UIDocumentInteractionControllerDelegate, ASIProgressDelegate, UIActionSheetDelegate, MFMailComposeViewControllerDelegate> {
OpenStackAccount *account;
Container *container;
Folder *folder;
AnimatedProgressView *downloadProgressView;
BOOL fileDownloading;
UIActionSheet *cdnURLActionSheet;
- IBOutlet UITableView *tableView;
- IBOutlet UIBarButtonItem *homeButton;
FolderViewController *folderViewController;
UISwitch *objectIsPublicSwitch;
UIDocumentInteractionController *documentInteractionController;
- NSInteger actionsSection;
- NSInteger deleteSection;
- NSInteger versionsSection;
NSInteger publicLinkSection;
NSInteger permissionsSection;
+ NSInteger versionsSection;
+ NSInteger deleteSection;
NSString *oldObjectSharingString;
NSString *oldPublicURI;
NSMutableDictionary *permissions;
- NSIndexPath *actionSelectedIndexPath;
NSString *versionID;
}
@property (nonatomic, retain) Container *container;
@property (nonatomic, retain) Folder *folder;
@property (nonatomic, retain) StorageObject *object;
-@property (nonatomic, retain) IBOutlet UITableView *tableView;
@property (nonatomic, retain) FolderViewController *folderViewController;
@property (nonatomic, retain) NSString *oldPubicURI;
@property (nonatomic, retain) UIDocumentInteractionController *documentInteractionController;
-@property (nonatomic, retain) NSIndexPath *actionSelectedIndexPath;
@property (nonatomic, assign) BOOL objectIsReadOnly;
@property (nonatomic, retain) NSString *versionID;
- (void)setProgress:(float)newProgress;
-- (IBAction)homeButtonPressed:(id)sender;
- (void)reloadMetadataSection;
+- (void)downloadFileForAction:(StorageObjectAction)action;
@end