NewsBlur/media/ios/Classes/StoryDetailViewController.h

69 lines
2.1 KiB
C
Raw Normal View History

//
// StoryDetailViewController.h
// NewsBlur
//
// Created by Samuel Clay on 6/24/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "BaseViewController.h"
@class NewsBlurAppDelegate;
2012-06-29 12:54:52 -07:00
@class ASIHTTPRequest;
@interface StoryDetailViewController : BaseViewController
<UIScrollViewDelegate> {
NewsBlurAppDelegate *appDelegate;
NSString *activeStoryId;
NSDictionary *activeStory;
UIView *innerView;
UIWebView *webView;
NSInteger pageIndex;
BOOL pullingScrollview;
}
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
@property (nonatomic) NSString *activeStoryId;
@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;
@property (nonatomic) IBOutlet UILabel *noStorySelectedLabel;
@property (nonatomic, assign) BOOL pullingScrollview;
@property NSInteger pageIndex;
2012-07-26 13:54:45 -07:00
- (void)toggleLikeComment:(BOOL)likeComment;
- (void)showStory;
- (void)scrolltoComment;
- (void)changeWebViewWidth:(int)width;
- (void)showUserProfile:(NSString *)userId xCoordinate:(int)x yCoordinate:(int)y width:(int)width height:(int)height;
- (void)setFontStyle:(NSString *)fontStyle;
- (void)changeFontSize:(NSString *)fontSize;
- (void)initStory;
2012-08-01 12:41:02 -07:00
- (void)clearStory;
2012-08-15 19:31:34 -07:00
- (void)showShareHUD:(NSString *)msg;
- (void)refreshComments:(NSString *)replyId;
- (void)openShareDialog;
2012-07-26 13:54:45 -07:00
- (void)finishLikeComment:(ASIHTTPRequest *)request;
- (void)subscribeToBlurblog;
- (void)finishSubscribeToBlurblog:(ASIHTTPRequest *)request;
2012-06-29 12:54:52 -07:00
- (void)requestFailed:(ASIHTTPRequest *)request;
- (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;
- (NSDictionary *)getUser:(int)user_id;
- (void)transitionFromFeedDetail;
@end