diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_count_session.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_count_session.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,294 @@ + +
+Public Member Functions | |
CCountSession () | |
void | CreateL () |
void | ServiceL (const RMessage2 &aMessage) |
void | DispatchMessageL (const RMessage2 &aMessage) |
void | NewCounterL (const RMessage2 &aMessage) |
void | CloseSession () |
void | NumResourcesL (const RMessage2 &aMessage) |
CCountSubSession * | CounterFromHandle (const RMessage2 &aMessage, TInt aHandle) |
void | DeleteCounter (TInt aHandle) |
+TInt | CountResources () |
void | PanicClient (const RMessage2 &aMessage, TInt aPanic) const |
Static Public Member Functions | |
+static CCountSession * | NewL () |
Definition at line 105 of file ComplexServer.h.
+CCountSession::CCountSession | +( | ++ | ) | ++ |
+Constructor +
Definition at line 30 of file ComplexServerCCountSession.cpp.
+ ++
void CCountSession::CreateL | +( | ++ | ) | ++ |
+Called by client/server framework after session has been successfully created.
+In effect, a second-phase constructor.
+Creates:
+1. the object index 2. the object container for this session.
+We are then ready for subsessions. +
Definition at line 48 of file ComplexServerCCountSession.cpp.
+ +void CCountSession::ServiceL | +( | +const RMessage2 & | +aMessage | +) | ++ |
+First line servicing of a client request.
+This function dispatches requests to the appropriate handler. Some messages are handled by the session itself, and are implemented as CCountSession member functions, while other messages are handled by the subsession, and are implemented as CCountSubSession member functions. +
Definition at line 104 of file ComplexServerCCountSession.cpp.
+ +void CCountSession::DispatchMessageL | +( | +const RMessage2 & | +aMessage | +) | ++ |
+Called by ServiceL()
+It tests the function code and then delegates to the appropriate function. +
Definition at line 117 of file ComplexServerCCountSession.cpp.
+ +void CCountSession::NewCounterL | +( | +const RMessage2 & | +aMessage | +) | ++ |
+Creates a new counter object, and passes its handle back via the message.
+The counter object is the server side "partner" to the client side subsession. +
Definition at line 178 of file ComplexServerCCountSession.cpp.
+ +void CCountSession::CloseSession | +( | ++ | ) | ++ |
+Closes the session.
+It deletes the object index and object container.
+This could be done in the destructor, but it seems neater to do it here. +
Definition at line 66 of file ComplexServerCCountSession.cpp.
+ +void CCountSession::NumResourcesL | +( | +const RMessage2 & | +aMessage | +) | ++ |
+Gets the number of resources, i.e. the number of CCount objects that exist on the server side. +
Definition at line 248 of file ComplexServerCCountSession.cpp.
+ +CCountSubSession * CCountSession::CounterFromHandle | +( | +const RMessage2 & | +aMessage, | +|
+ | + | TInt | +aHandle | + |
+ | ) | ++ |
+A simple utility function to return the appropriate CCountSubSession object given a client's subsession handle. Panics client if the handle cannot be found. +
Definition at line 83 of file ComplexServerCCountSession.cpp.
+ +void CCountSession::DeleteCounter | +( | +TInt | +aHandle | +) | ++ |
+Delete a subsession (counter) object through its handle. +
Definition at line 222 of file ComplexServerCCountSession.cpp.
+ +void CCountSession::PanicClient | +( | +const RMessage2 & | +aMessage, | +|
+ | + | TInt | +aPanic | + |
+ | ) | +const | +
+Panics the client +
Definition at line 258 of file ComplexServerCCountSession.cpp.
+ ++