|
1 /* |
|
2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Peninput server request commands and consts |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _PENINPUTCLIENTSERVER_H |
|
21 #define _PENINPUTCLIENTSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <frmtlay.h> |
|
26 |
|
27 // CONSTANTS |
|
28 // A version must be specifyed when creating a session with the server |
|
29 const TUint KPeninputServerMajorVersionNumber=0; |
|
30 const TUint KPeninputServerMinorVersionNumber=1; |
|
31 const TUint KPeninputServerBuildVersionNumber=1; |
|
32 |
|
33 const TInt KMsgSlot0 = 0; //IPC message slot 0 |
|
34 const TInt KMsgSlot1 = 1; //IPC message slot 1 |
|
35 const TInt KMsgSlot2 = 2; //IPC message slot 2 |
|
36 const TInt KMsgSlot3 = 3; //IPC message slot 3 |
|
37 |
|
38 const TInt KOperationTimerOutValue = 50000;//100000 ; //500ms |
|
39 |
|
40 // MACROS |
|
41 // server name |
|
42 _LIT(KPeninputServerName,"peninputserver"); |
|
43 _LIT(KPeninputServerSemaphoreName, "PeninputServerSemaphore"); |
|
44 _LIT(KPeninputServerExe, "z:\\sys\\bin\\peninputserver.exe"); |
|
45 |
|
46 |
|
47 // opcodes used in message passing between client and server |
|
48 enum TPeninputServerRqst |
|
49 { |
|
50 EPeninputServerRequestMessageNotification, |
|
51 EPeninputServerCancelMessageNotification, |
|
52 |
|
53 EPeninputRequestHandleClientCommand, |
|
54 //EPeninputRequestHandleClientSignal, //Notification command from client |
|
55 EPeninputRequestGetServerEventData, |
|
56 EPeninputRequestGetServerEventDataNumber, |
|
57 EPeninputRequestUiIsVisible, |
|
58 EPeninputRequestUiEditorMaxLength, |
|
59 EPeninputRequestUiGetUiPos, |
|
60 EPeninputRequestUiSetUiPos, |
|
61 EPeninputRequestUiSendAppEditorText, |
|
62 EPeninputServerRequestSetDisplayMode, |
|
63 EPeninputServerClearServerEvent, |
|
64 //EPeninputRequestLayoutSizeChanged, |
|
65 //EPeninputRequestLayoutSizeChangedWithData, |
|
66 EPeninputRequestResourceChanged, |
|
67 EPeninputRequestActivateLayout, |
|
68 EPeninputRequestSetUiLayoutId, |
|
69 EPeninputRequestSetUiLayoutIdWithData, |
|
70 //EPeninputRequestPrepareSimulateEvent, |
|
71 EPenInputRequestGetImePluginIdList, |
|
72 EPenInputRequestGetPenSupportLanguages, |
|
73 EPeninputRequestSetForeground, |
|
74 EPeninputRequestIsForeground, |
|
75 EPeninputRequestAddUiObserver, |
|
76 EPeninputRequestRemoveUiObserver, |
|
77 EPeninputRequestUiNotificationCompleted, |
|
78 //EPeninputRequestChangeUiObserverType, |
|
79 EPeninputRequestActivateLayoutInGlobalNotes, |
|
80 EPeninputRequestDisableLayout, |
|
81 EPeninputRequestDimLayout, |
|
82 EPeninputRequestUpdateAppInfo, |
|
83 EPeninputRequestRelinquishForeground, |
|
84 EPeninputRequestIsLayoutDimmed, |
|
85 EPeninputRequestServerThreadId, |
|
86 EPeninputRequestGetDisableLayout, |
|
87 EPeninputBackgroudDefaultOri, |
|
88 EPeninputRequestInternalDimLayout, |
|
89 EPeninputRequestDimResChangeLayout, |
|
90 EPeninputRequestSupportInputMode, |
|
91 EPeninputRequestSetInputLanguage |
|
92 }; |
|
93 |
|
94 //server error code |
|
95 enum TPeninputServerErrCode |
|
96 { |
|
97 KErrObserverNoHandler = -1005, //observer does not have handler |
|
98 KErrObserverAlreadyActive = -1004, //observer already active |
|
99 KErrInvalidCmdCase = -1003, //invalid command |
|
100 KErrNoLayout = -1002, //current no layout is created |
|
101 KErrInvalidLayoutId = -1001, // no ui plugin for this layout id. |
|
102 KErrNoServer = -1000, //no server |
|
103 KErrNotForegroundSession, |
|
104 KErrNotWrongFocusedWindowGroup //command from different focused window group will be ignore. |
|
105 }; |
|
106 #endif // _PENINPUTCLIENTSERVER_H |
|
107 // End of File |