NewsBlur/media/ios/Classes/StoryDetailViewController.h

74 lines
2.5 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>
@class NewsBlurAppDelegate;
2012-06-29 12:54:52 -07:00
@class ASIHTTPRequest;
@interface StoryDetailViewController : UIViewController <UIPopoverControllerDelegate> {
NewsBlurAppDelegate *appDelegate;
NSString *activeStoryId;
UIProgressView *progressView;
UIView *innerView;
UIWebView *webView;
UIToolbar *toolbar;
UIBarButtonItem *buttonPrevious;
UIBarButtonItem *buttonNext;
UIBarButtonItem *activity;
UIBarButtonItem *toggleViewButton;
UIActivityIndicatorView *loadingIndicator;
UIPopoverController *popoverController;
}
2012-07-15 15:06:06 -07:00
@property (nonatomic, strong) UIActivityIndicatorView *loadingIndicator;
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
@property (nonatomic) NSString *activeStoryId;
@property (nonatomic) IBOutlet UIProgressView *progressView;
@property (nonatomic) IBOutlet UIView *innerView;
@property (nonatomic) IBOutlet UIWebView *webView;
@property (nonatomic) IBOutlet UIToolbar *toolbar;
@property (nonatomic) IBOutlet UIBarButtonItem *buttonPrevious;
@property (nonatomic) IBOutlet UIBarButtonItem *buttonNext;
@property (nonatomic) IBOutlet UIBarButtonItem *activity;
@property (nonatomic) IBOutlet UIBarButtonItem *toggleViewButton;
@property (nonatomic) IBOutlet UIBarButtonItem *buttonAction;
@property (nonatomic) IBOutlet UIView *feedTitleGradient;
@property (nonatomic) UIPopoverController *popoverController;
@property (nonatomic) IBOutlet UIBarButtonItem *buttonNextStory;
- (void)setNextPreviousButtons;
- (void)markStoryAsRead;
- (void)toggleView;
- (void)showStory;
- (void)scrolltoBottom;
- (void)showOriginalSubview:(id)sender;
- (IBAction)doNextUnreadStory;
- (IBAction)doNextStory;
- (IBAction)doPreviousStory;
- (void)changeWebViewWidth:(int)width;
- (void)showUserProfile:(NSString *)userId xCoordinate:(int)x yCoordinate:(int)y width:(int)width height:(int)height;
- (void)initStory;
2012-06-25 20:28:07 -07:00
- (void)refreshComments;
2012-06-29 12:54:52 -07:00
- (void)finishMarkAsRead:(ASIHTTPRequest *)request;
- (void)requestFailed:(ASIHTTPRequest *)request;
- (void)setActiveStory;
- (IBAction)toggleFontSize:(id)sender;
- (void)hideToggleFontSize;
- (void)setFontStyle:(NSString *)fontStyle;
- (void)changeFontSize:(NSString *)fontSize;
- (NSString *)getComments:(NSString *)type;
2012-06-25 20:28:07 -07:00
- (NSString *)getComment:(NSDictionary *)commentDict;
- (NSString *)getReplies:(NSArray *)replies;
- (NSString *)getAvatars:(BOOL)areFriends;
- (NSDictionary *)getUser:(int)user_id;
@end