mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
86 lines
3.1 KiB
Objective-C
86 lines
3.1 KiB
Objective-C
//
|
|
// NewsBlurViewController.h
|
|
// NewsBlur
|
|
//
|
|
// Created by Samuel Clay on 6/16/10.
|
|
// Copyright NewsBlur 2010. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "NewsBlurAppDelegate.h"
|
|
#import "ASIHTTPRequest.h"
|
|
#import "PullToRefreshView.h"
|
|
#import "BaseViewController.h"
|
|
|
|
@class NewsBlurAppDelegate;
|
|
|
|
@interface NewsBlurViewController : BaseViewController
|
|
<UITableViewDelegate, UITableViewDataSource,
|
|
UIAlertViewDelegate, PullToRefreshViewDelegate,
|
|
ASIHTTPRequestDelegate, NSCacheDelegate,
|
|
UIPopoverControllerDelegate> {
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
NSMutableDictionary * activeFeedLocations;
|
|
NSMutableDictionary *visibleFeeds;
|
|
NSMutableDictionary *stillVisibleFeeds;
|
|
BOOL viewShowingAllFeeds;
|
|
PullToRefreshView *pull;
|
|
NSDate *lastUpdate;
|
|
NSCache *imageCache;
|
|
|
|
UIView *innerView;
|
|
UITableView * feedTitlesTable;
|
|
UIToolbar * feedViewToolbar;
|
|
UISlider * feedScoreSlider;
|
|
UIBarButtonItem * homeButton;
|
|
UISegmentedControl * intelligenceControl;
|
|
UIPopoverController *popoverController;
|
|
}
|
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
@property (nonatomic) IBOutlet UIView *innerView;
|
|
@property (nonatomic) IBOutlet UITableView *feedTitlesTable;
|
|
@property (nonatomic) IBOutlet UIToolbar *feedViewToolbar;
|
|
@property (nonatomic) IBOutlet UISlider * feedScoreSlider;
|
|
@property (nonatomic) IBOutlet UIBarButtonItem * homeButton;
|
|
@property (nonatomic) NSMutableDictionary *activeFeedLocations;
|
|
@property (nonatomic) NSMutableDictionary *visibleFeeds;
|
|
@property (nonatomic) NSMutableDictionary *stillVisibleFeeds;
|
|
@property (nonatomic, readwrite) BOOL viewShowingAllFeeds;
|
|
@property (nonatomic) PullToRefreshView *pull;
|
|
@property (nonatomic) NSDate *lastUpdate;
|
|
@property (nonatomic) NSCache *imageCache;
|
|
@property (nonatomic) IBOutlet UISegmentedControl * intelligenceControl;
|
|
@property (nonatomic) UIPopoverController *popoverController;
|
|
@property (nonatomic) NSIndexPath *currentRowAtIndexPath;
|
|
|
|
- (void)returnToApp;
|
|
- (void)fetchFeedList:(BOOL)showLoader refreshFeeds:(BOOL)refreshFeeds;
|
|
- (void)finishedWithError:(ASIHTTPRequest *)request;
|
|
- (void)finishLoadingFeedList:(ASIHTTPRequest *)request;
|
|
- (void)finishRefreshingFeedList:(ASIHTTPRequest *)request;
|
|
|
|
- (void)dismissFeedsMenu;
|
|
- (IBAction)showMenuButton:(id)sender;
|
|
- (void)didSelectSectionHeader:(UIButton *)button;
|
|
- (IBAction)selectIntelligence;
|
|
- (void)updateFeedsWithIntelligence:(int)previousLevel newLevel:(int)newLevel;
|
|
- (void)calculateFeedLocations:(BOOL)markVisible;
|
|
- (IBAction)sectionTapped:(UIButton *)button;
|
|
- (IBAction)sectionUntapped:(UIButton *)button;
|
|
- (IBAction)sectionUntappedOutside:(UIButton *)button;
|
|
- (void)redrawUnreadCounts;
|
|
+ (int)computeMaxScoreForFeed:(NSDictionary *)feed;
|
|
- (void)switchSitesUnread;
|
|
- (void)loadFavicons;
|
|
- (void)loadAvatars;
|
|
- (void)saveAndDrawFavicons:(ASIHTTPRequest *)request;
|
|
- (void)requestFailed:(ASIHTTPRequest *)request;
|
|
- (void)refreshFeedList;
|
|
- (void)pullToRefreshViewShouldRefresh:(PullToRefreshView *)view;
|
|
- (void)showUserProfilePopover:(id)sender;
|
|
- (void)showSettingsPopover:(id)sender;
|
|
- (NSDate *)pullToRefreshViewLastUpdated:(PullToRefreshView *)view;
|
|
|
|
@end
|