Update contrib.
1 // Copyright (c) 2006-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\power\d_lddpowerseqtest.inl
18 #ifndef __KERNEL_MODE__
19 inline TInt RLddTest1::Open()
20 { return DoCreate(KLddName,TVersion(0,1,1),KNullUnit,NULL,NULL); }
21 inline void RLddTest1::Test_power1down(TRequestStatus &aStatus, TUint &time)
22 { DoRequest(EPOWERDOWN_POWER1, aStatus, (TAny *)&time); }
23 inline void RLddTest1::Test_power2down(TRequestStatus &aStatus, TUint &time)
24 { DoRequest(EPOWERDOWN_POWER2, aStatus, (TAny *)&time); }
25 inline void RLddTest1::Test_power1up(TRequestStatus &aStatus, TUint &time)
26 { DoRequest(EPOWERUP_POWER1, aStatus, (TAny *)&time); }
27 inline void RLddTest1::Test_power2up(TRequestStatus &aStatus, TUint &time)
28 { DoRequest(EPOWERUP_POWER2, aStatus, (TAny *)&time); }
29 inline TInt RLddTest1::Test_setSleepTime(TUint time)
30 { return DoControl(ESET_SLEEPTIME, (TAny *)time); }
31 inline TInt RLddTest1::Unload()
32 { return User::FreeLogicalDevice(KLddName); }