2011-10-04 18:01:35 -07:00
|
|
|
//
|
|
|
|
// AddViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 10/04/2011.
|
|
|
|
// Copyright 2011 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
|
|
|
#import "ASIHTTPRequest.h"
|
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
|
|
|
|
|
|
|
@interface AddViewController : UIViewController
|
2011-10-07 11:01:13 -07:00
|
|
|
<UITextFieldDelegate, UIPickerViewDelegate, UIPickerViewDataSource, UITableViewDelegate, UITableViewDataSource, ASIHTTPRequestDelegate> {
|
2011-10-04 18:01:35 -07:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
2011-10-06 10:27:37 -07:00
|
|
|
UITextField *inFolderInput;
|
|
|
|
UITextField *newFolderInput;
|
|
|
|
UITextField *siteAddressInput;
|
2011-10-04 18:01:35 -07:00
|
|
|
NSMutableData * jsonString;
|
|
|
|
|
2011-10-06 16:25:38 -07:00
|
|
|
UIBarButtonItem *addButton;
|
|
|
|
UIBarButtonItem *cancelButton;
|
2011-10-06 10:27:37 -07:00
|
|
|
UIPickerView *folderPicker;
|
2011-10-07 11:01:13 -07:00
|
|
|
UITableView *siteTable;
|
2011-10-06 10:27:37 -07:00
|
|
|
|
2011-10-06 16:25:38 -07:00
|
|
|
UINavigationBar *navBar;
|
2011-10-04 18:01:35 -07:00
|
|
|
UIActivityIndicatorView *activityIndicator;
|
2011-10-07 11:01:13 -07:00
|
|
|
UILabel *addingLabel;
|
2011-10-04 18:01:35 -07:00
|
|
|
UILabel *errorLabel;
|
2011-10-06 16:25:38 -07:00
|
|
|
UISegmentedControl *addTypeControl;
|
2011-10-04 18:01:35 -07:00
|
|
|
|
|
|
|
UILabel *usernameLabel;
|
|
|
|
UILabel *usernameOrEmailLabel;
|
|
|
|
UILabel *passwordLabel;
|
|
|
|
UILabel *emailLabel;
|
|
|
|
UILabel *passwordOptionalLabel;
|
|
|
|
}
|
|
|
|
|
2011-10-10 09:57:54 -07:00
|
|
|
- (void)reload;
|
|
|
|
- (IBAction)addSite;
|
|
|
|
- (IBAction)addFolder;
|
2011-10-06 16:25:38 -07:00
|
|
|
- (IBAction)selectAddTypeSignup;
|
2011-10-05 10:07:26 -07:00
|
|
|
- (IBAction)doCancelButton;
|
|
|
|
- (IBAction)doAddButton;
|
2011-10-11 10:04:15 -07:00
|
|
|
- (NSString *)extractParentFolder;
|
2011-10-04 18:01:35 -07:00
|
|
|
- (void)animateLoop;
|
2011-10-11 09:46:13 -07:00
|
|
|
- (void)hideFolderPicker;
|
2011-10-04 18:01:35 -07:00
|
|
|
|
|
|
|
@property (nonatomic, retain) IBOutlet NewsBlurAppDelegate *appDelegate;
|
2011-10-06 10:27:37 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UITextField *inFolderInput;
|
|
|
|
@property (nonatomic, retain) IBOutlet UITextField *newFolderInput;
|
|
|
|
@property (nonatomic, retain) IBOutlet UITextField *siteAddressInput;
|
2011-10-04 18:01:35 -07:00
|
|
|
|
2011-10-06 16:25:38 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem *addButton;
|
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelButton;
|
2011-10-06 10:27:37 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIPickerView *folderPicker;
|
2011-10-07 11:01:13 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UITableView *siteTable;
|
2011-10-04 18:01:35 -07:00
|
|
|
@property (nonatomic, retain) NSMutableData * jsonString;
|
2011-10-06 16:25:38 -07:00
|
|
|
|
|
|
|
@property (nonatomic, retain) IBOutlet UINavigationBar *navBar;
|
2011-10-04 18:01:35 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *activityIndicator;
|
2011-10-07 11:01:13 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *addingLabel;
|
2011-10-04 18:01:35 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *errorLabel;
|
2011-10-06 16:25:38 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UISegmentedControl *addTypeControl;
|
2011-10-04 18:01:35 -07:00
|
|
|
|
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *usernameLabel;
|
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *usernameOrEmailLabel;
|
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *passwordLabel;
|
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *emailLabel;
|
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *passwordOptionalLabel;
|
|
|
|
|
|
|
|
@end
|