CDosEventListenerBase Class Reference
class CDosEventListenerBase : public CBase
|
This class provides with services to listen for events. The class is intended for derivation. The derived class should override all the events that its objects are going to register to.
Constructor & Destructor Documentation
CDosEventListenerBase(RDosServer &)
IMPORT_C
|
CDosEventListenerBase
|
(
|
RDosServer
&
|
aServer
|
)
|
|
Parameters
RDosServer
& aServer
|
A connected session to the DosServer.
|
CDosEventListenerBase()
IMPORT_C
|
CDosEventListenerBase
|
(
|
)
|
|
Constructor. It creates the sessions to the DosServer.
~CDosEventListenerBase()
IMPORT_C
|
~CDosEventListenerBase
|
(
|
)
|
|
Member Functions Documentation
DosServer()
Returns the session with the DosServer.
GeneralEventL(const TRegisterEvent &, TAny *)
IMPORT_C void
|
GeneralEventL
|
(
|
const
TRegisterEvent
&
|
aEvent,
|
|
TAny
*
|
aParameter
|
|
)
|
[protected, virtual]
|
This a raw event that is intended for expansion of the event functionality by licensees.
HandleEventL(const TRegisterEvent &, HBufC8 *)
This function handles the raw event and calls one of the "event functions".
OnError(TInt, TBool &)
IMPORT_C void
|
OnError
|
(
|
TInt
|
aError,
|
|
TBool
&
|
aStopListening
|
|
)
|
[virtual]
|
The function gets called whenever an error occurs and it can be overrided by the derived class.
Parameters
TInt
aError
|
Symbian error code.
|
TBool
& aStopListening
|
Put this parameter as ETrue if you wish the Listener to stop listening for the event that caused the error.
|
RegisterAndListenL()
void
|
RegisterAndListenL
|
(
|
)
|
[private]
|
Register the events and start listening for them.
StartListeningL(TRegisterEvent *, TInt)
It registers the object to all the events contained in aEventArray.
Parameters
TRegisterEvent
* aEventArray
|
An array of event for registration.
|
TInt
aEventCount
|
Number of events in the array.
|
StartListeningL(TUint, TInt, TQueueType)
IMPORT_C void
|
StartListeningL
|
(
|
TUint
|
aEvent,
|
|
TInt
|
aParamSize = 0,
|
|
TQueueType
|
aQueue = EQueue
|
|
)
|
|
It registers only one event.
Parameters
TUint
aEvent
|
Unique Id of the event.
|
TInt
aParamSize = 0
|
Size of the parameter that the event carries.
|
TQueueType
aQueue = EQueue
|
Type of queue wished for the event.
|
Member Data Documentation
TRegisterEvent * iEventList
TInt
iNotifierCount
TInt
|
iNotifierCount
|
[private]
|
TSglQueIter< CDosEventNotifier > iNotifierIter
TSglQue< CDosEventNotifier > iNotifierList
TBool
iOwnServer
TBool
|
iOwnServer
|
[private]
|
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.