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