syslibsapitest/syslibssvs/ecom/inc/T_EComResolverParamsData.h
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     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 
       
    20 #if (!defined __T_ECOM_RESOLVER_PARAMS_API_DATA_H__)
       
    21 #define __T_ECOM_RESOLVER_PARAMS_API_DATA_H__
       
    22 
       
    23 //	User Includes
       
    24 #include "DataWrapperBase.h"
       
    25 
       
    26 // Classes to get to protected members
       
    27 
       
    28 //	EPOC includes
       
    29 #include <w32std.h>
       
    30 #include <e32std.h>
       
    31 #include <ecom/implementationinformation.h>
       
    32 
       
    33 class CT_EComResolverParamsData: public CDataWrapperBase
       
    34 	{
       
    35 public:
       
    36 	static CT_EComResolverParamsData*	NewL();
       
    37 
       
    38 	~CT_EComResolverParamsData();
       
    39 
       
    40 	virtual TAny*	GetObject();
       
    41 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    42 
       
    43 protected:
       
    44 	CT_EComResolverParamsData();
       
    45 	void	ConstructL();
       
    46 
       
    47 private:
       
    48 	void	DoCmdDataType(const TDesC& aSection);
       
    49 	void	DoCmdSetDataType(const TDesC& aSection);
       
    50 	void	DoCmdSetGenericMatch(const TDesC& aSection);
       
    51 	void	DoCmdIsGenericMatch(const TDesC& aSection);
       
    52 	void	DoCmdSetWildcardMatch(const TDesC& aSection);
       
    53 	void	DoCmdIsWildcardMatch(const TDesC& aSection);
       
    54 
       
    55 	TBool	GetExpectedString(const TDesC& aSection, TPtrC& aExpectedString);
       
    56 	TBool	GetDataType(const TDesC& aSection, TBuf8<KMaxTestExecuteCommandLength>& aDataType);
       
    57 	TBool	GetGenericMatch(const TDesC& aSection, TBool& aDisabled);
       
    58 	TBool	GetWildcardMatch(const TDesC& aSection, TBool& aDisabled);
       
    59 	TBool	GetExpectedBool(const TDesC& aSection, TBool& aBool);
       
    60 
       
    61 	//	Helper methods
       
    62 	void	DestroyData();
       
    63 
       
    64 private:
       
    65 	TEComResolverParams					iResolverParams;
       
    66 	TBuf8<KMaxTestExecuteCommandLength>	iDataType;
       
    67 	};
       
    68 
       
    69 #endif /* __T_ECOM_RESOLVER_PARAMS_API_DATA_H__ */