CPhCltMessenger Class Reference
class CPhCltMessenger : public CBase |
Messenger interface: provides two-way communication between two or more clients. Meant for Phone and Video Telephony application information transfer.
PhoneClient.lib
- Since
- 3.2
Constructor & Destructor Documentation
CPhCltMessenger()
CPhCltMessenger | ( | ) | [protected] |
Member Functions Documentation
CancelRequest(const TPhCltMessengerRequest &)
Cancel request. This method should only be called in destruction to make sure that messages are not missed.
NewL(const TUid &, const TInt &)
Parameters
const TUid & aCategoryUid | Category of messages to be sent or received. Note that there can be many kinds of message uids below one category uid. |
const TInt & aDefaultMessageSize | The default size of the messages to be sent or received in bytes. Can be bigger than KPhCltDefMesSize, but then functionality is not guaranteed. |
Receive(TRequestStatus &, TInt &, TDes8 &)
Receives next message. No memory is allocated during the operation of this method.
Parameters
TRequestStatus & aStatus | This request will be completed once message has been received. |
TInt & aMessageSize | Tells the size of the received message. If bigger than the size of the aMessagePayload, then only the beginning of the received message is copied to aMessagePayload. This means that either Receive must be called with bigger buffer to receive full message or Skip must be called to indicate that the full message is not needed. |
TDes8 & aMessagePayload | Storage to the message to be received. The format of the message is determined by the category Uid used in Open method. |
Send(TRequestStatus &, const TDesC8 &)
Sends message. This is completed only after message has been delivered to all receivers of the same category. No memory is allocated during the operation of this method.
Parameters
TRequestStatus & aStatus | This request will be completed once message has been sent. |
const TDesC8 & aMessagePayload | The sent message.The format of the message is determined by the category Uid used in Open method. |
Skip()
Skip one (i.e. next) message. This method should be called only if Receive completion indicates that there is not enough space in aMessagePayload. Of course, you should attempt to recover, i.e. try to call Receive with big enough aMessagePayload buffer before calling this method.
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.