bluetoothapitest/bluetoothsvs/T_BTUserAPI/inc/T_AvdtpServiceCapabilityData.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_AVDTP_SERVICE_CAPABILITY_H__)
       
    20 #define __T_AVDTP_SERVICE_CAPABILITY_H__
       
    21 
       
    22 //	User Includes
       
    23 #include "DataWrapperBase.h"
       
    24 
       
    25 
       
    26 class TAvdtpServiceCapability;
       
    27 
       
    28 class CT_AvdtpServiceCapabilityData : public CDataWrapperBase
       
    29 	{
       
    30 public:
       
    31 	/**
       
    32 	* Process a command read from the ini file
       
    33 	*
       
    34 	* @param aCommand			The command to process
       
    35 	* @param aSection			The section in the ini containing data for the command
       
    36 	* @param aAsyncErrorIndex	Command index for async calls to return errors to
       
    37 	*
       
    38 	* @return					ETrue if the command is processed
       
    39 	*
       
    40 	* @leave					System wide error
       
    41 	*/
       
    42 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    43 
       
    44 
       
    45 protected:
       
    46 	/**
       
    47 	* Protected constructor. First phase construction
       
    48 	*/
       
    49 	CT_AvdtpServiceCapabilityData();
       
    50 
       
    51 	virtual TAvdtpServiceCapability*	GetAvdtpServiceCapability() const = 0;
       
    52 
       
    53 	inline void DoCmdCategory(const TDesC& aSection);
       
    54 	inline void DoCmdAsProtocol(const TDesC& aSection);
       
    55 	inline void DoCmdParse(const TDesC& aSection);
       
    56 	inline void DoCmdAllocFromPDUL(const TDesC& aSection);
       
    57 	inline void DoCmdAllocFromPckgL(const TDesC& aSection);
       
    58 
       
    59 	};
       
    60 
       
    61 #endif /* __T_AVDTP_SERVICE_CAPABILITY_H__ */