| 
sl@0
 | 
     1  | 
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
  | 
| 
sl@0
 | 
     2  | 
// All rights reserved.
  | 
| 
sl@0
 | 
     3  | 
// This component and the accompanying materials are made available
  | 
| 
sl@0
 | 
     4  | 
// under the terms of the License "Eclipse Public License v1.0"
  | 
| 
sl@0
 | 
     5  | 
// which accompanies this distribution, and is available
  | 
| 
sl@0
 | 
     6  | 
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
  | 
| 
sl@0
 | 
     7  | 
//
  | 
| 
sl@0
 | 
     8  | 
// Initial Contributors:
  | 
| 
sl@0
 | 
     9  | 
// Nokia Corporation - initial contribution.
  | 
| 
sl@0
 | 
    10  | 
//
  | 
| 
sl@0
 | 
    11  | 
// Contributors:
  | 
| 
sl@0
 | 
    12  | 
//
  | 
| 
sl@0
 | 
    13  | 
// Description:
  | 
| 
sl@0
 | 
    14  | 
// e32\include\e32svr.h
  | 
| 
sl@0
 | 
    15  | 
// 
  | 
| 
sl@0
 | 
    16  | 
// WARNING: This file contains some APIs which are internal and are subject
  | 
| 
sl@0
 | 
    17  | 
//          to change without notice. Such APIs should therefore not be used
  | 
| 
sl@0
 | 
    18  | 
//          outside the Kernel and Hardware Services package.
  | 
| 
sl@0
 | 
    19  | 
//
  | 
| 
sl@0
 | 
    20  | 
  | 
| 
sl@0
 | 
    21  | 
#ifndef __E32SVR_H__
  | 
| 
sl@0
 | 
    22  | 
#define __E32SVR_H__
  | 
| 
sl@0
 | 
    23  | 
#include <e32hal.h>
  | 
| 
sl@0
 | 
    24  | 
#include <d32locd.h>
  | 
| 
sl@0
 | 
    25  | 
#include <e32notif.h>
  | 
| 
sl@0
 | 
    26  | 
#include <e32ldr.h>
  | 
| 
sl@0
 | 
    27  | 
#include <e32ldr_private.h>
  | 
| 
sl@0
 | 
    28  | 
#include <e32event.h>
  | 
| 
sl@0
 | 
    29  | 
#include <e32event_private.h>
  | 
| 
sl@0
 | 
    30  | 
#include <e32ktran.h>
  | 
| 
sl@0
 | 
    31  | 
#include <e32debug.h>
  | 
| 
sl@0
 | 
    32  | 
#include <e32lmsg.h>
  | 
| 
sl@0
 | 
    33  | 
  | 
| 
sl@0
 | 
    34  | 
/**
  | 
| 
sl@0
 | 
    35  | 
@internalComponent
  | 
| 
sl@0
 | 
    36  | 
@removed
  | 
| 
sl@0
 | 
    37  | 
*/
  | 
| 
sl@0
 | 
    38  | 
enum TBlockType {EBlocked,EUnBlocked,ERelease};
 | 
| 
sl@0
 | 
    39  | 
  | 
| 
sl@0
 | 
    40  | 
/**
  | 
| 
sl@0
 | 
    41  | 
A collection of static functions that are intended for internal use only, 
  | 
| 
sl@0
 | 
    42  | 
except for AddEvent.
  | 
| 
sl@0
 | 
    43  | 
@see UserSvr::AddEvent()
  | 
| 
sl@0
 | 
    44  | 
@publishedPartner
  | 
| 
sl@0
 | 
    45  | 
@released
  | 
| 
sl@0
 | 
    46  | 
*/
  | 
| 
sl@0
 | 
    47  | 
class UserSvr
  | 
