diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/btcmtm.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/btcmtm.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,168 @@ +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __BTCMTM_H__ +#define __BTCMTM_H__ + +#include + + +/* This defines the maximum length that the connection password can be for BlueTooth. The PDU used for this + has a payload of 16 bytes. +*/ +#define KBlueToothObexPasswordLength 16 +const TInt KBlueToothObexDeviceAddressLength = 6; // 6 byte device address + +extern const TUint8 KObexConnectionIDHeader; + +class CBtClientMtm : public CObexClientMtm +/** +Bluetooth Client MTM. + +Provides client-side functionality for bluetooth messaging. This is a thin implementation over the top of +CObexClientMtm. + +@publishedPartner +@released +*/ + { +public: + + /** + * Canonical NewL factory function. + * + * @param aRegisteredMtmDll Reference to registration data for MTM DLL. + * @param aMsvSession Reference to CMsvSession of the client requesting the object. + * @return Pointer to a new, constructed CBtClientMtm + * @leave Leaves if no memory is available. + */ + IMPORT_C static CBtClientMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvSession& aMsvSession); + + /// Contains the timeout values for connect and put operations + struct STimeouts + { + TInt iConnectTimeout; ///< Connection attempt timeout in microseconds + TInt iPutTimeout; ///< Put attempt timeout in microseconds + }; + + /// Structure for parameter needed for sending via Bluetooth + struct SBtcCmdSendParams + { + STimeouts iTimeouts; ///< Structure containing connect and put operation timeouts + TInt iRemoteObexPort; ///< The value of the remote obex port + TDesC* iConnectPassword; /// iConnectPassword; ///