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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\power\t_power_slave.cpp
21 GLDEF_C TInt E32Main()
23 // Get arguments from the command line
24 TInt len = User::CommandLineLength();
25 TInt size = len * sizeof(TUint16);
26 __ASSERT_ALWAYS(size == sizeof(TInt),User::Invariant());
28 TPtr cmd((TUint16*) &arg, len);
29 User::CommandLine(cmd);
31 TBool jit = User::JustInTime();
32 User::SetJustInTime(EFalse);
34 TRequestStatus status;
41 Power::EnableWakeupEvents(EPwStandby);
44 Power::DisableWakeupEvents();
47 Power::RequestWakeupEventNotification(status);
50 Power::CancelWakeupEventNotification();
56 User::SetJustInTime(jit);