|
1 // Copyright (c) 1997-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 "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if !defined(__APGCLSV_H__) |
|
17 #define __APGCLSV_H__ |
|
18 |
|
19 #if !defined(__E32BASE_H__) |
|
20 #include <e32base.h> |
|
21 #endif |
|
22 #if !defined(__APAID_H__) |
|
23 #include <apaid.h> |
|
24 #endif |
|
25 #if !defined(__APMSTD_H__) |
|
26 #include <apmstd.h> |
|
27 #endif |
|
28 |
|
29 // A version must be specifyed when creating a session with the server |
|
30 const TUint KAppListServMajorVersionNumber=7; |
|
31 const TUint KAppListServMinorVersionNumber=1; |
|
32 const TUint KAppListServBuildVersionNumber=117; |
|
33 |
|
34 enum TAppListServRanges |
|
35 { |
|
36 EFirstUnrestrictedOpcodeInAppListServ, |
|
37 EFirstOpcodeNeedingWriteDeviceDataInAppListServ=100, |
|
38 }; |
|
39 |
|
40 // opcodes used in message passing between client and server |
|
41 enum TCountServRqst |
|
42 { |
|
43 //No Capability requirement |
|
44 EAppListServFirst = EFirstUnrestrictedOpcodeInAppListServ, |
|
45 EAppListServInitFullList, |
|
46 EAppListServInitEmbedList, |
|
47 EAppListServGetNextApp, |
|
48 EAppListServEmbedCount, |
|
49 EAppListServAppCount, |
|
50 EAppListServGetAppInfo, |
|
51 EAppListServGetAppCapability, |
|
52 EAppListServStartAppWithoutReturningThreadId, |
|
53 EAppListServStartAppReturningThreadId, |
|
54 EAppListServRecognizeData, |
|
55 EAppListServRecognizeDataPassedByFileHandle, |
|
56 EAppListServRecognizeSpecificData, |
|
57 EAppListServRecognizeSpecificDataPassedByFileHandle, |
|
58 EAppListServAppForDataType, |
|
59 EAppListServStartDocument, |
|
60 EAppListServStartDocumentByDataType, |
|
61 EAppListServStartDocumentByUid, |
|
62 EAppListServCreateDocumentByUid, |
|
63 EAppListServGetExecutableNameGivenDocument, |
|
64 EAppListServGetExecutableNameGivenDocumentPassedByFileHandle, |
|
65 EAppListServGetExecutableNameGivenDataType, |
|
66 EAppListServGetExecutableNameGivenAppUid, |
|
67 EAppListServGetOpaqueData, |
|
68 EAppListServGetNativeExecutableNameIfNonNative, |
|
69 EAppListServAppIconByUid, |
|
70 EAppListServAppForDocument, |
|
71 EAppListServAppForDocumentPassedByFileHandle, |
|
72 EAppListServGetConfidence, |
|
73 EAppListServGetBufSize, |
|
74 EAppListServSetBufSize, |
|
75 EAppListServGetDataTypesPhase1, |
|
76 EAppListServGetDataTypesPhase2, |
|
77 ESetNotify, |
|
78 ECancelNotify, |
|
79 EDCloseServer, |
|
80 EAppListServAppIconByUidAndSize, |
|
81 EAppListServGetAppIconSizes, |
|
82 EAppListServGetAppViews, |
|
83 EAppListServViewIconByUidAndSize, |
|
84 EAppListServGetFileOwnershipInfo, |
|
85 EAppListServNumberOfOwnDefinedIcons, |
|
86 EAppListServInitFilteredEmbedList, |
|
87 EAppListServInitAttrFilteredList, |
|
88 EAppListServAppIconFileName, |
|
89 EAppListServAppViewIconFileName, |
|
90 EAppListServInitServerAppList, |
|
91 EAppListServGetAppServices, |
|
92 EAppListServGetServiceImplementations, |
|
93 EAppListServGetServiceImplementationsDataType, |
|
94 EAppListServGetAppServiceUids, |
|
95 EAppListServGetAppServiceOpaqueData, |
|
96 EAppListServAppForDataTypeAndService, |
|
97 EAppListServAppForDocumentAndService, |
|
98 EAppListServAppForDocumentAndServicePassedByFileHandle, |
|
99 EAppListServApplicationLanguage, |
|
100 ERegisterListPopulationCompleteObserver, |
|
101 ECancelListPopulationCompleteObserver, |
|
102 EAppListServPreferredBufSize, |
|
103 EAppListServRecognizeFiles, |
|
104 EAppListServRecognizeFilesAsync, |
|
105 ECancelRecognizeFiles, |
|
106 EAppListServTransferRecognitionResult, |
|
107 EAppListServGetAppByDataType, |
|
108 EAppListServGetDefaultScreenNumber, |
|
109 EAppListServRuleBasedLaunching, |
|
110 EAppListServRegisterNonNativeApplicationType, |
|
111 EAppListServDeregisterNonNativeApplicationType, |
|
112 EAppListServPrepareNonNativeApplicationsUpdates, |
|
113 EAppListServRegisterNonNativeApplication, |
|
114 EAppListServDeregisterNonNativeApplication, |
|
115 EAppListServCommitNonNativeApplications, |
|
116 EAppListServRollbackNonNativeApplications, |
|
117 EAppListServGetAppType, |
|
118 ENotifyOnDataMappingChange, |
|
119 ECancelNotifyOnDataMappingChange, |
|
120 EMatchesSecurityPolicy, |
|
121 EAppListServSetAppShortCaption, |
|
122 EAppListServForceRegistration, |
|
123 EDebugHeapMark, |
|
124 EDebugHeapMarkEnd, |
|
125 EDebugHeapFailNext, |
|
126 EDebugClearAppInfoArray, |
|
127 EDebugFlushRecognitionCache, |
|
128 EDebugSetLoadRecognizersOnDemand, |
|
129 EDebugPerformOutstandingRecognizerUnloading, |
|
130 EAppListServAppIconFileHandle, |
|
131 EDebugAddFailingNonNativeApplicationsUpdate, |
|
132 EDebugAddPanicingNonNativeApplicationsUpdate, |
|
133 EDebugAddRollbackPanicingNonNativeApplicationsUpdate, // = 89 |
|
134 EAppListServAppInfoProvidedByRegistrationFile = 99, |
|
135 //WriteDeviceData Capability requirement |
|
136 // ER5 |
|
137 EAppListServSetConfidence=EFirstOpcodeNeedingWriteDeviceDataInAppListServ, |
|
138 // 8.1 |
|
139 EAppListInsertDataMapping, |
|
140 EAppListInsertDataMappingIfHigher, |
|
141 EAppListDeleteDataMapping, |
|
142 // End Marker no Capability |
|
143 EAppListFirstUnusedOpcode, |
|
144 }; |
|
145 |
|
146 |
|
147 enum TApaClientPanic |
|
148 { |
|
149 EClientBadRequest, |
|
150 EClientBadDescriptor, |
|
151 ENotifierAlreadyPresent, |
|
152 ENoSupportedDataTypes, |
|
153 EObserverAlreadyPresent, |
|
154 ENotifyOnDataMappingChangeRequestOutstanding |
|
155 #if defined(UI_FRAMEWORKS_V1_REMNANT_FOR_JAVA_MIDLET_INSTALLER) |
|
156 ,EInvalidFileName |
|
157 #endif |
|
158 }; |
|
159 |
|
160 |
|
161 struct SReturnData_AppForDocument |
|
162 { |
|
163 TUid iUid; |
|
164 TDataType iDataType; |
|
165 }; |
|
166 |
|
167 struct SReturnData_AppIconByUid |
|
168 { |
|
169 TInt iIcon; |
|
170 TInt iIconMask; |
|
171 }; |
|
172 |
|
173 struct SReturnData_AppIconByUidAndSize |
|
174 { |
|
175 TInt iIcon; |
|
176 TInt iIconMask; |
|
177 }; |
|
178 |
|
179 struct SReturnData_ViewIconByUidAndSize |
|
180 { |
|
181 TInt iIcon; |
|
182 TInt iIconMask; |
|
183 }; |
|
184 |
|
185 struct SNonNativeApplicationInfo |
|
186 { |
|
187 TUid iApplicationType; |
|
188 TInt iDrive; |
|
189 }; |
|
190 |
|
191 #endif |