Skip to content
This repository
tree: 4430b9c381
Fetching contributors…

Cannot retrieve contributors at this time

file 58 lines (48 sloc) 2.089 kb
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
//
// RootViewController.h
// AppSales
//
// Created by Ole Zorn on 30.06.11.
// Copyright 2011 omz:software. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FieldEditorViewController.h"
#import "KKPasscodeSettingsViewController.h"

#define kAccountUsername @"username"
#define kAccountPassword @"password"
#define kAccountVendorID @"vendorID"
#define ASViewSettingsDidChangeNotification @"ASViewSettingsDidChangeNotification"

@class ASAccount;
@protocol AccountsViewControllerDelegate;

@interface AccountsViewController : UITableViewController <NSFetchedResultsControllerDelegate, UIAlertViewDelegate, FieldEditorViewControllerDelegate, KKPasscodeSettingsViewControllerDelegate, UIDocumentInteractionControllerDelegate>
{
id<AccountsViewControllerDelegate> delegate;
NSArray *accounts;
NSManagedObjectContext *managedObjectContext;
ASAccount *selectedAccount;
UIBarButtonItem *refreshButtonItem;
FieldSpecifier *passcodeLockField;
FieldEditorViewController *settingsViewController;
UINavigationController *settingsNavController;
NSString *exportedReportsZipPath;
UIDocumentInteractionController *documentInteractionController;
}

@property (nonatomic, assign) id<AccountsViewControllerDelegate> delegate;
@property (nonatomic, retain) UIBarButtonItem *refreshButtonItem;
@property (nonatomic, retain) NSArray *accounts;
@property (nonatomic, retain) ASAccount *selectedAccount;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) NSString *exportedReportsZipPath;
@property (nonatomic, retain) UIDocumentInteractionController *documentInteractionController;

- (void)reloadAccounts;
- (void)downloadReports:(id)sender;
- (void)doExport;
- (NSString *)folderNameForExportingReportsOfAccount:(ASAccount *)account;
- (void)showSettings;
- (void)addNewAccount;
- (void)editAccount:(ASAccount *)account;
- (void)saveContext;

@end

@protocol AccountsViewControllerDelegate <NSObject>

- (void)accountsViewController:(AccountsViewController *)viewController didSelectAccount:(ASAccount *)account;

@end
Something went wrong with that request. Please try again.