| class CBtClientMtm : public CObexClientMtm |
Bluetooth Client MTM.
Provides client-side functionality for bluetooth messaging. This is a thin implementation over the top of CObexClientMtm .
| Public Member Functions | |
|---|---|
| void | AddAddresseeL (const TDesC &) |
| CMsvOperation * | InvokeAsyncFunctionL ( TInt , const CMsvEntrySelection &, TDes8 &, TRequestStatus &) |
| IMPORT_C CBtClientMtm * | NewL ( CRegisteredMtmDll &, CMsvSession &) |
| Private Member Functions | |
|---|---|
| CBtClientMtm ( CRegisteredMtmDll &, CMsvSession &) | |
| void | CreateMessageOperationL ( CMsvOperation *&, const CMsvEntrySelection &, TRequestStatus &) |
| void | InitialiseHeaderL () |
| TBool | ParseDestinationFieldL ( TUint16 , TDes8 &, TPtrC &) |
| void | ParseDestinationL (const TDesC &, TDes8 &, TDes16 &, TInt &, TInt &) |
| Private Member Enumerations | |
|---|---|
| enum | TBtClientMtmAddresseeFieldType { EDeviceAddress , EPassword , ETimeout , EPutTimeout , EAlternativeConnectTimeout = 0x08 } |
| Inherited Attributes | |
|---|---|
| CBaseMtm::iAddresseeList | |
| CBaseMtm::iCharFormatLayer | |
| CBaseMtm::iMsvEntry | |
| CBaseMtm::iParaFormatLayer | |
| CObexClientMtm::iHeader | |
| CBtClientMtm | ( | CRegisteredMtmDll & | aRegisteredMtmDll, |
| CMsvSession & | aMsvSession | ||
| ) | [private] | ||
Constructor--not for use by client applications
| CRegisteredMtmDll & aRegisteredMtmDll | Registration data for MTM DLL. |
| CMsvSession & aMsvSession | CMsvSession of the client requesting the object. |
| void | AddAddresseeL | ( | const TDesC & | anAddressee | ) | [virtual] |
Add a Bluetooth addressee
_LIT(KTestAddressee1, "XXX:\1Password:\2AA:\3BB");
_LIT(KTestAddressee2, "XXX:\1Password:\2AA");
_LIT(KTestAddressee3, "XXX:\1Password");
_LIT(KTestAddressee4, "XXX");
XXX : BT device address (6 bytes) : : Password tag sequence (4 bytes) [EBtClientMtmAddresseeFieldTypePassword] Password : 0-16 characters (0-32 bytes) : : Connection timeout tag sequence (4 bytes) [EBtClientMtmAddresseeFieldTypeConnectionTimeout] AA : Connection timeout (1 TInt = 4 bytes) : : Put timeout tag sequence (4 bytes) [EBtClientMtmAddresseeFieldTypePutTimeout] BB : Put timeout (1 TInt = 4 bytes)
| const TDesC & anAddressee | Addressee field of the following format |
| void | CreateMessageOperationL | ( | CMsvOperation *& | aOperation, |
| const CMsvEntrySelection & | aSelection, | |||
| TRequestStatus & | aCompletionStatus | |||
| ) | [private] | |||
| CMsvOperation *& aOperation | |
| const CMsvEntrySelection & aSelection | |
| TRequestStatus & aCompletionStatus |
| void | InitialiseHeaderL | ( | ) | [private, virtual] |
Deletes the old header, then creates a new CBtHeader .
| CMsvOperation * | InvokeAsyncFunctionL | ( | TInt | aFunctionId, |
| const CMsvEntrySelection & | aSelection, | |||
| TDes8 & | aParameter, | |||
| TRequestStatus & | aCompletionStatus | |||
| ) | [virtual] | |||
Starts an asynchronous function as an active object. Only works for EBtcCmdSend.
| TInt aFunctionId | Identifier of the function to be invoked. Only supports EBtcCmdSend and KMTMStandardFunctionsSendMessage. |
| const CMsvEntrySelection & aSelection | Selction of message entries for the requested function to operate on. |
| TDes8 & aParameter | Buffer containing input and output parameters. |
| TRequestStatus & aCompletionStatus | Canonical TRequestStatus used for control of the active object. |
| IMPORT_C CBtClientMtm * | NewL | ( | CRegisteredMtmDll & | aRegisteredMtmDll, |
| CMsvSession & | aMsvSession | |||
| ) | [static] | |||
Canonical NewL factory function.
| CRegisteredMtmDll & aRegisteredMtmDll | Reference to registration data for MTM DLL. |
| CMsvSession & aMsvSession | Reference to CMsvSession of the client requesting the object. |
| TBool | ParseDestinationFieldL | ( | TUint16 | aFieldTag, |
| TDes8 & | aField, | |||
| TPtrC & | aFieldList | |||
| ) | [private] | |||
Parse bluetooth addressee field
| void | ParseDestinationL | ( | const TDesC & | aFieldsToParse, |
| TDes8 & | aDeviceAddress, | |||
| TDes16 & | aPassword, | |||
| TInt & | aConnectTimeout, | |||
| TInt & | aPutTimeout | |||
| ) | [private] | |||
Parse bluetooth addressing information from addressee list.
| EDeviceAddress | |
| EPassword | |
| ETimeout | |
| EPutTimeout | |
| EAlternativeConnectTimeout = 0x08 |
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.