CEComServerSession Class Reference
class CEComServerSession : public CSession2
|
-
Since
-
7.0 Provides the server side session which handles the messages from
REComSession
, unpacking the input message parameters, calling the server and packaging the the returned data as output message parameters. Warning : The implementation of the ListImplementations method for returning an arbitrary sized data set uses a 2 phase collection method that will not work IF the session is shared and two client calls on this method are interleaved. It leads to incorrect results for one of them, with potentially fatal results. so... DO NOT SHARE SERVER SIDE SESSIONS BETWEEN CLIENTS
Nested Classes and Structures
Constructor & Destructor Documentation
~CEComServerSession()
~CEComServerSession
|
(
|
)
|
[private]
|
Member Functions Documentation
CleanupInternalList()
void
|
CleanupInternalList
|
(
|
)
|
[private]
|
Intended Usage : Releases the list of
CImplementationInformation
pointers that are stored within the iList variable after a successful call to the DoListImplementations service.
-
Since
-
7.0
-
Pre-condition
-
REComServerSession is fully constructed.
-
Post-condition
-
The resources held by iList are released, and iList is NULL.
CompleteNotifications(TInt)
void
|
CompleteNotifications
|
(
|
TInt
|
aCompletionCode
|
)
|
|
Intended Usage : Completes all the outstanding notification requests with the supplied error code.
-
Since
-
7.0
-
Pre-condition
-
REComServerSession is fully constructed.
-
Post-condition
-
The notifications contained on the iNotificationRequests array have been completed with aCompletionCode, and the array has been cleared.
Parameters
TInt
aCompletionCode
|
The code with which to complete the notifications.
|
CreateL()
void
|
CreateL
|
(
|
)
|
[virtual]
|
DoCollectListL(const TClientRequest &)
DoGetResolvedImplementationL(const TClientRequest &)
void
|
DoGetResolvedImplementationL
|
(
|
const
TClientRequest
&
|
aMessage
|
)
|
[private]
|
DoListExtendedInterfacesL(const TClientRequest &)
void
|
DoListExtendedInterfacesL
|
(
|
const
TClientRequest
&
|
aMessage
|
)
|
[private]
|
DoListImplementationsL(const TClientRequest &)
void
|
DoListImplementationsL
|
(
|
const
TClientRequest
&
|
aMessage
|
)
|
[private]
|
DoSetGetParametersL(const TClientRequest &)
void
|
DoSetGetParametersL
|
(
|
const
TClientRequest
&
|
aMessage
|
)
|
[private]
|
ReceivePending()
TBool
|
ReceivePending
|
(
|
)
|
const [private, inline]
|
ServiceL(const RMessage2 &)
void
|
ServiceL
|
(
|
const
RMessage2
&
|
aMessage
|
)
|
[private, virtual]
|
Handles the servicing of a client request that has been passed to the server.
This function must be implemented in a derived class. The details of the request are contained within the message.
Parameters
const
RMessage2
& aMessage
|
The message containing the details of the client request.
|
ServiceL(const TClientRequest &)
UnpackMatchStrAndExtendedInterfacesFromClientL(const TClientRequest &, RExtendedInterfacesArray &, RBuf8 &)
UnPack the match string and extended interface from the client supplied parameters.
Parameters
const
TClientRequest
& aMessage
|
|
RExtendedInterfacesArray
& aExtendedInterfaces
|
Return value consisting of an array containing the extended interfaces.
|
RBuf8
& aMatchStr
|
Return value consisting of the matching string.
|
Member Data Documentation
RImplInfoArray * iList
A successful ListImplementations service request generates a list of
CImplementationInformation
pointers that are stored within this list.
TInt
iListContext
TInt
|
iListContext
|
[private]
|
The last ListImplementations service request
CBufFlat * iMemoryStore
The externalised data from a ListImplementations service call held for return, pending the collection service call.
RArray< SEComNotification > iNotificationRequests
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.