NewsBlur/clients/ios/Classes/ShareViewController.h

45 lines
1.7 KiB
C
Raw Normal View History

2012-06-21 11:53:48 -07:00
//
// ShareViewController.h
// NewsBlur
//
// Created by Roy Yang on 6/21/12.
// Copyright (c) 2012 NewsBlur. All rights reserved.
//
#import <UIKit/UIKit.h>
2012-06-22 11:52:10 -07:00
#import "NewsBlurAppDelegate.h"
2012-06-21 11:53:48 -07:00
@interface ShareViewController : BaseViewController <ASIHTTPRequestDelegate, UITextViewDelegate> {
2012-06-21 11:53:48 -07:00
NewsBlurAppDelegate *appDelegate;
NSString *activeReplyId;
2012-06-21 11:53:48 -07:00
}
@property (nonatomic) IBOutlet UITextView *commentField;
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
@property (nonatomic) IBOutlet UIButton *facebookButton;
@property (nonatomic) IBOutlet UIButton *twitterButton;
@property (nonatomic) IBOutlet UIButton *appdotnetButton;
@property (nonatomic) IBOutlet UIBarButtonItem *submitButton;
@property (nonatomic) IBOutlet UILabel *storyTitle;
@property (nonatomic) NSString * activeReplyId;
@property (nonatomic) NSString * activeCommentId;
2012-08-13 23:54:10 -07:00
@property (nonatomic) NSString* currentType;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *keyboardHeight;
2012-06-21 11:53:48 -07:00
- (void)setCommentType:(NSString *)type;
- (void)setSiteInfo:(NSString *)type setUserId:(NSString *)userId setUsername:(NSString *)username setReplyId:(NSString *)commentIndex;
- (void)clearComments;
2012-06-21 11:53:48 -07:00
- (IBAction)doCancelButton:(id)sender;
2012-06-22 11:52:10 -07:00
- (IBAction)doToggleButton:(id)sender;
- (IBAction)doShareThisStory:(id)sender;
2012-06-25 18:05:25 -07:00
- (IBAction)doReplyToComment:(id)sender;
- (void)finishShareThisStory:(ASIHTTPRequest *)request;
- (void)finishAddReply:(ASIHTTPRequest *)request;
- (void)requestFailed:(ASIHTTPRequest *)request;
- (void)replaceStory:(NSDictionary *)newStory withReplyId:(NSString *)replyId;
- (void)adjustShareButtons;
2012-08-07 11:27:00 -07:00
- (void)adjustCommentField;
2012-07-25 20:38:44 -07:00
- (NSString *)stringByStrippingHTML:(NSString *)s;
2012-06-21 11:53:48 -07:00
@end