libraries/iosrv/inc/clientserver.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // clientserver.h
       
     2 // 
       
     3 // Copyright (c) 2006 - 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 // 
       
     9 // Initial Contributors:
       
    10 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 #ifndef __CLIENTSERVER_H__
       
    14 #define __CLIENTSERVER_H__
       
    15 
       
    16 #include <e32std.h>
       
    17 #include <fshell/common.mmh>
       
    18 
       
    19 _LIT(KIoServerName, "iosrv");
       
    20 
       
    21 const TUid KServerUid3 = {FSHELL_UID_IOSRV};
       
    22 
       
    23 #ifdef __WINS__
       
    24 const TInt KIoStackSize = 0x2000;		// 8KB
       
    25 const TInt KIoInitHeapSize = 0x1000;	// 4KB
       
    26 const TInt KIoMaxHeapSize = 0x200000;	// 2MB
       
    27 #endif
       
    28 
       
    29 enum TIoOpcodes
       
    30 	{
       
    31 	EIoCreateReader,
       
    32 	EIoHandleClose,
       
    33 	EIoHandleSetOwner,
       
    34 	EIoHandleSetUnderlyingConsole,
       
    35 	EIoHandleAttachedToConsole,
       
    36 	EIoOpenReaderByThreadId,
       
    37 	EIoOpenReaderByExplicitThreadId,
       
    38 	EIoDuplicateReader,
       
    39 	EIoCreateWriter,
       
    40 	EIoOpenWriterByThreadId,
       
    41 	EIoOpenWriterByExplicitThreadId,
       
    42 	EIoDuplicateWriter,
       
    43 	EIoSetReadWriteMode,
       
    44 	EIoSetReadMode,
       
    45 	EIoSetReaderToForeground,
       
    46 	EIoRead,
       
    47 	EIoSetLineSeparator,
       
    48 	EIoWrite,
       
    49 	EIoReadCancel,
       
    50 	EIoWriteCancel,
       
    51 	EIoIsForegroundReader,
       
    52 	EIoConsoleWaitForKey,
       
    53 	EIoConsoleWaitForKeyCancel,
       
    54 	EIoConsoleCaptureKey,
       
    55 	EIoConsoleCancelCaptureKey,
       
    56 	EIoConsoleCaptureAllKeys,
       
    57 	EIoConsoleCancelCaptureAllKeys,
       
    58 	EIoConsoleCursorPos,
       
    59 	EIoConsoleSetCursorPosAbs,
       
    60 	EIoConsoleSetCursorPosRel,
       
    61 	EIoConsoleSetCursorHeight,
       
    62 	EIoConsoleSetTitle,
       
    63 	EIoConsoleClearScreen,
       
    64 	EIoConsoleClearToEndOfLine,
       
    65 	EIoConsoleScreenSize,
       
    66 	EIoConsoleSetAttributes,
       
    67 	EIoEndPointAttachReader,
       
    68 	EIoEndPointAttachWriter,
       
    69 	EIoEndPointSetForegroundReadHandle,
       
    70 	EIoCreatePipe,
       
    71 	EIoCreateConsole,
       
    72 	EIoOpenConsole,
       
    73 	EIoConsoleImplementation,
       
    74 	EIoCreateFile,
       
    75 	EIoCreateNull,
       
    76 	EIoSetObjectName,
       
    77 	EIoCreatePersistentConsole,
       
    78 	EIoOpenPersistentConsoleByName,
       
    79 	EIoPersistentConsoleAttachReadEndPoint,
       
    80 	EIoPersistentConsoleAttachWriteEndPoint,
       
    81 	EIoPersistentConsoleDetachReadEndPoint,
       
    82 	EIoPersistentConsoleDetachWriteEndPoint,
       
    83 	EIoPersistentConsoleNotifyReadDetach,
       
    84 	EIoPersistentConsoleNotifyWriteDetach,
       
    85 	EIoPersistentConsoleCancelNotifyReadDetach,
       
    86 	EIoPersistentConsoleCancelNotifyWriteDetach,
       
    87 	EIoPersistentConsoleGetAttachedNames,
       
    88 	EIoPersistentConsoleGetCreatorThreadId,
       
    89 	EIoHandleIsType,
       
    90 	EIoFindFirstHandle,
       
    91 	EIoFindNextHandle,
       
    92 	EIoOpenFoundHandle,
       
    93 	EIoHandleGetName,
       
    94 	EIoHandleEquals,
       
    95 	EIoReadHandleNotifyChange,
       
    96 	EIoReadHandleCancelNotifyChange,
       
    97 	EIoDuplicateReaderHandleFromThread,
       
    98 	EIoDuplicateWriterHandleFromThread,
       
    99 	EIoSetIsStdErr,
       
   100 	};
       
   101 
       
   102 class TServerStart
       
   103 	{
       
   104 public:
       
   105 	TServerStart();
       
   106 	TServerStart(TRequestStatus& aStatus);
       
   107 	TPtrC AsCommand() const;
       
   108 	TInt GetCommand();
       
   109 	void SignalL();
       
   110 private:
       
   111 	TThreadId iId;
       
   112 	TRequestStatus* iStatus;
       
   113 	};
       
   114 
       
   115 class TConsoleCreateParams
       
   116 	{
       
   117 public:
       
   118 	TSize iSize;
       
   119 	TInt iUnderlyingConsoleHandle;
       
   120 	TUint iOptions;
       
   121 	};
       
   122 
       
   123 #endif // __CLIENTSERVER_H__