bluetoothapitest/bluetoothsvs/T_BTUserAPI/inc/T_AvdtpRecoveryCapabilitiesData.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_RECOVERY_CAPABILITIES_DATA_H__)
       
    20 #define __T_AVDTP_RECOVERY_CAPABILITIES_DATA_H__
       
    21 	
       
    22 
       
    23 
       
    24 class TAvdtpRecoveryCapabilities;
       
    25 
       
    26 class CT_AvdtpRecoveryCapabilitiesData : public CT_AvdtpServiceCapabilityData
       
    27 	{
       
    28 public:
       
    29 	/**
       
    30 	* Two phase constructor
       
    31 	*/
       
    32 	static CT_AvdtpRecoveryCapabilitiesData* NewL();
       
    33 	
       
    34 	/**
       
    35 	* Public destructor
       
    36 	*/
       
    37 	~CT_AvdtpRecoveryCapabilitiesData();
       
    38 
       
    39 	/**
       
    40 		* Process a command read from the ini file
       
    41 		*
       
    42 		* @param aCommand			The command to process
       
    43 		* @param aSection			The section in the ini containing data for the command
       
    44 		* @param aAsyncErrorIndex	Command index for async calls to return errors to
       
    45 		*
       
    46 		* @return					ETrue if the command is processed
       
    47 		*
       
    48 		* @leave					System wide error
       
    49 		*/
       
    50 		virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    51 
       
    52 	/**
       
    53 	* Return a pointer to the object that the data wraps
       
    54 	*
       
    55 	* @return	pointer to the object that the data wraps
       
    56 	*/
       
    57 	virtual TAny*	GetObject()	{ return iAvdtpRecoveryCapabilities; }
       
    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_AvdtpRecoveryCapabilitiesData();
       
    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();
       
    94 	inline void	DoCmdSetRecoveryType(const TDesC& aSection);
       
    95 	inline void	DoCmdRecoveryType(const TDesC& aSection);
       
    96 	inline void	DoCmdSetMaxWindowSize(const TDesC& aSection);
       
    97 	inline void	DoCmdMaxWindowSize(const TDesC& aSection);
       
    98 	inline void	DoCmdSetMinWindowSize(const TDesC& aSection);
       
    99 	inline void	DoCmdMinWindowSize(const TDesC& aSection);
       
   100 
       
   101 private:
       
   102 	TAvdtpRecoveryCapabilities*		iAvdtpRecoveryCapabilities;
       
   103 	};
       
   104 
       
   105 #endif /* __T_AVDTP_RECOVERY_CAPABILITIES_DATA_H__*/