bluetoothapitest/bluetoothsvs/T_BTSdpAPI/inc/T_DataSdpElementBuilder.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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_DATA_SDP_ELEMENT_BUILDER_H__)
       
    20 #define __T_DATA_SDP_ELEMENT_BUILDER_H__
       
    21 
       
    22 // User includes
       
    23 #include "DataWrapperBase.h"
       
    24 
       
    25 //	EPOC includes
       
    26 #include <btsdp.h>
       
    27 
       
    28 /**
       
    29  * Test Active Notification class
       
    30  *
       
    31  */
       
    32 class CT_DataSdpElementBuilder
       
    33 	{
       
    34 public:
       
    35 	CT_DataSdpElementBuilder(CDataWrapper& aDataWrapper);
       
    36 	~CT_DataSdpElementBuilder();
       
    37 
       
    38 	/**
       
    39 	* Process a command read from the ini file
       
    40 	*
       
    41 	* @param aCommand			The command to process
       
    42 	* @param aSection			The section in the ini containing data for the command
       
    43 	* @param aAsyncErrorIndex	Command index for async calls to return errors to
       
    44 	*
       
    45 	* @return					ETrue if the command is processed
       
    46 	*
       
    47 	* @leave					System wide error
       
    48 	*/
       
    49 	TBool	DoCommandL(MSdpElementBuilder& aElementBuilder, const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    50 
       
    51 private:
       
    52 	/**
       
    53 	* Helper methods
       
    54 	*/
       
    55 	inline void	DoCmdBuildUnknownL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection);
       
    56 	inline void	DoCmdBuildNilL(MSdpElementBuilder& aElementBuilder);
       
    57 	inline void	DoCmdBuildUintL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection);
       
    58 	inline void	DoCmdBuildIntL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection);
       
    59 	inline void	DoCmdBuildUUIDL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection);
       
    60 	inline void	DoCmdBuildBooleanL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection);
       
    61 	inline void	DoCmdBuildStringL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection);
       
    62 	inline void	DoCmdBuildDESL(MSdpElementBuilder& aElementBuilder);
       
    63 	inline void	DoCmdBuildDEAL(MSdpElementBuilder& aElementBuilder);
       
    64 	inline void	DoCmdStartListL(MSdpElementBuilder& aElementBuilder);
       
    65 	inline void	DoCmdEndListL(MSdpElementBuilder& aElementBuilder);
       
    66 	inline void	DoCmdBuildURLL(MSdpElementBuilder& aElementBuilder, const TDesC& aSection);
       
    67 	inline void	DoCmdMSEB_ExtensionInterfaceL(MSdpElementBuilder& aElementBuilder);
       
    68 
       
    69 protected:
       
    70 	CDataWrapper&	iDataWrapper;
       
    71 	};
       
    72 
       
    73 #endif /* __T_DATA_SDP_ELEMENT_BUILDER_H__ */