mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
48 lines
1.4 KiB
Objective-C
Executable file
48 lines
1.4 KiB
Objective-C
Executable file
#import <Cocoa/Cocoa.h>
|
|
|
|
@interface TestClientMainWindowController : NSWindowController<XMLRPCConnectionDelegate> {
|
|
XMLRPCResponse *myResponse;
|
|
IBOutlet NSTextField *myRequestURL;
|
|
IBOutlet NSTextField *myMethod;
|
|
IBOutlet NSTextField *myParameter;
|
|
IBOutlet NSProgressIndicator *myProgressIndicator;
|
|
IBOutlet NSTextField *myActiveConnection;
|
|
IBOutlet NSButton *mySendRequest;
|
|
IBOutlet NSTextView *myRequestBody;
|
|
IBOutlet NSTextView *myResponseBody;
|
|
IBOutlet NSOutlineView *myParsedResponse;
|
|
}
|
|
|
|
+ (TestClientMainWindowController *)sharedController;
|
|
|
|
#pragma mark -
|
|
|
|
- (void)showTestClientWindow: (id)sender;
|
|
|
|
- (void)hideTestClientWindow: (id)sender;
|
|
|
|
#pragma mark -
|
|
|
|
- (void)toggleTestClientWindow: (id)sender;
|
|
|
|
#pragma mark -
|
|
|
|
- (void)sendRequest: (id)sender;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@interface TestClientMainWindowController (XMLRPCConnectionDelegate)
|
|
|
|
- (void)request: (XMLRPCRequest *)request didReceiveResponse: (XMLRPCResponse *)response;
|
|
|
|
- (void)request: (XMLRPCRequest *)request didFailWithError: (NSError *)error;
|
|
|
|
- (void)request: (XMLRPCRequest *)request didReceiveAuthenticationChallenge: (NSURLAuthenticationChallenge *)challenge;
|
|
|
|
- (void)request: (XMLRPCRequest *)request didCancelAuthenticationChallenge: (NSURLAuthenticationChallenge *)challenge;
|
|
|
|
- (BOOL)request: (XMLRPCRequest *)request canAuthenticateAgainstProtectionSpace: (NSURLProtectionSpace *)protectionSpace;
|
|
|
|
@end
|