-
Notifications
You must be signed in to change notification settings - Fork 0
/
SearchViewController.h
55 lines (50 loc) · 2.11 KB
/
SearchViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// SearchViewController.h
// TwitterSearchUpdate
//
// Created by Nuo Xu on 11-11-27.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SearchViewController : UITableViewController{
NSString *containing, *notContaining, *mentioning, *from, *since, *untill;
UIView *refreshHeaderView;
UIView *loadFooterView;
UILabel *refreshLabel;
// UILabel *loadMoreLabel;
UIActivityIndicatorView *refreshSpinner;
BOOL isDragging;
BOOL isLoading;
BOOL isFirstRefresh;
NSString *textPull;
NSString *textRelease;
NSString *textLoading;
NSString *lastTimeUpdate;
// NSString *textLoadMore;
// NSInteger *numberOfCurrentRows;
}
@property (nonatomic, retain) NSString *containing, *notContaining, *mentioning, *from, *since, *untill, *minusSign, *atSign, *sinceColon, *fromColon, *untillColon;
@property (nonatomic, retain) NSMutableData *buffer;
@property (nonatomic, retain) NSURLConnection *connection;
@property (nonatomic, retain) NSMutableArray *results;
@property (nonatomic, retain) UIView *refreshHeaderView;
@property (nonatomic, retain) UILabel *refreshLabel;
//@property (nonatomic, retain) UIView *loadFooterView;
//@property (nonatomic, retain) UILabel *loadMoreLabel;
@property (nonatomic, retain) UIActivityIndicatorView *refreshSpinner;
@property (nonatomic, copy) NSString *textPull;
@property (nonatomic, copy) NSString *textRelease;
@property (nonatomic, copy) NSString *textLoading;
@property (nonatomic, copy) NSString *lastTimeUpdate;
//@property (nonatomic, copy) NSString *textLoadMore;
//@property (nonatomic) NSInteger *numberOfCurrentRows;
- (void)setupStrings;
- (void)addPullToRefreshHeader;
//- (void)addLoadFooter;
- (void)startLoadingForRefresh;
//- (void)startLoadingForMore;
- (void)stopLoading;
- (void)refresh;
//- (void)loadTenMore;
- (void)updateContainingString: (NSString *)containingString andNotContainingString: (NSString *)notContainingString andMentioningString: (NSString *)mentioningString andFromString: (NSString *)fromString andSinceString: (NSString *)sinceString andUntillString: (NSString *)untillString;
@end