2010-06-21 17:17:26 -04:00
|
|
|
//
|
2020-08-27 21:26:12 -07:00
|
|
|
// FeedDetailObjCViewController.h
|
2010-06-21 17:17:26 -04:00
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 6/20/10.
|
|
|
|
// Copyright 2010 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2012-10-12 13:58:26 -04:00
|
|
|
#import "NewsBlurAppDelegate.h"
|
2011-10-27 09:44:58 -07:00
|
|
|
#import "BaseViewController.h"
|
2012-06-29 10:20:06 -07:00
|
|
|
#import "Utilities.h"
|
2013-06-10 00:29:03 -07:00
|
|
|
#import "NBNotifier.h"
|
2013-09-27 17:23:03 -07:00
|
|
|
#import "MCSwipeTableViewCell.h"
|
2010-06-21 17:17:26 -04:00
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
2013-09-27 17:23:03 -07:00
|
|
|
@class MCSwipeTableViewCell;
|
2022-12-12 22:04:04 -06:00
|
|
|
@class FeedDetailCollectionCell;
|
2010-06-21 17:17:26 -04:00
|
|
|
|
2020-08-27 21:26:12 -07:00
|
|
|
@interface FeedDetailObjCViewController : BaseViewController
|
2022-09-02 20:39:00 -06:00
|
|
|
<UIPopoverControllerDelegate,
|
2015-12-15 12:37:18 -08:00
|
|
|
MCSwipeTableViewCellDelegate,
|
2017-11-30 16:49:20 -08:00
|
|
|
UIGestureRecognizerDelegate, UISearchBarDelegate,
|
2022-09-02 20:39:00 -06:00
|
|
|
UICollectionViewDelegate, UICollectionViewDragDelegate> {
|
2010-06-21 17:17:26 -04:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
2011-07-20 22:21:11 -07:00
|
|
|
BOOL pageFetching;
|
2011-07-24 16:52:24 -07:00
|
|
|
BOOL pageFinished;
|
2013-02-21 17:57:32 -08:00
|
|
|
BOOL finishedAnimatingIn;
|
2014-02-19 18:59:14 -08:00
|
|
|
BOOL isOnline;
|
|
|
|
BOOL isShowingFetching;
|
2014-03-03 12:52:26 -08:00
|
|
|
BOOL inDoubleTap;
|
2014-10-01 14:23:57 -07:00
|
|
|
BOOL invalidateFontCache;
|
2013-08-12 11:59:07 -07:00
|
|
|
|
2022-09-02 20:39:00 -06:00
|
|
|
UICollectionView * feedCollectionView;
|
2010-11-22 10:44:52 -05:00
|
|
|
UIBarButtonItem * feedMarkReadButton;
|
2012-10-12 13:58:26 -04:00
|
|
|
Class popoverClass;
|
2013-06-10 00:29:03 -07:00
|
|
|
NBNotifier *notifier;
|
2010-06-21 17:17:26 -04:00
|
|
|
}
|
|
|
|
|
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;
|
2022-04-01 17:54:01 -07:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem * feedsBarButton;
|
2013-02-27 17:22:49 -08:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem * settingsBarButton;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem * spacerBarButton;
|
2013-02-27 17:39:54 -08:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem * spacer2BarButton;
|
2013-02-27 17:22:49 -08:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem * separatorBarButton;
|
2013-04-15 10:29:39 -07:00
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem * titleImageBarButton;
|
2013-06-10 00:29:03 -07:00
|
|
|
@property (nonatomic, retain) NBNotifier *notifier;
|
2014-02-12 20:09:37 -08:00
|
|
|
@property (nonatomic, retain) StoriesCollection *storiesCollection;
|
2020-08-24 21:40:31 -07:00
|
|
|
@property (nonatomic) UIRefreshControl *refreshControl;
|
2014-11-17 16:07:58 -08:00
|
|
|
@property (nonatomic) UISearchBar *searchBar;
|
2015-11-05 21:58:34 -08:00
|
|
|
@property (nonatomic) IBOutlet UIView *messageView;
|
|
|
|
@property (nonatomic) IBOutlet UILabel *messageLabel;
|
2021-02-27 20:29:58 -08:00
|
|
|
@property (nonatomic, strong) id standardInteractivePopGestureDelegate;
|
2022-10-08 14:54:49 -06:00
|
|
|
@property (nonatomic, readonly) NSIndexPath *selectedIndexPath;
|
2022-10-27 20:53:47 -06:00
|
|
|
@property (nonatomic) CGFloat storyHeight;
|
2012-07-12 22:05:23 -07:00
|
|
|
|
|
|
|
@property (nonatomic, readwrite) BOOL pageFetching;
|
|
|
|
@property (nonatomic, readwrite) BOOL pageFinished;
|
2013-02-21 17:57:32 -08:00
|
|
|
@property (nonatomic, readwrite) BOOL finishedAnimatingIn;
|
2014-02-19 18:59:14 -08:00
|
|
|
@property (nonatomic, readwrite) BOOL isOnline;
|
|
|
|
@property (nonatomic, readwrite) BOOL isShowingFetching;
|
2014-02-13 17:18:29 -08:00
|
|
|
@property (nonatomic, readwrite) BOOL showImagePreview;
|
2014-10-01 14:23:57 -07:00
|
|
|
@property (nonatomic, readwrite) BOOL invalidateFontCache;
|
2022-04-21 20:33:11 -07:00
|
|
|
@property (nonatomic, readwrite) BOOL cameFromFeedsList;
|
2012-07-12 22:05:23 -07:00
|
|
|
|
2022-10-27 15:19:31 -06:00
|
|
|
- (void)changedLayout;
|
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;
|
2011-09-06 17:51:02 -07:00
|
|
|
- (void)resetFeedDetail;
|
2014-11-17 16:07:58 -08:00
|
|
|
- (void)reloadStories;
|
2017-09-26 10:48:02 -07:00
|
|
|
- (void)fetchNextPage:(void(^)(void))callback;
|
|
|
|
- (void)fetchFeedDetail:(int)page withCallback:(void(^)(void))callback;
|
2013-06-13 17:56:58 -07:00
|
|
|
- (void)loadOfflineStories;
|
2014-02-13 17:18:29 -08:00
|
|
|
- (void)fetchRiver;
|
2017-09-26 10:48:02 -07:00
|
|
|
- (void)fetchRiverPage:(int)page withCallback:(void(^)(void))callback;
|
2013-02-21 17:57:32 -08:00
|
|
|
- (void)testForTryFeed;
|
2017-11-08 21:21:06 -08:00
|
|
|
- (void)flashInfrequentStories;
|
2019-04-24 20:32:04 -07:00
|
|
|
- (void)gotoFolder:(NSString *)folder feedID:(NSString *)feedID;
|
2011-09-05 22:06:31 -07:00
|
|
|
|
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;
|
2011-07-20 22:21:11 -07:00
|
|
|
- (void)scrollViewDidScroll:(UIScrollView *)scroll;
|
2012-07-16 19:45:14 -07:00
|
|
|
- (void)changeIntelligence:(NSInteger)newLevel;
|
2022-10-08 14:54:49 -06:00
|
|
|
- (NSDictionary *)getStoryAtLocation:(NSInteger)storyLocation;
|
|
|
|
- (NSInteger)storyLocationForIndexPath:(NSIndexPath *)indexPath;
|
|
|
|
- (NSIndexPath *)indexPathForStoryLocation:(NSInteger)location;
|
|
|
|
|
2013-11-23 13:03:14 -08:00
|
|
|
- (UIFontDescriptor *)fontDescriptorUsingPreferredSize:(NSString *)textStyle;
|
2011-07-29 21:56:54 -07:00
|
|
|
- (void)checkScroll;
|
2012-08-02 18:00:48 -07:00
|
|
|
- (void)setUserAvatarLayout:(UIInterfaceOrientation)orientation;
|
2010-06-24 00:22:26 -04:00
|
|
|
|
2012-08-06 15:46:05 -07:00
|
|
|
- (void)fadeSelectedCell;
|
2014-02-20 14:52:27 -08:00
|
|
|
- (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;
|
2015-11-29 18:08:44 -08:00
|
|
|
- (IBAction)doOpenMarkReadMenu:(id)sender;
|
|
|
|
- (IBAction)doOpenSettingsMenu:(id)sender;
|
2011-10-17 09:28:15 -07:00
|
|
|
- (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;
|
2016-11-23 10:13:22 -08:00
|
|
|
- (void)openNotificationsWithFeed:(NSString *)feedId;
|
2015-04-26 22:05:28 -07:00
|
|
|
- (void)openRenameSite;
|
2012-07-25 17:29:29 -07:00
|
|
|
- (void)showUserProfile;
|
2012-06-20 19:18:29 -07:00
|
|
|
- (void)changeActiveFeedDetailRow;
|
2012-06-27 15:38:51 -07:00
|
|
|
- (void)instafetchFeed;
|
2012-07-29 20:55:11 -07:00
|
|
|
- (void)changeActiveStoryTitleCellLayout;
|
2012-06-29 10:20:06 -07:00
|
|
|
- (void)loadFaviconsFromActiveFeed;
|
2015-11-29 18:08:44 -08:00
|
|
|
- (void)markFeedsReadFromTimestamp:(NSInteger)cutoffTimestamp andOlder:(BOOL)older;
|
2017-04-11 15:43:42 -07:00
|
|
|
- (void)finishMarkAsSaved:(NSDictionary *)params;
|
|
|
|
- (void)failedMarkAsSaved:(NSDictionary *)params;
|
|
|
|
- (void)finishMarkAsUnsaved:(NSDictionary *)params;
|
|
|
|
- (void)failedMarkAsUnsaved:(NSDictionary *)params;
|
|
|
|
- (void)failedMarkAsUnread:(NSDictionary *)params;
|
2014-03-05 14:13:49 -08:00
|
|
|
|
2016-11-23 08:09:19 -08:00
|
|
|
@end
|