Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
24 const TInt KDefaultInterval = 5000000;
25 _LIT(KPromptPressAnyKey, "And press any key to continue...");
26 _LIT(KPromptConsole, "TEF");
27 _LIT(KPromptMMCMessage, "After hitting a key to continue, eject and insert the MMC card (press F5 and release on the emulator).\n");
33 * Secure variant, contain the prompt console
36 CConsoleBase *console = Console::NewL(KPromptConsole,
37 TSize(KConsFullScreen,KConsFullScreen));
38 CleanupStack::PushL(console);
40 console->Printf(KPromptMMCMessage);
41 console->Printf(KPromptPressAnyKey);
43 TRequestStatus timerStatus;
45 CleanupClosePushL(timer);
47 timer.After(timerStatus, TTimeIntervalMicroSeconds32(KDefaultInterval));
49 TRequestStatus readStatus;
50 console->Read(readStatus);
52 User::WaitForRequest(timerStatus, readStatus);
53 if ( timerStatus!=KErrNone )
56 User::WaitForRequest(timerStatus);
58 if ( readStatus==KRequestPending )
60 console->ReadCancel();
61 User::WaitForRequest(readStatus);
64 CleanupStack::PopAndDestroy(2, console);
68 GLDEF_C TInt E32Main()
70 * @return - Standard Epoc error code on process exit
72 * Process entry point. Called by client using RProcess API
75 CTrapCleanup* cleanup = CTrapCleanup::New();
78 RProcess::Rendezvous(KErrNoMemory);
81 #if (defined TRAP_IGNORE)
83 RProcess::Rendezvous(KErrNone);
86 RProcess::Rendezvous(err);