2010-06-21 17:17:26 -04:00
|
|
|
//
|
|
|
|
// FeedDetailViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 6/20/10.
|
|
|
|
// Copyright 2010 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2011-08-21 13:46:43 -07:00
|
|
|
#import "ASIHTTPRequest.h"
|
2011-08-18 09:56:52 -07:00
|
|
|
#import "PullToRefreshView.h"
|
2010-06-21 17:17:26 -04:00
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
|
|
|
|
2010-06-24 00:22:26 -04:00
|
|
|
@interface FeedDetailViewController : UIViewController
|
2011-08-18 21:48:30 -07:00
|
|
|
<UITableViewDelegate, UITableViewDataSource, PullToRefreshViewDelegate> {
|
2010-06-21 17:17:26 -04:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
2010-06-24 00:22:26 -04:00
|
|
|
NSArray * stories;
|
2010-07-15 23:32:37 -04:00
|
|
|
NSMutableData * jsonString;
|
2011-07-20 22:21:11 -07:00
|
|
|
int feedPage;
|
|
|
|
BOOL pageFetching;
|
2011-08-21 13:46:43 -07:00
|
|
|
BOOL pageRefreshing;
|
2011-07-24 16:52:24 -07:00
|
|
|
BOOL pageFinished;
|
2010-06-21 17:17:26 -04:00
|
|
|
|
|
|
|
UITableView * storyTitlesTable;
|
|
|
|
UIToolbar * feedViewToolbar;
|
|
|
|
UISlider * feedScoreSlider;
|
2010-11-22 10:44:52 -05:00
|
|
|
UIBarButtonItem * feedMarkReadButton;
|
2011-07-29 09:06:17 -07:00
|
|
|
UISegmentedControl * intelligenceControl;
|
2011-08-18 09:56:52 -07:00
|
|
|
PullToRefreshView *pull;
|
2010-06-21 17:17:26 -04:00
|
|
|
}
|
|
|
|
|
2011-07-20 22:21:11 -07:00
|
|
|
- (void)fetchFeedDetail:(int)page;
|
2011-08-21 13:46:43 -07:00
|
|
|
- (void)renderStories:(NSArray *)newStories;
|
2011-07-20 22:21:11 -07:00
|
|
|
- (void)scrollViewDidScroll:(UIScrollView *)scroll;
|
2011-07-24 22:23:38 -07:00
|
|
|
- (IBAction)markAllRead;
|
2011-07-29 09:06:17 -07:00
|
|
|
- (IBAction)selectIntelligence;
|
|
|
|
- (NSDictionary *)getStoryAtRow:(NSInteger)indexPathRow;
|
2011-07-29 21:56:54 -07:00
|
|
|
- (void)checkScroll;
|
2011-08-01 09:43:13 -07:00
|
|
|
- (void)markedAsRead;
|
2011-08-18 09:56:52 -07:00
|
|
|
- (void)pullToRefreshViewShouldRefresh:(PullToRefreshView *)view;
|
|
|
|
- (NSDate *)pullToRefreshViewLastUpdated:(PullToRefreshView *)view;
|
2011-08-21 13:46:43 -07:00
|
|
|
- (void)finishedRefreshingFeed:(ASIHTTPRequest *)request;
|
|
|
|
- (void)failRefreshingFeed:(ASIHTTPRequest *)request;
|
2010-06-24 00:22:26 -04:00
|
|
|
|
2010-06-21 17:17:26 -04:00
|
|
|
@property (nonatomic, retain) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
|
|
@property (nonatomic, retain) IBOutlet UITableView *storyTitlesTable;
|
|
|
|
@property (nonatomic, retain) IBOutlet UIToolbar *feedViewToolbar;
|
|
|
|
@property (nonatomic, retain) IBOutlet UISlider * feedScoreSlider;
|
2010-11-22 10:44:52 -05:00
|
|
|
@property (nonatomic, retain) IBOutlet UIBarButtonItem * feedMarkReadButton;
|
2011-07-29 09:06:17 -07:00
|
|
|
@property (nonatomic, retain) IBOutlet UISegmentedControl * intelligenceControl;
|
2011-08-18 09:56:52 -07:00
|
|
|
@property (nonatomic, retain) PullToRefreshView *pull;
|
2010-06-21 17:17:26 -04:00
|
|
|
|
2010-06-24 00:22:26 -04:00
|
|
|
@property (nonatomic, retain) NSArray * stories;
|
2010-07-15 23:32:37 -04:00
|
|
|
@property (nonatomic, retain) NSMutableData * jsonString;
|
2011-07-20 22:21:11 -07:00
|
|
|
@property (nonatomic, readwrite) int feedPage;
|
|
|
|
@property (nonatomic, readwrite) BOOL pageFetching;
|
2011-08-21 13:46:43 -07:00
|
|
|
@property (nonatomic, readwrite) BOOL pageRefreshing;
|
2011-07-24 16:52:24 -07:00
|
|
|
@property (nonatomic, readwrite) BOOL pageFinished;
|
2010-06-21 17:17:26 -04:00
|
|
|
|
|
|
|
@end
|