| 
sl@0
 | 
    48  | 
	{
 | 
| 
sl@0
 | 
    49  | 
public:
  | 
| 
sl@0
 | 
    50  | 
	IMPORT_C static void CaptureEventHook();	/**< @internalAll */
  | 
| 
sl@0
 | 
    51  | 
	IMPORT_C static void ReleaseEventHook();	/**< @internalAll */
  | 
| 
sl@0
 | 
    52  | 
	IMPORT_C static void RequestEvent(TRawEventBuf &anEvent,TRequestStatus &aStatus);	/**< @internalAll */
  | 
| 
sl@0
 | 
    53  | 
	IMPORT_C static void RequestEventCancel();	/**< @internalAll */
  | 
| 
sl@0
 | 
    54  | 
	IMPORT_C static TInt AddEvent(const TRawEvent& anEvent);
  | 
| 
sl@0
 | 
    55  | 
	IMPORT_C static void ScreenInfo(TDes8& anInfo);	/**< @internalAll */
  | 
| 
sl@0
 | 
    56  | 
	IMPORT_C static TInt DllSetTls(TInt aHandle, TAny *aPtr);	/**<@internalAll */
  | 
| 
sl@0
 | 
    57  | 
	IMPORT_C static TInt DllSetTls(TInt aHandle, TInt aDllUid, TAny *aPtr);	/**< @internalComponent */
  | 
| 
sl@0
 | 
    58  | 
	IMPORT_C static TAny *DllTls(TInt aHandle);	/**< @internalAll */
  | 
| 
sl@0
 | 
    59  | 
	IMPORT_C static TAny *DllTls(TInt aHandle, TInt aDllUid);	/**< @internalComponent */
  | 
| 
sl@0
 | 
    60  | 
	IMPORT_C static void DllFreeTls(TInt aHandle);	/**< @internalAll */
  | 
| 
sl@0
 | 
    61  | 
	IMPORT_C static void DllFileName(TInt aHandle, TDes &aFileName);	/**< @internalAll */
  | 
| 
sl@0
 | 
    62  | 
	IMPORT_C static void FsRegisterThread();	/**< @internalAll */
  | 
| 
sl@0
 | 
    63  | 
	IMPORT_C static void RegisterTrustedChunk(TInt aHandle);/**< @internalComponent */
  | 
| 
sl@0
 | 
    64  | 
	IMPORT_C static void WsRegisterThread();	/**< @internalAll */
  | 
| 
sl@0
 | 
    65  | 
    IMPORT_C static TBool TestBootSequence();	/**< @internalAll */
  | 
| 
sl@0
 | 
    66  | 
    IMPORT_C static void WsRegisterSwitchOnScreenHandling(TBool aState);	/**< @internalAll */
  | 
| 
sl@0
 | 
    67  | 
    IMPORT_C static void WsSwitchOnScreen();	/**< @internalAll */
  | 
| 
sl@0
 | 
    68  | 
    IMPORT_C static TInt ChangeLocale(const TDesC& aLocaleDllName);	/**< @internalAll */
  | 
| 
sl@0
 | 
    69  | 
	IMPORT_C static TInt ResetMachine(TMachineStartupType aType);	/**< @internalAll */
  | 
| 
sl@0
 | 
    70  | 
	IMPORT_C static void UnlockRamDrive();	/**< @internalAll */
  | 
| 
sl@0
 | 
    71  | 
	IMPORT_C static void LockRamDrive();	/**< @internalAll */
  | 
| 
sl@0
 | 
    72  | 
	IMPORT_C static TUint32 RomRootDirectoryAddress();	/**< @internalAll */
  | 
| 
sl@0
 | 
    73  | 
	IMPORT_C static TInt ExecuteInSupervisorMode(TSupervisorFunction aFunction, TAny* aParameter);	/**< @internalAll */
  | 
| 
sl@0
 | 
    74  | 
	IMPORT_C static TUint32 RomHeaderAddress();	/**< @internalAll */
  | 
| 
sl@0
 | 
    75  | 
	IMPORT_C static TUint32 DebugMask();	/**< @internalAll */ //Return the kernel debug mask 0
  | 
| 
sl@0
 | 
    76  | 
	IMPORT_C static TUint32 DebugMask(TUint aIndex);	/**<@internalAll */	// Return the kernel debug mask
  | 
| 
sl@0
 | 
    77  | 
	IMPORT_C static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2);	/**<@internalAll */
  | 
| 
sl@0
 | 
    78  | 
	IMPORT_C static TInt HalFunction(TInt aGroup, TInt aFunction, TAny* a1, TAny* a2, TInt aDeviceNumber);	/**<@internalAll */
  | 
| 
sl@0
 | 
    79  | 
	IMPORT_C static TInt HalGet(TInt,TAny*);	/**<@internalAll */ // redundant - only here for BC
  | 
| 
sl@0
 | 
    80  | 
	IMPORT_C static TInt HalSet(TInt,TAny*);	/**<@internalAll */ // redundant - only here for BC
  | 
| 
sl@0
 | 
    81  | 
	IMPORT_C static TInt SetMemoryThresholds(TInt aLowThreshold, TInt aGoodThreshold); /**<@internalAll */
  | 
| 
sl@0
 | 
    82  | 
	IMPORT_C static TBool IpcV1Available();	/**<@internalAll */
  | 
| 
sl@0
 | 
    83  | 
	IMPORT_C static TLinAddr ExceptionDescriptor(TLinAddr aCodeAddress); /**< @internalTechnology */
  | 
| 
sl@0
 | 
    84  | 
	IMPORT_C static TInt LocalePropertiesSetDefaults();	/**< @internalTechnology */
  | 
| 
sl@0
 | 
    85  | 
	};
  | 
| 
sl@0
 | 
    86  | 
  | 
| 
sl@0
 | 
    87  | 
#endif
  | 
| 
sl@0
 | 
    88  | 
  |