|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * This file contains definitions that are necessary for the Client-Server |
|
16 * communication. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __DOSCLIENTSERVER_H__ |
|
22 #define __DOSCLIENTSERVER_H__ |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 // Constants |
|
27 _LIT(KDosServerName,"DosServer"); |
|
28 _LIT(KDosServerImg,"DosServer"); // DLL/EXE name |
|
29 |
|
30 const TInt KSDReserveFileMaxSize = 0x40000; //256*1024 |
|
31 |
|
32 /** |
|
33 * This enumeration contains the DosServer client-server messages. |
|
34 */ |
|
35 enum TDosMessages |
|
36 { |
|
37 //SubSession management |
|
38 EDosCreateSysUtilsSubSession=100, |
|
39 EDosCreateHelperSubSession, |
|
40 EDosCreateMtcSubSession, |
|
41 EDosCreateSelfTestSubSession, |
|
42 EDosCreateSaeSubSession, |
|
43 EDosCreateAccessorySubSession, |
|
44 EDosCreateAudioSubSession, |
|
45 EDosCreateExtensionSubSession, |
|
46 EDosCreateEventRcvSubSession, |
|
47 EDosCreateEventSndSubSession, |
|
48 EDosCreateBTAudioSubSession, |
|
49 EDosCloseSubSession, |
|
50 EDosCreateSharedDataSubSession, |
|
51 |
|
52 |
|
53 //Services from SysUtils |
|
54 EGetSimLanguage=200, |
|
55 EPerformDosRfs, |
|
56 ESetDosAlarm, |
|
57 |
|
58 //Services from Helper |
|
59 EGetStartupReason=300, |
|
60 EGetSWStartupReason, |
|
61 ESetSWStartupReason, |
|
62 EHelperHiddenReset, |
|
63 EGetRTCStatus, |
|
64 EGenerateGripEvent, |
|
65 |
|
66 //Services from MTC |
|
67 EPowerOn=400, |
|
68 EPowerOff, |
|
69 EResetGenerate, |
|
70 ESetState, |
|
71 EDosSync, |
|
72 ESetStateFlag, |
|
73 EGetStateFlag, |
|
74 EDosShutdownSync, |
|
75 |
|
76 //Services from SelfTest |
|
77 EPerformSelfTest=500, |
|
78 |
|
79 //Services from Sae |
|
80 EStartSae=700, |
|
81 |
|
82 //Services from Extension |
|
83 ECallFunction=800, |
|
84 |
|
85 //Service for Firing events |
|
86 ERegisterEvent=900, |
|
87 EUnRegisterEvent, |
|
88 EWaitEvent, |
|
89 EDosEventFiring, |
|
90 ECancelWaitEvent, |
|
91 |
|
92 EServerShutdown=1000, |
|
93 |
|
94 // Service from Accessory |
|
95 ESetAccessoryMode=1100, |
|
96 ESetLoopSetModeState, |
|
97 EGetLoopSetModeState, |
|
98 EGetAccessoryModeAsync, |
|
99 ECancelGetAccessoryModeAsync, |
|
100 EGetAccessoryModeNew, |
|
101 |
|
102 // Service from Audio |
|
103 ESetVolumeMuteState=1200, |
|
104 EGetVolumeMuteState, |
|
105 ESetHandsfreeMode, |
|
106 EGetHandsfreeMode, |
|
107 EGetOutputVolume, |
|
108 ESetOutputVolume, |
|
109 EEnumerateAudioVolumeLevels, |
|
110 EEnumerateAudioVolumeLevelsAsync, |
|
111 ECancelEnumerateAudioVolumeLevelsAsync, |
|
112 EGetOutputVolumeAsync, |
|
113 ECancelGetOutputVolumeAsync, |
|
114 ESetOutputVolumeAsync, |
|
115 ECancelSetOutputVolumeAsync, |
|
116 ESetAccessoryModeAsync, |
|
117 ECancelSetAccessoryModeAsync, |
|
118 ESetVolumeMuteStateAsync, |
|
119 ECancelSetVolumeMuteStateAsync, |
|
120 EGetVolumeMuteStateAsync, |
|
121 ECancelGetVolumeMuteStateAsync, |
|
122 |
|
123 //Services from BTAudio |
|
124 EAttachAudioAccessoryReq=1300, // requests |
|
125 ECancelAttachAudioAccessoryReq, |
|
126 EDetachAudioAccessoryReq, |
|
127 ECancelDetachAudioAccessoryReq, |
|
128 EAudioLinkOpenResp, // responses |
|
129 EAudioLinkCloseResp, |
|
130 EActivateVoiceRecognitionResp, |
|
131 EAbortVoiceRecognitionResp, |
|
132 EVoiceRecognitionStatusResp, |
|
133 EQuerySpeedDialNumberResp, |
|
134 EQueryLastDialledVoiceNumberResp, |
|
135 EAudioLinkOpenInd, // indications |
|
136 EAudioLinkCloseInd, |
|
137 EVoiceRecognitionStatusInd, |
|
138 // Service from SharedData |
|
139 ERequestFreeDiskSpace=1400, |
|
140 ERequestFreeDiskSpaceCancel |
|
141 }; |
|
142 |
|
143 //FLAGS |
|
144 const TUint KNoAutoComplete= 0x0; |
|
145 const TUint KAutoComplete= 0x1; |
|
146 const TUint KUseDefaultIntensity= 0x2; |
|
147 |
|
148 /** |
|
149 * The following enumaration defines the DosServer panic codes. |
|
150 */ |
|
151 enum TDosPanic |
|
152 { |
|
153 // Illegal function called via client-server interface |
|
154 EPanicIllegalFunction=0, |
|
155 EPanicBadHandle, |
|
156 EPanicBadDescriptor, |
|
157 }; |
|
158 |
|
159 |
|
160 #endif // __DOSCLIENTSERVER_H__ |