NewsBlur/media/ios/Classes/NewsBlurViewController.h

96 lines
3.4 KiB
C
Raw Normal View History

2010-06-20 11:04:23 -04:00
//
// NewsBlurViewController.h
// NewsBlur
//
// Created by Samuel Clay on 6/16/10.
// Copyright NewsBlur 2010. All rights reserved.
2010-06-20 11:04:23 -04:00
//
#import <UIKit/UIKit.h>
#import "NewsBlurAppDelegate.h"
#import "ASIHTTPRequest.h"
#import "PullToRefreshView.h"
#import "BaseViewController.h"
#import "WEPopoverController.h"
2010-06-20 11:04:23 -04:00
@class NewsBlurAppDelegate;
@interface NewsBlurViewController : BaseViewController
<UITableViewDelegate, UITableViewDataSource,
UIAlertViewDelegate, PullToRefreshViewDelegate,
2012-06-19 13:51:48 -07:00
ASIHTTPRequestDelegate, NSCacheDelegate,
WEPopoverControllerDelegate,
2012-06-19 13:51:48 -07:00
UIPopoverControllerDelegate> {
NewsBlurAppDelegate *appDelegate;
NSMutableDictionary * activeFeedLocations;
NSMutableDictionary *visibleFeeds;
NSMutableDictionary *stillVisibleFeeds;
BOOL viewShowingAllFeeds;
2012-08-02 19:43:55 -07:00
BOOL hasNoSites;
PullToRefreshView *pull;
NSDate *lastUpdate;
2011-10-14 09:51:27 -07:00
NSCache *imageCache;
2010-06-20 11:04:23 -04:00
UIView *innerView;
UITableView * feedTitlesTable;
UIToolbar * feedViewToolbar;
UISlider * feedScoreSlider;
UIBarButtonItem * homeButton;
UISegmentedControl * intelligenceControl;
WEPopoverController *popoverController;
Class popoverClass;
2010-06-20 11:04:23 -04:00
}
2012-07-15 15:06:06 -07:00
@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;
2012-08-02 19:43:55 -07:00
@property (nonatomic, readwrite) BOOL hasNoSites;
2012-07-15 15:06:06 -07:00
@property (nonatomic) PullToRefreshView *pull;
@property (nonatomic) NSDate *lastUpdate;
@property (nonatomic) NSCache *imageCache;
@property (nonatomic) IBOutlet UISegmentedControl * intelligenceControl;
@property (nonatomic, retain) WEPopoverController *popoverController;
@property (nonatomic) NSIndexPath *currentRowAtIndexPath;
- (void)returnToApp;
2012-08-09 10:18:15 -07:00
- (void)fetchFeedList:(BOOL)showLoader;
- (void)finishedWithError:(ASIHTTPRequest *)request;
- (void)finishLoadingFeedList:(ASIHTTPRequest *)request;
- (void)finishRefreshingFeedList:(ASIHTTPRequest *)request;
2012-08-02 18:00:48 -07:00
- (void)setUserAvatarLayout:(UIInterfaceOrientation)orientation;
- (void)didSelectSectionHeader:(UIButton *)button;
- (IBAction)selectIntelligence;
2012-08-12 16:50:34 -07:00
- (void)changeToAllMode;
- (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;
2012-06-26 11:45:42 -07:00
- (void)loadAvatars;
- (void)saveAndDrawFavicons:(ASIHTTPRequest *)request;
- (void)requestFailed:(ASIHTTPRequest *)request;
- (void)refreshFeedList;
- (void)pullToRefreshViewShouldRefresh:(PullToRefreshView *)view;
- (void)showUserProfile;
2012-07-12 11:35:32 -07:00
- (void)showSettingsPopover:(id)sender;
- (NSDate *)pullToRefreshViewLastUpdated:(PullToRefreshView *)view;
2012-07-27 19:42:19 -07:00
- (void)fadeSelectedCell;
2012-07-31 15:57:56 -07:00
- (IBAction)tapAddSite:(id)sender;
- (void)resetToolbar;
2010-06-20 11:04:23 -04:00
@end