diff -r 6a20128ce557 -r ebfee66fde93 messagingappbase/obexmtms/btmtm/btclient/Include/btcmtm.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingappbase/obexmtms/btmtm/btclient/Include/btcmtm.h Fri Jun 04 10:25:39 2010 +0100 @@ -0,0 +1,173 @@ +// 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 "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __BTCMTM_H__ +#define __BTCMTM_H__ + +#include + +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS +#include "msvconsts.h" +#endif + + +/* 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; //