CXIMPContextEventQueue Class Reference

class CXIMPContextEventQueue : public CBase

Event queue for client to process.

Inherits from

  • CXIMPContextEventQueue

Constructor & Destructor Documentation

CXIMPContextEventQueue()

CXIMPContextEventQueue()[protected]

Construction

~CXIMPContextEventQueue()

~CXIMPContextEventQueue()

Destruction

Member Functions Documentation

ActivatePreservedEventL(CXIMPApiEventBase &)

voidActivatePreservedEventL(CXIMPApiEventBase &aEvent)

Activate preserved event for sending.

Parameters

CXIMPApiEventBase & aEvent

ActivateRequestCompleteEvent(CXIMPRequestCompleteEventImp &)

voidActivateRequestCompleteEvent(CXIMPRequestCompleteEventImp &aEvent)

Activate new request complete event to queue.

Parameters

CXIMPRequestCompleteEventImp & aEventEvent to activate.

AddEventL(CXIMPEventCapsule &)

voidAddEventL(CXIMPEventCapsule &aEvent)

Add new event to queue.

Parameters

CXIMPEventCapsule & aEvent

AddPreservedEventL(CXIMPApiEventBase &)

voidAddPreservedEventL(CXIMPApiEventBase &aEvent)[private]

Add new preserved event to queue.

Parameters

CXIMPApiEventBase & aEvent

ClearQueuedEvents()

voidClearQueuedEvents()[private]

Clear queued events.

ConstructL()

voidConstructL()[protected]

Construction

DropTopEvent()

IMPORT_C voidDropTopEvent()

FindNextEvent(RPointerArray< CXIMPEventCapsule > &)

TInt FindNextEvent(RPointerArray< CXIMPEventCapsule > &aArray)[private]

Find next ready event from array. Timestamp is used to choose first one. iNextEventToGo is filled with oldest event. iNextEventToGo can be filled with reference event before call.

Parameters

RPointerArray< CXIMPEventCapsule > & aArray

HasElements()

IMPORT_C TBoolHasElements()const

Check if there is elements.

NewL()

IMPORT_C CXIMPContextEventQueue *NewL()[static]

Construction

RemoveRequestCompleteEvent(CXIMPRequestCompleteEventImp &)

voidRemoveRequestCompleteEvent(CXIMPRequestCompleteEventImp &aEvent)

Remove request complete event from queue

Parameters

CXIMPRequestCompleteEventImp & aEventEvent to remove

SelectTopEventIfNeededL()

IMPORT_C voidSelectTopEventIfNeededL()

SessionIdOfQueue()

TUint32 SessionIdOfQueue()const [inline]

Get id of queue.

SetEventFilter(CXIMPContextEventFilter &)

IMPORT_C voidSetEventFilter(CXIMPContextEventFilter &aFilter)

Set event filter for filtering events

Parameters

CXIMPContextEventFilter & aFilterNew filter.

SetSessionIdOfQueue(TUint32)

voidSetSessionIdOfQueue(TUint32aId)[inline]

Set id of queue

Parameters

TUint32 aIdId of queue.

StartConsuming(MXIMPEventQueueObserver &)

IMPORT_C voidStartConsuming(MXIMPEventQueueObserver &aQueueObserver)

Start consuming events.

Parameters

MXIMPEventQueueObserver & aQueueObserverObserver to notify when event is ready

StopConsuming()

IMPORT_C voidStopConsuming()

Stop event consuming.

TopEventDataL()

IMPORT_C const TDesC8 &TopEventDataL()

TopEventReqIdL()

IMPORT_C TXIMPRequestIdTopEventReqIdL()

Member Data Documentation

CXIMPContextEventFilter * iEventFilter

CXIMPContextEventFilter *iEventFilter[private]

Event filter. Own.

RPointerArray< CXIMPEventCapsule > iEvents

RPointerArray< CXIMPEventCapsule >iEvents[private]

Events array. Reference to events own.

TUint32 iId

TUint32 iId[private]

Queue ID.

CXIMPEventCapsule * iNextEventToGo

CXIMPEventCapsule *iNextEventToGo[private]

Helper variable to contain next event to go.

MXIMPEventQueueObserver * iObserver

MXIMPEventQueueObserver *iObserver[private]

Queue observer. Ref.

RPointerArray< CXIMPEventCapsule > iPreservedEvents

RPointerArray< CXIMPEventCapsule >iPreservedEvents[private]

Preserved events array. Reference to events own.

RPointerArray< CXIMPEventCapsule > iRequestCompleteEvents

RPointerArray< CXIMPEventCapsule >iRequestCompleteEvents[private]

Request complete events waiting for completion.

TUint32 iTimeStamp

TUint32 iTimeStamp[private]

Timestamp for events.