|
1 // Copyright (c) 1995-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\include\e32svr.h |
|
15 // |
|
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. |
|
19 // |
|
20 |
|
21 #ifndef __E32SVR_H__ |
|
22 #define __E32SVR_H__ |
|
23 #include <e32hal.h> |
|
24 #include <d32locd.h> |
|
25 #include <e32notif.h> |
|
26 #include <e32ldr.h> |
|
27 #include <e32event.h> |
|
28 #include <e32event_private.h> |
|
29 #include <e32ktran.h> |
|
30 #include <e32debug.h> |
|
31 #include <e32lmsg.h> |
|
32 |
|
33 /** |
|
34 @internalComponent |
|
35 @removed |
|
36 */ |
|
37 enum TBlockType {EBlocked,EUnBlocked,ERelease}; |
|
38 |
|
39 /** |
|
40 A collection of static functions that are intended for internal use only, |
|
41 except for AddEvent. |
|
42 @see UserSvr::AddEvent() |
|
43 @publishedPartner |
|
44 @released |
|
45 */ |
|
46 class UserSvr |
|
47 { |
|
48 public: |
|
49 IMPORT_C static void CaptureEventHook(); /**< @internalAll */ |
|
50 IMPORT_C static void ReleaseEventHook(); /**< @internalAll */ |
|
51 IMPORT_C static void RequestEvent(TRawEventBuf &anEvent,TRequestStatus &aStatus); /**< @internalAll */ |
|
52 IMPORT_C static void RequestEventCancel(); /**< @internalAll */ |
|
53 IMPORT_C static TInt AddEvent(const TRawEvent& anEvent); |
|
54 IMPORT_C static void ScreenInfo(TDes8& anInfo); /**< @internalAll */ |
|
55 IMPORT_C static TInt DllSetTls(TInt aHandle, TAny *aPtr); /**<@internalAll */ |
|
56 IMPORT_C static TInt DllSetTls(TInt aHandle, TInt aDllUid, TAny *aPtr); /**< @internalComponent */ |
|
57 IMPORT_C static TAny *DllTls(TInt aHandle); /**< @internalAll */ |
|
58 IMPORT_C static TAny *DllTls(TInt aHandle, TInt aDllUid); /**< @internalComponent */ |
|
59 IMPORT_C static void DllFreeTls(TInt aHandle); /**< @internalAll */ |
|
60 IMPORT_C static void DllFileName(TInt aHandle, TDes &aFileName); /**< @internalAll */ |
|
61 IMPORT_C static void FsRegisterThread(); /**< @internalAll */ |
|
62 IMPORT_C static void RegisterTrustedChunk(TInt aHandle);/**< @internalComponent */ |
|
63 IMPORT_C static void WsRegisterThread(); /**< @internalAll */ |
|
64 IMPORT_C static TBool TestBootSequence(); /**< @internalAll */ |
|
65 IMPORT_C static void WsRegisterSwitchOnScreenHandling(TBool aState); /**< @internalAll */ |
|
66 IMPORT_C static void WsSwitchOnScreen(); /**< @internalAll */ |
|
67 IMPORT_C static TInt ChangeLocale(const TDesC& aLocaleDllName); /**< @internalAll */ |
|
68 IMPORT_C static TInt ResetMachine(TMachineStartupType aType); /**< @internalAll */ |
|
69 IMPORT_C static void UnlockRamDrive(); /**< @internalAll */ |
|
70 IMPORT_C static void LockRamDrive(); /**< @internalAll */ |
|
71 IMPORT_C static TUint32 RomRootDirectoryAddress(); /**< @internalAll */ |
|
72 IMPORT_C static TInt ExecuteInSupervisorMode(TSupervisorFunction aFunction, TAny* aParameter); /**< @internalAll */ |
|
73 IMPORT_C static TUint32 RomHeaderAddress(); /**< @internalAll */ |
|
74 IMPORT_C static TUint32 DebugMask(); /**< @internalAll */ //Return the kernel debug mask 0 |
|
75 IMPORT_C static TUint32 DebugMask(TUint aIndex); /**<@internalAll */ // Return the kernel debug mask |
|
76 IMPORT_C static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2); /**<@internalAll */ |
|
77 IMPORT_C static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2, TInt aDeviceNumber); /**<@internalAll */ |
|
78 IMPORT_C static TInt HalGet(TInt,TAny*); /**<@internalAll */ // redundant - only here for BC |
|
79 IMPORT_C static TInt HalSet(TInt,TAny*); /**<@internalAll */ // redundant - only here for BC |
|
80 IMPORT_C static TInt SetMemoryThresholds(TInt aLowThreshold, TInt aGoodThreshold); /**<@internalAll */ |
|
81 IMPORT_C static TBool IpcV1Available(); /**<@internalAll */ |
|
82 IMPORT_C static TLinAddr ExceptionDescriptor(TLinAddr aCodeAddress); /**< @internalTechnology */ |
|
83 IMPORT_C static TInt LocalePropertiesSetDefaults(); /**< @internalTechnology */ |
|
84 }; |
|
85 |
|
86 #endif |
|
87 |