2012-07-01 12:08:30 -07:00
|
|
|
//
|
|
|
|
// FriendsListViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Roy Yang on 7/1/12.
|
|
|
|
// Copyright (c) 2012 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
2012-07-01 18:26:39 -07:00
|
|
|
@class ASIHTTPRequest;
|
2012-07-01 12:08:30 -07:00
|
|
|
|
2012-07-31 15:41:41 -07:00
|
|
|
@interface FriendsListViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate> {
|
2012-07-01 12:08:30 -07:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
2012-07-31 15:17:51 -07:00
|
|
|
UISearchBar *friendSearchBar;
|
2012-07-01 18:26:39 -07:00
|
|
|
UITableView *friendsTable;
|
2012-07-31 00:53:16 -07:00
|
|
|
NSArray *suggestedUserProfiles;
|
2012-07-01 18:26:39 -07:00
|
|
|
NSArray *userProfiles;
|
|
|
|
NSArray *userProfileIds;
|
2012-07-01 12:08:30 -07:00
|
|
|
}
|
|
|
|
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
2012-07-31 15:41:41 -07:00
|
|
|
@property (nonatomic) IBOutlet UISearchBar *friendSearchBar;
|
|
|
|
@property (nonatomic) IBOutlet UITableView *friendsTable;
|
2012-07-01 12:08:30 -07:00
|
|
|
|
2012-07-31 00:53:16 -07:00
|
|
|
@property (nonatomic) NSArray *userProfiles;
|
|
|
|
@property (nonatomic) NSArray *suggestedUserProfiles;
|
2012-07-01 12:08:30 -07:00
|
|
|
|
|
|
|
- (void)doCancelButton;
|
2012-07-01 18:26:39 -07:00
|
|
|
- (void)loadFriendsList:(NSString *)query;
|
|
|
|
- (void)requestFinished:(ASIHTTPRequest *)request;
|
|
|
|
- (void)requestFailed:(ASIHTTPRequest *)request;
|
2012-07-31 00:53:16 -07:00
|
|
|
- (void)loadSuggestedFriendsList;
|
|
|
|
- (void)loadSuggestedFriendsListFinished:(ASIHTTPRequest *)request;
|
2012-08-13 23:35:11 -07:00
|
|
|
- (void)hideUserProfileModal;
|
2012-07-01 12:08:30 -07:00
|
|
|
@end
|