bluetoothapitest/bluetoothsvs/T_BTUserAPI/inc/T_NonSBCCodecCapabilitiesData.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_NON_SBC_CODEC_CAPABILITIES_DATA_H__)
       
    20 #define __T_NON_SBC_CODEC_CAPABILITIES_DATA_H__
       
    21 
       
    22 class CT_NonSBCCodecCapabilitiesData : public CT_AvdtpMediaCodecCapabilitiesData
       
    23 	{
       
    24 public:
       
    25 	/**
       
    26 	 * Two phase constructor
       
    27 	 */
       
    28 	static CT_NonSBCCodecCapabilitiesData* NewL();
       
    29 
       
    30 	/**
       
    31 	 * Public destructor
       
    32 	 */
       
    33 	~CT_NonSBCCodecCapabilitiesData();
       
    34 
       
    35 	/**
       
    36 	 * Process a command read from the ini file
       
    37 	 *
       
    38 	 * @param aCommand			The command to process
       
    39 	 * @param aSection			The section in the ini containing data for the command
       
    40 	 * @param aAsyncErrorIndex	Command index for async calls to return errors to
       
    41 	 *
       
    42 	 * @return					ETrue if the command is processed
       
    43 	 *
       
    44 	 * @leave					System wide error
       
    45 	 */
       
    46 	virtual TBool DoCommandL(const TTEFFunction& aCommand,
       
    47 			const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    48 
       
    49 	/**
       
    50 	 * Return a pointer to the object that the data wraps
       
    51 	 *
       
    52 	 * @return	pointer to the object that the data wraps
       
    53 	 */
       
    54 	virtual TAny* GetObject()
       
    55 		{
       
    56 		return iNonSBCCodecCapabilities;
       
    57 		}
       
    58 
       
    59 	/**
       
    60 	 * Set the object that the data wraps
       
    61 	 *
       
    62 	 * @param	aObject object that the wrapper is testing
       
    63 	 *
       
    64 	 */
       
    65 	virtual void SetObjectL(TAny* aAny);
       
    66 
       
    67 	/**
       
    68 	 * The object will no longer be owned by this
       
    69 	 *
       
    70 	 * @leave	KErrNotSupported if the the function is not supported
       
    71 	 */
       
    72 	virtual void DisownObjectL();
       
    73 
       
    74 protected:
       
    75 	/**
       
    76 	 * Protected constructor. First phase construction
       
    77 	 */
       
    78 	CT_NonSBCCodecCapabilitiesData();
       
    79 
       
    80 	virtual TAvdtpServiceCapability* GetAvdtpServiceCapability() const;
       
    81 
       
    82 	/**
       
    83 	 * Second phase construction
       
    84 	 */
       
    85 	void ConstructL();
       
    86 
       
    87 private:
       
    88 	/**
       
    89 	 * Helper methods
       
    90 	 */
       
    91 	void DestroyData();
       
    92 
       
    93 	inline void DoCmdnewL(const TDesC& aSection);
       
    94 	inline void DoCmdSetMediaCodecType(const TDesC& aSection);
       
    95 	inline void DoCmdSetMediaType(const TDesC& aSection);
       
    96 private:
       
    97 	T_NonSBCCodecCapabilitiesChild* iNonSBCCodecCapabilities;
       
    98 	};
       
    99 
       
   100 #endif /* __T_NON_SBC_CODEC_CAPABILITIES_DATA_H__ */