RMCall Class Reference

Handles calls in WIRemoting framework. More...

#import <RMCall.h>

List of all members.

Public Member Functions

(id) - initWithProtocol:
 Initiatize the call with a call protocol.
(BOOL) - call:arguments:
 Call a remote method.
(BOOL) - call:arguments:delegate:
 Call a remote method with a temporary delegate.
(BOOL) - call:arguments:protocol:
 Call a remote method with a specific call protocol.
(BOOL) - call:arguments:delegate:protocol:
 Call a remote method with a temporary delegate.
(void) - pushProtocol:
 Push a call protocol onto the protocol stack.
(id< RMCallProtocol >) - popProtocol
 Pop a call protocol from the protocol stack.
(id< RMCallProtocol >) - topProtocol
 Get the protocol on the top of the protocol stack.
(void) - addDelegate:
 Add a new delegate.
(void) - removeDelegate:
 Remove a delegate.
(void) - responseDone:
(void) - responseDone:

Protected Attributes

NSMutableArray * protocolStack
NSMutableArray * responseQueue
NSMutableArray * delegateChain
NSAutoreleasePool * autoReleasePool

Properties

id< RMCallProtocolprotocol
 A call protocol to adjust HTTP requests.
id semaphore
 A semaphore for locking.

Detailed Description

Handles calls in WIRemoting framework.

Definition at line 107 of file RMCall.h.


Member Function Documentation

- (id) initWithProtocol: (id<RMCallProtocol>)  protocol  

Initiatize the call with a call protocol.

Parameters:
protocol A call protocol.

Definition at line 30 of file RMCall.m.

- (BOOL) call: (NSString*)  method
arguments: (NSDictionary*)  arguments 

Call a remote method.

Parameters:
method The method name.
arguments The method arguments.
Returns:
whether the call is sent.

Definition at line 70 of file RMCall.m.

- (BOOL) call: (NSString*)  method
arguments: (NSDictionary*)  arguments
delegate: (id)  delegate 

Call a remote method with a temporary delegate.

Parameters:
method The method name.
arguments The method arguments.
delegate a delegate
Returns:
whether the call is sent.

Definition at line 78 of file RMCall.m.

- (BOOL) call: (NSString*)  method
arguments: (NSDictionary*)  arguments
protocol: (id<RMCallProtocol>)  protocol 

Call a remote method with a specific call protocol.

Call a remote method with the specified call protocol in the highest priority.

Parameters:
method The method name.
arguments The method arguments.
protocol The call protocol to execute on top of other protocols.
Returns:
whether the call is sent.

Definition at line 105 of file RMCall.m.

- (BOOL) call: (NSString*)  method
arguments: (NSDictionary*)  arguments
delegate: (id)  delegate
protocol: (id<RMCallProtocol>)  protocol 

Call a remote method with a temporary delegate.

Parameters:
method The method name.
arguments The method arguments.
delegate a delegate
protocol The call protocol to execute on top of other protocols.
Returns:
whether the call is sent.

Definition at line 91 of file RMCall.m.

- (void) pushProtocol: (id<RMCallProtocol>)  protocol  

Push a call protocol onto the protocol stack.

Parameters:
protocol A call protocol.

Definition at line 242 of file RMCall.m.

- (id< RMCallProtocol >) popProtocol  

Pop a call protocol from the protocol stack.

Returns:
The popped call protocol.

Definition at line 247 of file RMCall.m.

- (id< RMCallProtocol >) topProtocol  

Get the protocol on the top of the protocol stack.

Returns:
The protocol on the top of the stack.

Definition at line 254 of file RMCall.m.

- (void) addDelegate: (id<RMResultDelegate>)  delegate  

Add a new delegate.

Parameters:
delegate A delegate

Definition at line 259 of file RMCall.m.

- (void) removeDelegate: (id<RMResultDelegate>)  delegate  

Remove a delegate.

Parameters:
delegate A delegate

Definition at line 266 of file RMCall.m.


The documentation for this class was generated from the following files:

Generated on Wed Dec 9 23:55:12 2009 for WIRemoting by  doxygen 1.6.1