RMSession Class Reference

Handles sessions in WIRemoting framework. More...

#import <RMSession.h>

Inheritance diagram for RMSession:
<RMResultDelegate>

List of all members.

Public Member Functions

(id) - initWithAuthenticator:call:
 Initiate a session with an authentication delegate.
(void) - authenticate
 Authenticate the session.
(BOOL) - call:arguments:
 Call a method.
(BOOL) - call:arguments:delegate:
 Call a remote method with a temporary delegate.
(void) - close
 Close a session.
(void) - addDelegate:
 Add a new delegate.
(void) - removeDelegate:
 Remove a delegate.

Protected Attributes

id< RMAuthenticatorauthenticator
NSMutableArray * delegateChain

Properties

RMCallcall
 The call object to handle session calls.
id semaphore
 Semaphore for locking.
BOOL authenticated
 Return the state whether the session is authenticated.

Detailed Description

Handles sessions in WIRemoting framework.

Definition at line 62 of file RMSession.h.


Member Function Documentation

- (id) initWithAuthenticator: (id<RMAuthenticator>)  authenticator
call: (RMCall*)  call 

Initiate a session with an authentication delegate.

Parameters:
authenticator An authentication service provider.
call A call object to handle session calls.
Returns:
An initiated RMSession object.

Definition at line 18 of file RMSession.m.

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

Call a method.

Parameters:
method The method name.
arguments Method arguments.

Definition at line 132 of file RMSession.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 140 of file RMSession.m.

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

Add a new delegate.

Parameters:
delegate A delegate

Definition at line 46 of file RMSession.m.

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

Remove a delegate.

Parameters:
delegate A delegate

Definition at line 53 of file RMSession.m.


Property Documentation

- (BOOL) authenticated [read, assign]

Return the state whether the session is authenticated.

Returns:
whether the session is authenticated.

Definition at line 66 of file RMSession.h.


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