2012-07-22 14:23:50 -07:00
|
|
|
//
|
|
|
|
// FTUXAddFriendsViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Roy Yang on 7/22/12.
|
|
|
|
// Copyright (c) 2012 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
|
|
|
|
2012-08-12 16:50:34 -07:00
|
|
|
@class ASIHTTPRequest;
|
|
|
|
|
|
|
|
@interface FirstTimeUserAddFriendsViewController : UIViewController <ASIHTTPRequestDelegate, UIWebViewDelegate> {
|
2012-07-22 14:23:50 -07:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *nextButton;
|
2012-08-10 21:10:32 -07:00
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *facebookButton;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIButton *twitterButton;
|
2012-08-11 16:43:53 -07:00
|
|
|
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *facebookActivityIndicator;
|
|
|
|
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *twitterActivityIndicator;
|
2012-08-11 18:03:28 -07:00
|
|
|
@property (weak, nonatomic) IBOutlet UILabel *friendsLabel;
|
2012-07-22 14:23:50 -07:00
|
|
|
|
|
|
|
- (IBAction)tapNextButton;
|
2012-08-10 21:10:32 -07:00
|
|
|
- (IBAction)tapTwitterButton;
|
|
|
|
- (IBAction)tapFacebookButton;
|
|
|
|
- (void)selectTwitterButton;
|
|
|
|
- (void)selectFacebookButton;
|
2012-08-12 16:50:34 -07:00
|
|
|
- (IBAction)toggleAutoFollowFriends:(id)sender;
|
|
|
|
|
2012-08-12 18:07:54 -07:00
|
|
|
- (void)connectToSocial;
|
|
|
|
- (void)finishConnectFromSocial:(ASIHTTPRequest *)request;
|
|
|
|
|
|
|
|
- (void)finishTwitterConnect;
|
|
|
|
- (void)finishFacebookConnect;
|
|
|
|
|
2012-08-12 16:50:34 -07:00
|
|
|
- (void)finishedWithError:(ASIHTTPRequest *)request;
|
|
|
|
- (void)finishToggleAutoFollowFriends:(ASIHTTPRequest *)request;
|
2012-07-22 14:23:50 -07:00
|
|
|
|
|
|
|
@end
|