MHtiDispatcher Class Reference
Interface to the HTI dispatcher used by service plug-ins for message sending.
Member Functions Documentation
AddMemoryObserver(MHtiMemoryObserver *)
DispatchOutgoingErrorMessage(TInt, const TDesC8 &, const TUid)
TInt
|
DispatchOutgoingErrorMessage
|
(
|
TInt
|
aErrorCode,
|
|
const
TDesC8
&
|
aErrorDescription,
|
|
const
TUid
|
aTargetServiceUid
|
|
)
|
[pure virtual]
|
Parameters
TInt
aErrorCode
|
|
const
TDesC8
& aErrorDescription
|
|
const
TUid
aTargetServiceUid
|
|
DispatchOutgoingMessage(TDesC8 *, const TUid, TBool, THtiMessagePriority)
Send message from the service back to host client. Transfer ownership of aMessage. The function adds messages to the outgoing queue. Message will be actualy sent later. Function can return KErrNoMemory if there is not enough memory to add it to the queue. Plug-in use AddMemoryObserver to be notified later when memory will be available to continue data transfer.
Parameters
TDesC8
* aMessage
|
contain server-specific data
|
const
TUid
aTargetServiceUid
|
service UID
|
TBool
aWrappedFlag
|
shoud set to ETrue if message should be wrapped by security manager
|
THtiMessagePriority
aPriority
|
message priority
|
DispatchOutgoingMessage(TDesC8 *, const TUid)
TInt
|
DispatchOutgoingMessage
|
(
|
TDesC8
*
|
aMessage,
|
|
const
TUid
|
aTargetServiceUid
|
|
)
|
[pure virtual]
|
GetFreeMemory()
TInt
|
GetFreeMemory
|
(
|
)
|
[pure virtual]
|
Returns tha amount of currenly available memory for messages.
Notify(TInt)
void
|
Notify
|
(
|
TInt
|
anError
|
)
|
[pure virtual]
|
Notifis dispatcher that some async request is over. Should be used when plug-in uses async services and enters in a busy state (IsBusy() returns true) Should be called when plug-in is able to process new messages again
RemoveMemoryObserver(MHtiMemoryObserver *)
ShutdownAndRebootDeviceL()
void
|
ShutdownAndRebootDeviceL
|
(
|
)
|
[pure virtual]
|
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.