kerneltest/e32test/power/d_powermisctest.h
author hgs
Mon, 11 Oct 2010 17:54:41 +0100
changeset 286 48e57fb1237e
parent 245 647ab20fee2e
permissions -rw-r--r--
201039_11
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
245
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     1
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     2
// All rights reserved.
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     4
// under the terms of the License "Eclipse Public License v1.0"
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     7
//
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     8
// Initial Contributors:
647ab20fee2e 201031_10
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    10
//
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    11
// Contributors:
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    12
//
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    13
// Description:
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    14
// e32test\power\d_powermisctest.h
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    15
// 
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    16
//
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    17
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    18
#if !defined(__D_POWERMISCTEST_H__)
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    19
#define __D_POWERMISCTEST_H__
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    20
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    21
#include <e32cmn.h>
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    22
#ifndef __KERNEL_MODE__
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    23
#include <e32std.h>
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    24
#endif
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    25
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    26
_LIT(KLddName,"D_POWERMISCTEST.LDD");
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    27
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    28
class RLddTest1 : public RBusLogicalChannel
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    29
	{
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    30
public:
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    31
	enum TControl
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    32
		{
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    33
		ECONTROL_TEST
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    34
		};
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    35
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    36
public:
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    37
#ifndef __KERNEL_MODE__
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    38
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    39
	inline TInt Open()
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    40
		{ return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    41
	inline TInt Test()
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    42
		{ return DoControl(ECONTROL_TEST); }
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    43
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    44
#endif 
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    45
	};
647ab20fee2e 201031_10
hgs
parents:
diff changeset
    46
#endif   //__D_POWERMISCTEST_H__