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