CocoaShare/Classes/Dropbox/DropboxSDK/MPOAuth/MPOAuthConnection.h

29 lines
1.1 KiB
C
Raw Normal View History

2011-02-01 09:51:02 -06:00
//
// MPOAuthConnection.h
// MPOAuthConnection
//
// Created by Karl Adam on 08.12.05.
// Copyright 2008 matrixPointer. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol MPOAuthCredentialStore;
@protocol MPOAuthParameterFactory;
@class MPOAuthURLRequest;
@class MPOAuthURLResponse;
@class MPOAuthCredentialConcreteStore;
@interface MPOAuthConnection : NSURLConnection {
@private
MPOAuthCredentialConcreteStore *credentials;
}
- (id<MPOAuthCredentialStore,MPOAuthParameterFactory>)credentials;
+ (MPOAuthConnection *)connectionWithRequest:(MPOAuthURLRequest *)inRequest delegate:(id)inDelegate credentials:(NSObject <MPOAuthCredentialStore, MPOAuthParameterFactory> *)inCredentials;
+ (NSData *)sendSynchronousRequest:(MPOAuthURLRequest *)inRequest usingCredentials:(NSObject <MPOAuthCredentialStore, MPOAuthParameterFactory> *)inCredentials returningResponse:(MPOAuthURLResponse **)outResponse error:(NSError **)inError;
- (id)initWithRequest:(MPOAuthURLRequest *)inRequest delegate:(id)inDelegate credentials:(NSObject <MPOAuthCredentialStore, MPOAuthParameterFactory> *)inCredentials;
@end