2012-06-29 10:20:06 -07:00
|
|
|
//
|
|
|
|
// FeedTableCell.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 7/18/11.
|
|
|
|
// Copyright 2011 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
2012-10-03 18:27:21 -07:00
|
|
|
#import "UnreadCountView.h"
|
2013-09-27 17:54:06 -07:00
|
|
|
#import "NBSwipeableCell.h"
|
2012-06-29 10:20:06 -07:00
|
|
|
|
2013-09-27 17:54:06 -07:00
|
|
|
@interface FeedTableCell : NBSwipeableCell {
|
2012-06-29 10:20:06 -07:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
|
|
|
NSString *feedTitle;
|
|
|
|
UIImage *feedFavicon;
|
|
|
|
int _positiveCount;
|
|
|
|
int _neutralCount;
|
|
|
|
int _negativeCount;
|
|
|
|
NSString *_negativeCountStr;
|
|
|
|
BOOL isSocial;
|
2014-05-20 12:58:04 -07:00
|
|
|
BOOL isSaved;
|
2013-09-30 12:13:10 -07:00
|
|
|
UIView *cellContent;
|
2013-10-09 14:54:49 -07:00
|
|
|
UnreadCountView *unreadCount;
|
2012-06-29 10:20:06 -07:00
|
|
|
}
|
|
|
|
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) NewsBlurAppDelegate *appDelegate;
|
|
|
|
@property (nonatomic) NSString *feedTitle;
|
|
|
|
@property (nonatomic) UIImage *feedFavicon;
|
2012-06-29 10:20:06 -07:00
|
|
|
@property (assign, nonatomic) int positiveCount;
|
|
|
|
@property (assign, nonatomic) int neutralCount;
|
|
|
|
@property (assign, nonatomic) int negativeCount;
|
2016-03-26 21:27:25 -07:00
|
|
|
@property (assign, nonatomic) int savedStoriesCount;
|
2012-06-29 10:20:06 -07:00
|
|
|
@property (assign, nonatomic) BOOL isSocial;
|
2014-05-20 12:58:04 -07:00
|
|
|
@property (assign, nonatomic) BOOL isSaved;
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) NSString *negativeCountStr;
|
2013-10-09 14:54:49 -07:00
|
|
|
@property (nonatomic) UnreadCountView *unreadCount;
|
2012-06-29 10:20:06 -07:00
|
|
|
|
2013-09-27 17:54:06 -07:00
|
|
|
- (void)setupGestures;
|
2013-10-17 17:23:52 -07:00
|
|
|
- (void)redrawUnreadCounts;
|
2013-09-27 17:54:06 -07:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface FeedTableCellView : UIView
|
|
|
|
|
2013-10-18 14:17:01 -07:00
|
|
|
@property (nonatomic, weak) FeedTableCell *cell;
|
2013-09-27 17:54:06 -07:00
|
|
|
|
2013-10-17 17:23:52 -07:00
|
|
|
- (void)redrawUnreadCounts;
|
|
|
|
|
2012-06-29 10:20:06 -07:00
|
|
|
@end
|