epoc32/include/e32svr.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/e32svr.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,82 @@
     1.4 +// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// e32\include\e32svr.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef __E32SVR_H__
    1.22 +#define __E32SVR_H__
    1.23 +#include <e32hal.h>
    1.24 +#include <d32locd.h>
    1.25 +#include <e32notif.h>
    1.26 +#include <e32ldr.h>
    1.27 +#include <e32event.h>
    1.28 +#include <e32ktran.h>
    1.29 +#include <e32debug.h>
    1.30 +#include <e32lmsg.h>
    1.31 +
    1.32 +/**
    1.33 +@internalComponent
    1.34 +@removed
    1.35 +*/
    1.36 +enum TBlockType {EBlocked,EUnBlocked,ERelease};
    1.37 +
    1.38 +/**
    1.39 +A collection of static functions that are intended for internal use only, 
    1.40 +except for AddEvent.
    1.41 +@see UserSvr::AddEvent()
    1.42 +@publishedPartner
    1.43 +@released
    1.44 +*/
    1.45 +class UserSvr
    1.46 +	{
    1.47 +public:
    1.48 +	IMPORT_C static void CaptureEventHook();	/**< @internalAll */
    1.49 +	IMPORT_C static void ReleaseEventHook();	/**< @internalAll */
    1.50 +	IMPORT_C static void RequestEvent(TRawEventBuf &anEvent,TRequestStatus &aStatus);	/**< @internalAll */
    1.51 +	IMPORT_C static void RequestEventCancel();	/**< @internalAll */
    1.52 +	IMPORT_C static TInt AddEvent(const TRawEvent& anEvent);
    1.53 +	IMPORT_C static void ScreenInfo(TDes8& anInfo);	/**< @internalAll */
    1.54 +	IMPORT_C static TInt DllSetTls(TInt aHandle, TAny *aPtr);	/**<@internalAll */
    1.55 +	IMPORT_C static TInt DllSetTls(TInt aHandle, TInt aDllUid, TAny *aPtr);	/**< @internalComponent */
    1.56 +	IMPORT_C static TAny *DllTls(TInt aHandle);	/**< @internalAll */
    1.57 +	IMPORT_C static TAny *DllTls(TInt aHandle, TInt aDllUid);	/**< @internalComponent */
    1.58 +	IMPORT_C static void DllFreeTls(TInt aHandle);	/**< @internalAll */
    1.59 +	IMPORT_C static void DllFileName(TInt aHandle, TDes &aFileName);	/**< @internalAll */
    1.60 +	IMPORT_C static void FsRegisterThread();	/**< @internalAll */
    1.61 +	IMPORT_C static void RegisterTrustedChunk(TInt aHandle);/**< @internalComponent */
    1.62 +	IMPORT_C static void WsRegisterThread();	/**< @internalAll */
    1.63 +    IMPORT_C static TBool TestBootSequence();	/**< @internalAll */
    1.64 +    IMPORT_C static void WsRegisterSwitchOnScreenHandling(TBool aState);	/**< @internalAll */
    1.65 +    IMPORT_C static void WsSwitchOnScreen();	/**< @internalAll */
    1.66 +    IMPORT_C static TInt ChangeLocale(const TDesC& aLocaleDllName);	/**< @internalAll */
    1.67 +	IMPORT_C static TInt ResetMachine(TMachineStartupType aType);	/**< @internalAll */
    1.68 +	IMPORT_C static void UnlockRamDrive();	/**< @internalAll */
    1.69 +	IMPORT_C static void LockRamDrive();	/**< @internalAll */
    1.70 +	IMPORT_C static TUint32 RomRootDirectoryAddress();	/**< @internalAll */
    1.71 +	IMPORT_C static TInt ExecuteInSupervisorMode(TSupervisorFunction aFunction, TAny* aParameter);	/**< @internalAll */
    1.72 +	IMPORT_C static TUint32 RomHeaderAddress();	/**< @internalAll */
    1.73 +	IMPORT_C static TUint32 DebugMask();	/**< @internalAll */ //Return the kernel debug mask 0
    1.74 +	IMPORT_C static TUint32 DebugMask(TUint aIndex);	/**<@internalAll */	// Return the kernel debug mask
    1.75 +	IMPORT_C static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2);	/**<@internalAll */
    1.76 +	IMPORT_C static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2, TInt aDeviceNumber);	/**<@internalAll */
    1.77 +	IMPORT_C static TInt HalGet(TInt,TAny*);	/**<@internalAll */ // redundant - only here for BC
    1.78 +	IMPORT_C static TInt HalSet(TInt,TAny*);	/**<@internalAll */ // redundant - only here for BC
    1.79 +	IMPORT_C static TInt SetMemoryThresholds(TInt aLowThreshold, TInt aGoodThreshold); /**<@internalAll */
    1.80 +	IMPORT_C static TBool IpcV1Available();	/**<@internalAll */
    1.81 +	IMPORT_C static TLinAddr ExceptionDescriptor(TLinAddr aCodeAddress); /**< @internalTechnology */
    1.82 +	IMPORT_C static TInt LocalePropertiesSetDefaults();	/**< @internalTechnology */
    1.83 +	};
    1.84 +
    1.85 +#endif