CAgentAdapterSessionNotifier Class Reference
class CAgentAdapterSessionNotifier : public CBase
|
This class is an Adapter to allow CAgentBase to Notify for ServiceChangeNotification post-399.
Inherits from
-
CAgentAdapterSessionNotifier
Constructor & Destructor Documentation
CAgentAdapterSessionNotifier(CAgentAdapter *, const Messages::TNodeId &)
Private Constructor to realize Phase #1 Construction.
~CAgentAdapterSessionNotifier()
~CAgentAdapterSessionNotifier
|
(
|
)
|
[virtual]
|
Destructor. It also complete the internal RResponseMsg returning "KErrCancel" if it was not done before.
Member Functions Documentation
CancelServiceChangeNotification(TInt)
void
|
CancelServiceChangeNotification
|
(
|
TInt
|
aReason =
KErrCancel
|
)
|
[virtual]
|
Implementation of
MAgentSessionNotify
interface. This send back the ServiceChangeNotification to the Client side, but with the Status set to "aReason".
Parameters
TInt
aReason =
KErrCancel
|
The Reason for this Cancel. Default value is "KErrCancel".
|
ConstructL(ESock::RLegacyResponseMsg &)
Phase #2 Constructor. It stores a copy the original RResponseMsg to allow to answer "later" to the request of Service Change Notification.
NewL(CAgentAdapter *, const Messages::TNodeId &, ESock::RLegacyResponseMsg &)
2-Phase Static Constructor.
NewL(CAgentAdapter *, const Messages::TNodeId &)
2-Phase Static Constructor. This constructor builds an "empty" AgentAdapterSessionNotifier. It does not contain a RResponseMsg. In general, not supposed to be used.
Parameters
CAgentAdapter
* aCreator
|
Creator of this AgentAdapterSessionNotifier
|
const
Messages::TNodeId
& aSender
|
The Node which asked to be notified for Serv.Change Notif.
|
NodeId()
Return an Id that identify this Agent Session
ServiceChangeNotification(TUint32, const TDesC &)
void
|
ServiceChangeNotification
|
(
|
TUint32
|
aId,
|
|
const
TDesC
&
|
aType
|
|
)
|
[virtual]
|
Implementation of
MAgentSessionNotify
interface. This send back the ServiceChangeNotification to the Client side, updating the Id and the Type.
operator==(const CAgentAdapterSessionNotifier &)
Operator to allow the usage of Find(...) inside a R(Pointer)Array container
Member Data Documentation
CAgentAdapter * iCreator
The AgentAdapter which has created this object. This Pointer allows this
CAgentAdapterSessionNotifier
to remove itself from the Array in the Creator (Queue of S.C. Notifications)
ESock::RLegacyResponseMsg * iResponseMsg
The RResponseMsg to use to answer(notify) the request.
Messages::TNodeId
iSender
This identify "who" asked for being notified.
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.