os/kernelhwsrv/kerneltest/e32test/property/t_prop_ldd.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2002-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 the License "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 //
    15 
    16 #ifndef __BM_T_PROP_LDD_H__
    17 #define __BM_T_PROP_LDD_H__
    18 
    19 #include <e32def.h>
    20 #include <e32cmn.h>
    21 #include <e32property.h>
    22 
    23 _LIT(KPropLddFileName, "t_prop_ldd");
    24 _LIT(KPropLdName, "t_prop_dev");
    25 
    26 /*
    27  * RPropChannel class defines the user-side API to the RPropertyRef test LDD
    28  */
    29 class RPropChannel : public RBusLogicalChannel
    30 	{
    31 public:
    32 	enum TControl
    33 		{
    34 		EBasicTests,
    35 		};
    36 
    37 	struct TBasicInfo
    38 		{
    39 		TUint				iCount;
    40 		TUid				iCategory;
    41 		TUint				iKey;
    42 		RProperty::TType	iType;
    43 		};
    44 
    45 
    46 #ifndef __KERNEL_MODE__
    47 	TInt Open()
    48 		{
    49 		return DoCreate(KPropLdName, TVersion(1,0,1), KNullUnit, NULL, NULL);
    50 		}
    51 	TInt BasicTests(TUint aCount, TUid aCategory, TUint aKey, RProperty::TType aType)
    52 		{
    53 		TBasicInfo info;
    54 		info.iCount = aCount;
    55 		info.iCategory = aCategory;
    56 		info.iKey = aKey;
    57 		info.iType = aType;
    58 		return DoControl(EBasicTests, &info);
    59 		}
    60 #endif	
    61 	};
    62 
    63 #endif