2010-06-25 18:36:01 -04:00
|
|
|
//
|
|
|
|
// StoryDetailViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 6/24/10.
|
|
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2012-10-04 10:59:44 -07:00
|
|
|
#import <QuartzCore/QuartzCore.h>
|
2012-10-17 15:07:53 -07:00
|
|
|
#import "BaseViewController.h"
|
2010-06-25 18:36:01 -04:00
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
2012-06-29 12:54:52 -07:00
|
|
|
@class ASIHTTPRequest;
|
2010-06-25 18:36:01 -04:00
|
|
|
|
2012-10-17 15:07:53 -07:00
|
|
|
@interface StoryDetailViewController : BaseViewController
|
2012-11-05 17:16:10 -08:00
|
|
|
<UIScrollViewDelegate> {
|
2010-06-25 18:36:01 -04:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
2011-08-14 00:16:25 -07:00
|
|
|
|
|
|
|
NSString *activeStoryId;
|
2012-11-05 17:16:10 -08:00
|
|
|
NSDictionary *activeStory;
|
2012-07-12 13:34:41 -07:00
|
|
|
UIView *innerView;
|
2010-06-27 19:35:17 -04:00
|
|
|
UIWebView *webView;
|
2012-11-05 15:12:42 -08:00
|
|
|
NSInteger pageIndex;
|
2012-10-04 10:59:44 -07:00
|
|
|
BOOL pullingScrollview;
|
2010-06-25 18:36:01 -04:00
|
|
|
}
|
|
|
|
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
|
|
@property (nonatomic) NSString *activeStoryId;
|
2012-11-05 17:16:10 -08:00
|
|
|
@property (nonatomic, readwrite) NSDictionary *activeStory;
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet UIView *innerView;
|
|
|
|
@property (nonatomic) IBOutlet UIWebView *webView;
|
|
|
|
@property (nonatomic) IBOutlet UIView *feedTitleGradient;
|
2012-07-31 23:49:51 -07:00
|
|
|
@property (nonatomic) IBOutlet UILabel *noStorySelectedLabel;
|
2012-10-04 10:59:44 -07:00
|
|
|
@property (nonatomic, assign) BOOL pullingScrollview;
|
2012-11-05 15:12:42 -08:00
|
|
|
@property NSInteger pageIndex;
|
2012-06-18 14:31:42 -07:00
|
|
|
|
2012-07-25 10:50:52 -07:00
|
|
|
|
2012-07-26 13:54:45 -07:00
|
|
|
- (void)toggleLikeComment:(BOOL)likeComment;
|
2010-11-22 10:44:52 -05:00
|
|
|
- (void)showStory;
|
2012-07-30 14:58:57 -07:00
|
|
|
- (void)scrolltoComment;
|
2012-06-27 21:28:04 -07:00
|
|
|
- (void)changeWebViewWidth:(int)width;
|
2012-07-03 17:54:36 -07:00
|
|
|
- (void)showUserProfile:(NSString *)userId xCoordinate:(int)x yCoordinate:(int)y width:(int)width height:(int)height;
|
2012-11-05 17:16:10 -08:00
|
|
|
- (void)setFontStyle:(NSString *)fontStyle;
|
|
|
|
- (void)changeFontSize:(NSString *)fontSize;
|
2012-07-10 12:34:58 -07:00
|
|
|
- (void)initStory;
|
2012-08-01 12:41:02 -07:00
|
|
|
- (void)clearStory;
|
2012-06-24 18:17:22 -07:00
|
|
|
|
2012-08-15 19:31:34 -07:00
|
|
|
- (void)showShareHUD:(NSString *)msg;
|
2012-07-30 14:58:57 -07:00
|
|
|
- (void)refreshComments:(NSString *)replyId;
|
2012-11-05 17:16:10 -08:00
|
|
|
|
2012-10-15 09:16:01 -07:00
|
|
|
- (void)openShareDialog;
|
2012-07-26 13:54:45 -07:00
|
|
|
- (void)finishLikeComment:(ASIHTTPRequest *)request;
|
2012-08-06 19:21:39 -07:00
|
|
|
- (void)subscribeToBlurblog;
|
|
|
|
- (void)finishSubscribeToBlurblog:(ASIHTTPRequest *)request;
|
2012-06-29 12:54:52 -07:00
|
|
|
- (void)requestFailed:(ASIHTTPRequest *)request;
|
2012-11-05 17:16:10 -08:00
|
|
|
- (void)setActiveStoryAtIndex:(NSInteger)activeStoryIndex;
|
2012-08-07 11:27:00 -07:00
|
|
|
- (NSString *)getShareBar;
|
|
|
|
- (NSString *)getComments;
|
2012-06-25 20:28:07 -07:00
|
|
|
- (NSString *)getComment:(NSDictionary *)commentDict;
|
2012-07-20 15:54:10 -07:00
|
|
|
- (NSString *)getReplies:(NSArray *)replies forUserId:(NSString *)commentUserId;
|
2012-08-10 09:45:44 -07:00
|
|
|
- (NSString *)getAvatars:(NSString *)key;
|
2012-06-22 18:01:08 -07:00
|
|
|
- (NSDictionary *)getUser:(int)user_id;
|
2012-07-24 15:29:01 -07:00
|
|
|
- (void)transitionFromFeedDetail;
|
2010-11-13 18:32:43 -05:00
|
|
|
|
2012-08-06 19:21:39 -07:00
|
|
|
|
|
|
|
|
2010-06-25 18:36:01 -04:00
|
|
|
@end
|