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.
sl@0
     1
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __BM_T_PROP_LDD_H__
sl@0
    17
#define __BM_T_PROP_LDD_H__
sl@0
    18
sl@0
    19
#include <e32def.h>
sl@0
    20
#include <e32cmn.h>
sl@0
    21
#include <e32property.h>
sl@0
    22
sl@0
    23
_LIT(KPropLddFileName, "t_prop_ldd");
sl@0
    24
_LIT(KPropLdName, "t_prop_dev");
sl@0
    25
sl@0
    26
/*
sl@0
    27
 * RPropChannel class defines the user-side API to the RPropertyRef test LDD
sl@0
    28
 */
sl@0
    29
class RPropChannel : public RBusLogicalChannel
sl@0
    30
	{
sl@0
    31
public:
sl@0
    32
	enum TControl
sl@0
    33
		{
sl@0
    34
		EBasicTests,
sl@0
    35
		};
sl@0
    36
sl@0
    37
	struct TBasicInfo
sl@0
    38
		{
sl@0
    39
		TUint				iCount;
sl@0
    40
		TUid				iCategory;
sl@0
    41
		TUint				iKey;
sl@0
    42
		RProperty::TType	iType;
sl@0
    43
		};
sl@0
    44
sl@0
    45
sl@0
    46
#ifndef __KERNEL_MODE__
sl@0
    47
	TInt Open()
sl@0
    48
		{
sl@0
    49
		return DoCreate(KPropLdName, TVersion(1,0,1), KNullUnit, NULL, NULL);
sl@0
    50
		}
sl@0
    51
	TInt BasicTests(TUint aCount, TUid aCategory, TUint aKey, RProperty::TType aType)
sl@0
    52
		{
sl@0
    53
		TBasicInfo info;
sl@0
    54
		info.iCount = aCount;
sl@0
    55
		info.iCategory = aCategory;
sl@0
    56
		info.iKey = aKey;
sl@0
    57
		info.iType = aType;
sl@0
    58
		return DoControl(EBasicTests, &info);
sl@0
    59
		}
sl@0
    60
#endif	
sl@0
    61
	};
sl@0
    62
sl@0
    63
#endif