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-06 10:27:37 -07:00
|
|
|
<UITextFieldDelegate, UIPickerViewDelegate, UIPickerViewDataSource, 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 10:27:37 -07:00
|
|
|
UIPickerView *folderPicker;
|
|
|
|
|
2011-10-04 18:01:35 -07:00
|
|
|
UIActivityIndicatorView *activityIndicator;
|
|
|
|
UILabel *authenticatingLabel;
|
|
|
|
UILabel *errorLabel;
|
|
|
|
UISegmentedControl *loginControl;
|
|
|
|
|
|
|
|
UILabel *usernameLabel;
|
|
|
|
UILabel *usernameOrEmailLabel;
|
|
|
|
UILabel *passwordLabel;
|
|
|
|
UILabel *emailLabel;
|
|
|
|
UILabel *passwordOptionalLabel;
|
|
|
|
}
|
|
|
|
|
2011-10-06 10:27:37 -07:00
|
|
|
- (void)addSite;
|
|
|
|
- (void)addFolder;
|
2011-10-04 18:01:35 -07:00
|
|
|
- (IBAction)selectLoginSignup;
|
2011-10-05 10:07:26 -07:00
|
|
|
- (IBAction)doCancelButton;
|
|
|
|
- (IBAction)doAddButton;
|
2011-10-04 18:01:35 -07:00
|
|
|
- (void)animateLoop;
|
|
|
|
|
|
|
|
@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 10:27:37 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UIPickerView *folderPicker;
|
2011-10-04 18:01:35 -07:00
|
|
|
@property (nonatomic, retain) NSMutableData * jsonString;
|
|
|
|
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *activityIndicator;
|
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *authenticatingLabel;
|
|
|
|
@property (nonatomic, retain) IBOutlet UILabel *errorLabel;
|
|
|
|
@property (nonatomic, retain) IBOutlet UISegmentedControl *loginControl;
|
|
|
|
|
|
|
|
@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
|