2010-09-30 12:27:22 -05:00
|
|
|
//
|
|
|
|
// MGMContactsController.h
|
|
|
|
// VoiceMob
|
|
|
|
//
|
|
|
|
// Created by Mr. Gecko on 9/29/10.
|
2013-07-20 06:56:17 -05:00
|
|
|
// Copyright (c) 2011 Mr. Gecko's Media (James Coleman). http://mrgeckosmedia.com/
|
2010-09-30 12:27:22 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@class MGMAccountController, MGMContacts;
|
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
@interface MGMContactsController : NSObject <UITableViewDelegate, UITableViewDataSource> {
|
2010-09-30 12:27:22 -05:00
|
|
|
MGMAccountController *accountController;
|
|
|
|
|
|
|
|
IBOutlet UISearchBar *searchBar;
|
|
|
|
IBOutlet UIButton *searchCancelButton;
|
|
|
|
IBOutlet UITableView *contactsTable;
|
|
|
|
|
|
|
|
NSLock *filterLock;
|
|
|
|
NSString *contactsMatchString;
|
|
|
|
int filterWaiting;
|
|
|
|
NSMutableArray *contactViews;
|
|
|
|
int contactsCount;
|
|
|
|
NSRange contactsLoading;
|
|
|
|
NSRange contactsVisible;
|
|
|
|
}
|
|
|
|
- (id)initWithAccountController:(MGMAccountController *)theAccountController;
|
|
|
|
|
|
|
|
- (void)awakeFromNib;
|
|
|
|
- (void)releaseView;
|
2013-07-20 06:56:17 -05:00
|
|
|
- (void)cleanup;
|
2010-09-30 12:27:22 -05:00
|
|
|
|
|
|
|
- (MGMContacts *)contacts;
|
|
|
|
- (NSString *)filterString;
|
|
|
|
- (void)updateMatchString;
|
|
|
|
|
|
|
|
- (IBAction)cancelSearch:(id)sender;
|
|
|
|
|
|
|
|
- (void)checkContactRow:(int)row;
|
|
|
|
|
|
|
|
- (void)filterContacts;
|
|
|
|
- (void)backgroundFilter;
|
|
|
|
- (void)loadContacts:(BOOL)updatingCount;
|
|
|
|
|
|
|
|
- (void)updatedContacts;
|
|
|
|
|
|
|
|
- (void)selectedContact:(NSDictionary *)theContact;
|
|
|
|
@end
|