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