buildverification/autosmoketest/Utils/Inc/SmokeTestProperty.h
changeset 15 5b5908ec640f
parent 13 3a35f7917fa6
child 17 03d9ade4748d
equal deleted inserted replaced
13:3a35f7917fa6 15:5b5908ec640f
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This contains CTestProperty
       
    15 // 
       
    16 //
       
    17 
       
    18 #if (!defined __SMOKETEST_PROPERTY_H__)
       
    19 #define __SMOKETEST_PROPERTY_H__
       
    20 
       
    21 // EPOC includes
       
    22 #include <test/testexecutestepbase.h>
       
    23 #include <e32property.h>
       
    24 
       
    25 /**
       
    26  This class contains generic utility method to set system wide variable usign publish and subscribe
       
    27 */
       
    28 class CTestProperty : public CBase
       
    29 {
       
    30 public:
       
    31 	IMPORT_C CTestProperty(CTestStep& aTestStep);
       
    32 	IMPORT_C ~CTestProperty();
       
    33 
       
    34 	/**
       
    35 	* Set a property
       
    36 	*
       
    37 	* \param aCategory catagory of the RProperty
       
    38 	* \param aKey key of the catagory
       
    39 	* \param aValue value of the key
       
    40 	*/
       
    41 	IMPORT_C TInt SetPropertyL(const TUid aCategory, const TInt aKey, const TInt aValue);
       
    42 
       
    43 	/**
       
    44 	* Set a property
       
    45 	*
       
    46 	* \param aCategory catagory of the RProperty
       
    47 	* \param aKey key of the catagory
       
    48 	* \param aValue value of the key
       
    49 	*/
       
    50 	IMPORT_C TInt SetPropertyL(const TUid aCategory, const TInt aKey, const TDesC8& aValue);
       
    51 
       
    52 	/**
       
    53 	* Set a property
       
    54 	*
       
    55 	* \param aCategory catagory of the RProperty
       
    56 	* \param aKey key of the catagory
       
    57 	* \param aValue value of the key
       
    58 	*/
       
    59 	IMPORT_C TInt SetPropertyL(const TUid aCategory, const TInt aKey, const TDesC16& aValue);
       
    60 
       
    61 	/**
       
    62 	* Get a property
       
    63 	*
       
    64 	* \param aCategory catagory of the RProperty
       
    65 	* \param aKey key of the catagory
       
    66 	* \param aValue value of the key returned
       
    67 	*/
       
    68 	IMPORT_C TInt GetPropertyL(const TUid aCategory, const TInt aKey, TInt& aValue);
       
    69 
       
    70 	/**
       
    71 	* Get a property
       
    72 	*
       
    73 	* \param aCategory catagory of the RProperty
       
    74 	* \param aKey key of the catagory
       
    75 	* \param aValue value of the key returned
       
    76 	*/
       
    77 	IMPORT_C TInt GetPropertyL(const TUid aCategory, const TInt aKey, TDes8& aValue);
       
    78 
       
    79 	/**
       
    80 	* Get a property
       
    81 	*
       
    82 	* \param aCategory catagory of the RProperty
       
    83 	* \param aKey key of the catagory
       
    84 	* \param aValue value of the key returned
       
    85 	*/
       
    86 	IMPORT_C TInt GetPropertyL(const TUid aCategory, const TInt aKey, TDes16& aValue);
       
    87 
       
    88 private:
       
    89 	CTestStep&	iTestStep;
       
    90 	RProperty	iProperty;
       
    91 };
       
    92 
       
    93 #endif /* __SMOKETEST_PROPERTY_H__ */