NewsBlur/clients/ios/Classes/FeedDetailObjCViewController.h

121 lines
4.5 KiB
C
Raw Normal View History

//
// FeedDetailObjCViewController.h
// NewsBlur
//
// Created by Samuel Clay on 6/20/10.
// Copyright 2010 NewsBlur. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "NewsBlurAppDelegate.h"
#import "BaseViewController.h"
#import "Utilities.h"
2013-06-10 00:29:03 -07:00
#import "NBNotifier.h"
#import "MCSwipeTableViewCell.h"
2022-09-02 20:39:00 -06:00
#import "FeedDetailCollectionCell.h"
@class NewsBlurAppDelegate;
@class MCSwipeTableViewCell;
@interface FeedDetailObjCViewController : BaseViewController
2022-09-02 20:39:00 -06:00
<UIPopoverControllerDelegate,
MCSwipeTableViewCellDelegate,
UIGestureRecognizerDelegate, UISearchBarDelegate,
2022-09-02 20:39:00 -06:00
UICollectionViewDelegate, UICollectionViewDragDelegate> {
NewsBlurAppDelegate *appDelegate;
BOOL pageFetching;
BOOL pageFinished;
BOOL finishedAnimatingIn;
BOOL isOnline;
BOOL isShowingFetching;
BOOL inDoubleTap;
BOOL invalidateFontCache;
2022-09-02 20:39:00 -06:00
UICollectionView * feedCollectionView;
UIBarButtonItem * feedMarkReadButton;
Class popoverClass;
2013-06-10 00:29:03 -07:00
NBNotifier *notifier;
}
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
2022-09-02 20:39:00 -06:00
@property (nonatomic, strong) IBOutlet UICollectionView *feedCollectionView;
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet UIBarButtonItem * feedMarkReadButton;
@property (nonatomic) IBOutlet UIBarButtonItem * feedsBarButton;
@property (nonatomic) IBOutlet UIBarButtonItem * settingsBarButton;
@property (nonatomic) IBOutlet UIBarButtonItem * spacerBarButton;
@property (nonatomic) IBOutlet UIBarButtonItem * spacer2BarButton;
@property (nonatomic) IBOutlet UIBarButtonItem * separatorBarButton;
@property (nonatomic) IBOutlet UIBarButtonItem * titleImageBarButton;
2013-06-10 00:29:03 -07:00
@property (nonatomic, retain) NBNotifier *notifier;
@property (nonatomic, retain) StoriesCollection *storiesCollection;
@property (nonatomic) UIRefreshControl *refreshControl;
2014-11-17 16:07:58 -08:00
@property (nonatomic) UISearchBar *searchBar;
@property (nonatomic) IBOutlet UIView *messageView;
@property (nonatomic) IBOutlet UILabel *messageLabel;
2021-02-27 20:29:58 -08:00
@property (nonatomic, strong) id standardInteractivePopGestureDelegate;
@property (nonatomic, readwrite) BOOL pageFetching;
@property (nonatomic, readwrite) BOOL pageFinished;
@property (nonatomic, readwrite) BOOL finishedAnimatingIn;
@property (nonatomic, readwrite) BOOL isOnline;
@property (nonatomic, readwrite) BOOL isShowingFetching;
@property (nonatomic) FeedDetailTextSize textSize;
@property (nonatomic, readwrite) BOOL showImagePreview;
@property (nonatomic, readwrite) BOOL invalidateFontCache;
@property (nonatomic, readwrite) BOOL cameFromFeedsList;
2022-09-02 20:39:00 -06:00
- (void)reload;
2022-09-03 21:24:36 -06:00
- (void)reloadIndexPath:(NSIndexPath *)indexPath;
2022-09-02 20:39:00 -06:00
- (void)reloadWithSizing;
- (void)resetFeedDetail;
2014-11-17 16:07:58 -08:00
- (void)reloadStories;
- (void)fetchNextPage:(void(^)(void))callback;
- (void)fetchFeedDetail:(int)page withCallback:(void(^)(void))callback;
- (void)loadOfflineStories;
- (void)fetchRiver;
- (void)fetchRiverPage:(int)page withCallback:(void(^)(void))callback;
- (void)testForTryFeed;
- (void)flashInfrequentStories;
- (void)gotoFolder:(NSString *)folder feedID:(NSString *)feedID;
2022-09-03 21:24:36 -06:00
- (CGFloat)heightForRowAtIndexPath:(NSIndexPath *)indexPath;
2022-09-02 20:39:00 -06:00
- (void)prepareFeedCell:(FeedDetailCollectionCell *)cell indexPath:(NSIndexPath *)indexPath;
- (void)prepareStoryCell:(UICollectionViewCell *)cell indexPath:(NSIndexPath *)indexPath;
- (void)prepareLoadingCell:(UICollectionViewCell *)cell indexPath:(NSIndexPath *)indexPath;
2011-08-21 13:46:43 -07:00
- (void)renderStories:(NSArray *)newStories;
- (void)scrollViewDidScroll:(UIScrollView *)scroll;
2012-07-16 19:45:14 -07:00
- (void)changeIntelligence:(NSInteger)newLevel;
- (NSDictionary *)getStoryAtRow:(NSInteger)indexPathRow;
2013-11-23 13:03:14 -08:00
- (UIFontDescriptor *)fontDescriptorUsingPreferredSize:(NSString *)textStyle;
- (void)checkScroll;
2012-08-02 18:00:48 -07:00
- (void)setUserAvatarLayout:(UIInterfaceOrientation)orientation;
2012-08-06 15:46:05 -07:00
- (void)fadeSelectedCell;
- (void)fadeSelectedCell:(BOOL)deselect;
2022-09-02 20:39:00 -06:00
- (void)loadStory:(FeedDetailCollectionCell *)cell atRow:(NSInteger)row;
2012-10-16 17:24:01 -07:00
- (void)redrawUnreadStory;
- (IBAction)doOpenMarkReadMenu:(id)sender;
- (IBAction)doOpenSettingsMenu:(id)sender;
- (void)deleteSite;
2011-12-05 09:26:02 -08:00
- (void)deleteFolder;
2016-01-29 14:29:22 -08:00
- (void)muteSite;
2012-12-24 23:01:25 -08:00
- (void)openTrainSite;
- (void)openNotificationsWithFeed:(NSString *)feedId;
- (void)openRenameSite;
- (void)showUserProfile;
- (void)changeActiveFeedDetailRow;
2012-06-27 15:38:51 -07:00
- (void)instafetchFeed;
- (void)changeActiveStoryTitleCellLayout;
- (void)loadFaviconsFromActiveFeed;
- (void)markFeedsReadFromTimestamp:(NSInteger)cutoffTimestamp andOlder:(BOOL)older;
- (void)finishMarkAsSaved:(NSDictionary *)params;
- (void)failedMarkAsSaved:(NSDictionary *)params;
- (void)finishMarkAsUnsaved:(NSDictionary *)params;
- (void)failedMarkAsUnsaved:(NSDictionary *)params;
- (void)failedMarkAsUnread:(NSDictionary *)params;
@end