Update contrib.
1 // Copyright (c) 1998-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 // e32\include\e32wins.h
16 // WARNING: This file contains some APIs which are internal and are subject
17 // to change without notice. Such APIs should therefore not be used
18 // outside the Kernel and Hardware Services package.
34 IMPORT_C void BootEpoc(TBool aAutoRun);
36 inline TInt MapEmulatedFileName(TDes& aBuffer, const TDesC& aFilename)
38 TPtr8 ptrBuffer((TUint8*)aBuffer.Ptr(),aBuffer.MaxLength()<<1);
39 TPtrC8 ptrFilename((TUint8*)aFilename.Ptr(), aFilename.Size());
40 TInt r = UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalMapFilename,(TAny*)&ptrFilename,&ptrBuffer);
41 aBuffer.SetLength(ptrBuffer.Length()>>1);
45 inline TInt EmulatorFlip(TEmulatorFlip aFlip)
46 {return UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalSetFlip,(TAny*)aFlip,0);}
48 inline TInt EmulatorFlip(TEmulatorFlip aFlip, TInt aScreenNo)
49 {return UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalSetFlip,(TAny*)aFlip,(TAny*)aScreenNo);}
51 inline void EmulatorColorDepth(TUint& aDepths)
52 {UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalColorDepth,(TAny*)&aDepths,0);}
54 inline void EmulatorColorDepth(TUint& aDepths, TInt aScreenNo)
55 {UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalColorDepth,(TAny*)&aDepths,(TAny*)aScreenNo);}
57 inline void EmulatorDiskSpeed(TInt& aReadSpeed, TInt& aWriteSpeed)
59 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"DiskRead",&aReadSpeed);
60 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"DiskWrite",&aWriteSpeed);
63 inline TBool EmulatorTextShell()
66 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"TextShell",&val);
70 inline TBool EmulatorNoGui()
73 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"NoGui",&val);
77 inline TBool EmulatorMiniGui()
79 TBool minigui = EFalse;
81 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalBoolProperty,(TAny*)"MiniGui",&minigui);
82 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalIntProperty,(TAny*)"StartupMode",&startupmode);
83 return minigui || startupmode == 8;
86 inline const char* EmulatorAutoRun()
88 const char* val = NULL;
89 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalStringProperty,(TAny*)"AutoRun",&val);
93 inline const char* EmulatorCommandLine()
95 const char* val = NULL;
96 UserSvr::HalFunction(EHalGroupEmulator,EEmulatorHalStringProperty,(TAny*)"CommandLine",&val);