diff -r 000000000000 -r 29b1cd4cb562 bluetoothmgmt/btcommon/inc/sdpkey.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothmgmt/btcommon/inc/sdpkey.h Fri Jan 15 08:13:17 2010 +0200 @@ -0,0 +1,78 @@ +// Copyright (c) 2001-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 SDPKEY_H +#define SDPKEY_H + +#include +#include +#include "sdpconsts.h" +//#include "sdpclient.h" + + +// +// SDP Query specifications +// + +const static TUint KSDPConnectQuery = 1; +const static TUint KSDPServiceQuery = 2; +const static TUint KSDPAttributeQuery = 3; +const static TUint KSDPEncodedQuery = 4; +const static TUint KSDPCancelQuery = 5; +const static TUint KSDPRetrieveResultQuery = 0x7f; +const static TUint KSDPBufferResult = 0x80; + +struct TSDPConnectQuery + { + TUint iQueryType; //< Must be set to KSDPConnectQuery + TBTDevAddr iAddr; //< The address to contact + }; +typedef TPckgBuf TSDPConnectBuf; + +struct TSDPServiceSearchKey + { + TUint iQueryType; //< Must be set to KSDPServiceQuery + TUint16 iMaxCount; //< Maximum number of records to return + TUUID iUUID; //< The UUID to match + TUint8 iStateLength;//< Length of the continuation state + TUint8 iContinuationState[KSdpContinuationStateMaxLength];//< 0 to 16 bytes of continuation state + }; +typedef TPckgBuf TSDPServiceSearchKeyBuf; + +struct TSDPAttributeKey + { + TUint iQueryType; //< Must be set to KSDPAttributeQuery + TUint iServiceRecordHandle;// TSDPAttributeKeyBuf; + +struct TSDPEncodedKey + { + TUint iQueryType; + TUint8 iPduId; + }; + +typedef TPckgBuf TSDPEncodedKeyBuf; + + +#endif