apicompatanamdw/bcdrivers/os/shortlinksrv/Bluetooth/common/inc/T_BTUtil.h
changeset 2 0cb2248d0edc
child 19 0b6b101bb0e1
equal deleted inserted replaced
1:61e9400fe245 2:0cb2248d0edc
       
     1 /*
       
     2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if (!defined __T_BT_UTIL_H__)
       
    20 #define __T_BT_UTIL_H__
       
    21 
       
    22 //	EPOC includes
       
    23 #include <datawrapper.h>
       
    24 #include <btsdp.h>
       
    25 #include <es_sock.h>
       
    26 
       
    27 class CT_BTUtil : public CBase
       
    28 	{
       
    29 public:
       
    30 	static TBool				ReadSdpElementType(CDataWrapper& aDataWrapper, TSdpElementType& aType, const TDesC& aSection, const TDesC& aField);
       
    31 	static MSdpElementBuilder*	ElementBuilderCastL(CDataWrapper& aDataWrapper, const TDesC& aObjectName, const TDesC& aTypeName);
       
    32 	static CSdpAttrValueList*	AttrValueListCastL(CDataWrapper& aDataWrapper, const TDesC& aObjectName, const TDesC& aTypeName);
       
    33 	static TUint				ConvertUUID32toInt(const TUUID& aUUID);
       
    34 
       
    35 	// Uses a default value when not matched
       
    36 	static void					GetLowPowerMode(CDataWrapper& aDataWrapper, const TDesC& aSection, TUint32& aModes);
       
    37 	static TBool				GetShutdown(CDataWrapper& aDataWrapper, const TDesC& aSection, RSocket::TShutdown& aShutdown);
       
    38 	static void					GetTBTPacketType(CDataWrapper& aDataWrapper, const TDesC& aSection, TInt& aType);
       
    39 	static void					GetLinkStateNotifierBits(CDataWrapper& aDataWrapper, const TDesC& aSection, TUint32& aModes);
       
    40 
       
    41 	// Informs when match not found
       
    42 	static TBool				GetIntValue(TPtrC aConstantName, TInt& aValue);
       
    43 	};
       
    44 
       
    45 #endif /* __T_BT_UTIL_H__ */