|
1 /* |
|
2 * Copyright (c) 2004-2009 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 the License "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 * SisRegistry - shared client/server definitions |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @publishedPartner |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef __SISREGISTRYCLIENTSERVER_H__ |
|
27 #define __SISREGISTRYCLIENTSERVER_H__ |
|
28 |
|
29 #include <e32std.h> |
|
30 #include <e32base.h> |
|
31 |
|
32 namespace Swi |
|
33 { |
|
34 |
|
35 _LIT(KSisRegistryName,"!SisRegistryServer"); // name to connect to |
|
36 _LIT(KSisRegistryImg, "SisRegistryServer"); // DLL/EXE name |
|
37 _LIT(KSisRegistryShortName, "SisRegistry"); // name used for identication when panicking |
|
38 // clients - has to be less than 16 bytes |
|
39 |
|
40 const TUid KServerUid3 ={0x10202DCA}; |
|
41 |
|
42 const TInt KMaxSisRegistryMessage =100; |
|
43 const TInt KDefaultBufferSize =2048; |
|
44 |
|
45 // ENum for stub file extraction operation switch mode. |
|
46 enum TStubExtractionMode |
|
47 { |
|
48 EGetCount, |
|
49 EGetFiles |
|
50 }; |
|
51 |
|
52 enum TSisRegistryMessages |
|
53 { |
|
54 // RegistryEntry ReadOnly - All Clients |
|
55 EOpenRegistryUid, |
|
56 EOpenRegistryPackage, |
|
57 EOpenRegistryNames, |
|
58 ECloseRegistryEntry, |
|
59 ECertificateChains, |
|
60 EVersion, |
|
61 ELanguage, |
|
62 EUniqueVendorName, |
|
63 ELocalizedVendorName, |
|
64 EPackageName, |
|
65 EInRom, |
|
66 ESigned, |
|
67 EProperty, |
|
68 ESelectedDrive, |
|
69 EInstalledDrives, |
|
70 ERemoveWithLastDependent, |
|
71 ESetRemoveWithLastDependent, |
|
72 EGetMatchingSupportedLanguages, |
|
73 // daemon interface |
|
74 EAddDrive, |
|
75 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
76 ERemoveDrive, |
|
77 #endif |
|
78 |
|
79 // all clients |
|
80 EControllers, |
|
81 |
|
82 EGetTrust, |
|
83 ETrustTimeStamp, |
|
84 ETrustStatus, |
|
85 |
|
86 EIsSidPresent, |
|
87 ESidToFileName, |
|
88 |
|
89 EShutdownAllApps, |
|
90 |
|
91 EVerifyController, |
|
92 EInitRecovery, // daemon interface |
|
93 EPackageExistsInRom, |
|
94 EStubFileEntries, |
|
95 ESeparatorMinimumReadUserData =32, |
|
96 // RegistrySession ReadOnly ReadUserData Clients |
|
97 EInstalledUids, |
|
98 EInstalledPackages, |
|
99 // New ReadUserData calls should be added in the ESeparatorMinimumReadUserData2 range |
|
100 // All clients. |
|
101 ESidToPackage, |
|
102 EUidInstalled, |
|
103 EControllerInstalled, |
|
104 EModifiable, |
|
105 EHash, |
|
106 EHashEntry, |
|
107 EUid, |
|
108 EGetEntry, |
|
109 EUidPresent, |
|
110 EAugmentation, |
|
111 ESids, |
|
112 EFiles, |
|
113 EFileDescriptions, |
|
114 EPackageAugmentations, |
|
115 EPackageExecutables, |
|
116 EPreInstalled, |
|
117 ESize, |
|
118 EPackage, |
|
119 EPackageAugmentationsNumber, |
|
120 ENonRemovable, |
|
121 EloggingFile, |
|
122 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
123 EIsFileRegistered, |
|
124 EComponentIdForUid, |
|
125 #endif |
|
126 // NOTE : The security policy range ESeparatorMinimumWriteUserData- |
|
127 // ESeparatorMinimumTCB also requires NetworkServices as well as |
|
128 // WriteUserData |
|
129 ESeparatorMinimumWriteUserData =58, |
|
130 // RegistrySession Writable WriteUserData Clients |
|
131 ERevocationStatus, |
|
132 ECancelRevocationStatus, |
|
133 ESeparatorMinimumTCB =64, |
|
134 // RegistrySession Writable TCB Clients |
|
135 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
136 ECreateTransaction, |
|
137 ECommitTransaction, |
|
138 ERollbackTransaction, |
|
139 #endif |
|
140 EAddEntry, |
|
141 EUpdateEntry, |
|
142 EDeleteEntry, |
|
143 EInstallType, |
|
144 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
145 EAddSoftwareTypeEntry, |
|
146 EUpdateSoftwareTypeEntry, |
|
147 #endif |
|
148 |
|
149 // Additional RegistryWritableSession clients |
|
150 |
|
151 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
152 ERegenerateCache, |
|
153 #endif |
|
154 |
|
155 // Additional ReadUserData calls |
|
156 ESeparatorMinimumReadUserData2 = 256, |
|
157 ERemovablePackages, |
|
158 // RegistryEntry ReadUserData |
|
159 EDeletablePreInstalled, |
|
160 EDependentPackages, |
|
161 EEmbeddedPackages, |
|
162 EEmbeddingPackages, |
|
163 EDependencies, |
|
164 ESignedBySuCert, |
|
165 |
|
166 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
167 ESetComponentState, //SIF only |
|
168 #endif |
|
169 ESeparatorEndAll |
|
170 |
|
171 }; |
|
172 |
|
173 } //namespace |
|
174 #endif |