plugins/consoles/iocons/src/ws_std.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     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 // Cut down version of M:\sf\os\kernelhwsrv\kernel\eka\include\ws_std.h for iocons.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 #ifndef __WS_STD_H__
       
    24 #define __WS_STD_H__
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <e32cons.h>
       
    28 #include <e32twin.h>
       
    29 #include <e32ver.h>
       
    30 #include <e32svr.h>
       
    31 //
       
    32 //
       
    33 const TInt KW32MajorVersionNumber=1;
       
    34 const TInt KW32MinorVersionNumber=0;
       
    35 const TInt KMessageSlots=3;
       
    36 //
       
    37 enum TConsolePanic
       
    38 	{
       
    39 	EConsServerFailed,
       
    40 	EConsNotSupportedYet
       
    41 	};
       
    42 //
       
    43 enum TWsPanic
       
    44 	{
       
    45 	EPrematureOperation,
       
    46 	ETooManyWindowsOpen,
       
    47 	EWindowTooWide,
       
    48 	EWindowTooThin,
       
    49 	EWindowTooHigh,
       
    50 	EWindowTooShort,
       
    51 	EWindowOutOfMemory,
       
    52 	EDoubleReadRequest,
       
    53 	};
       
    54 //
       
    55 enum TWsFault
       
    56 	{
       
    57 	ECreateScheduler,
       
    58 	ECreateServer,
       
    59 	EStartServer,
       
    60 	ECreateEvent,
       
    61 	ECreateShell,
       
    62 	ESchedulerError,
       
    63 	EWindowsInitialisation,
       
    64 	ENoKeyboardTranslator,
       
    65 	ECreateNotifierSemaphore,
       
    66 	ECreateNotifierThread,
       
    67 	ELocaleDll,
       
    68 	EChangeLocale,
       
    69 	};
       
    70 //
       
    71 class CWsSession : public CSession2
       
    72 	{
       
    73 public:
       
    74 	enum
       
    75 		{
       
    76 		EConsoleCreate,
       
    77 		EConsoleSet,
       
    78 		EConsoleClearScreen,
       
    79 		EConsoleClearToEndOfLine,
       
    80 		EConsoleSetWindowPosAbs,
       
    81 		EConsoleSetCursorHeight,
       
    82 		EConsoleSetCursorPosAbs,
       
    83 		EConsoleSetCursorPosRel,
       
    84 		EConsoleCursorPos,
       
    85 		EConsoleControl,
       
    86 		EConsoleWrite,
       
    87 		EConsoleRead,
       
    88 		EConsoleReadCancel,
       
    89 		EConsoleDestroy,
       
    90 		EConsoleSetTitle,
       
    91 		EConsoleSetSize,
       
    92 		EConsoleSize,
       
    93 		EConsoleScreenSize,
       
    94 		EConsoleSetMode,
       
    95 		EConsoleSetPaletteEntry,
       
    96 		EConsoleGetPaletteEntry,
       
    97 		EConsoleSetTextColors,
       
    98 		EConsoleSetUIColors,
       
    99 		EConsoleSetTextAttribute
       
   100 		};
       
   101 	};
       
   102 //
       
   103 GLREF_C TInt WindowServerThread(TAny *anArg);
       
   104 GLREF_C void Panic(TWsPanic aPanic);
       
   105 GLREF_C void Fault(TWsFault aFault);
       
   106 //
       
   107 IMPORT_C void Panic(TConsolePanic aPanic);
       
   108 
       
   109 #endif	// __WS_STD_H__