9 #import <Foundation/Foundation.h>
12 @class UIViewController;
14 -(void) login:(CSVoidBlock)success error:(CSErrorBlock) error;
17 -(UIViewController*) presentingViewController;
18 -(BOOL) isAuthenticated;
20 -(id) showDialogWithMessage:(NSString*) message
21 photo:(UIImage*) photo
22 handler:(CSErrorBlock) handlerBlock;
26 @property(nonatomic, copy) CSVoidBlock loginSuccessBlock;
27 @property(nonatomic, copy) CSErrorBlock loginFailedBlock;
28 @property(nonatomic, strong) OAuth *oAuth;
29 @property(nonatomic, readonly, strong) NSString *consumerKey;
30 @property(nonatomic, readonly, strong) NSString *consumerSecret;
36 -(void) saveOAuth:(OAuth*) oAuth;
37 -(void) loadOAuth:(OAuth*) oAuth;
40 -(NSError*) errorWithLocalizedDescription:(NSString*) description errorCode:(NSInteger) errorCode;
41 -(NSError*) errorWithLocalizedDescription:(NSString*) description;
42 -(NSError*) errorInvalidReturnValue;
43 -(NSError*) errorAccountNotFound;
44 -(NSError*) errorUnsupportedSDK;
45 -(NSError*) errorTwitterLoginFailed;
46 -(NSError*) errorTwitterUserCancelled;