114
|
1 |
/*
|
|
2 |
* Copyright (c) 1020 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: HSPS server
|
|
15 |
*
|
|
16 |
* Architecture
|
|
17 |
* ************
|
|
18 |
* ChspsThemeServer derives CPolicyServer when compiled on EKA2 based Symbian OS.
|
|
19 |
* ChspsThemeServer depends on the following classes:
|
|
20 |
* - ChspsInstallationHandler which implements MhspsInstallationHandler,
|
|
21 |
* - ChspsMaintenanceHandler which implements MhspsMaintenanceHandler,
|
|
22 |
* - ChspsClientRequestHandler which implements MhspsClientRequestHandler,
|
|
23 |
* - ChspsDefinitionRepository and ChspsODT from Xuikon,
|
|
24 |
* - ChspsFileChangeListener,
|
|
25 |
* - ChspsAutoInstaller, and
|
|
26 |
* - CRepository from Symbian.
|
|
27 |
*
|
|
28 |
* Functionality
|
|
29 |
* *************
|
|
30 |
* When client connects to hspsThemeServer, the access rights are checked.
|
|
31 |
* If access is granted, a server session is created. Once connected, client may
|
|
32 |
* perform service requests as long as it is connected. Service requests are
|
|
33 |
* served by initiating appropriate service handlers. These service handlers are
|
|
34 |
* Symbian active objects, based on CActive-class. In using active ojects, it is
|
|
35 |
* possible to perform long-lasting service requests without blocking others
|
|
36 |
* clients getting served on-time. Active objects are also used to assist
|
|
37 |
* services to perform asynchronous operations internally, for e.g. when service
|
|
38 |
* is executing slow media conversions. Furthermore, some of these services are
|
|
39 |
* extended to implement timer-functionality, based on CTimer-class.
|
|
40 |
* These active timers are used to control different time-based server
|
|
41 |
* operations and initiate service-state refreshing functionality.
|
|
42 |
* hspsThemeServer contains auto-install feature that can install Application
|
|
43 |
* Theme on SISX-packet exctraction.
|
|
44 |
*
|
|
45 |
*
|
|
46 |
* Installation Handler
|
|
47 |
* ====================
|
|
48 |
* ChspsInstallatioHandler-active object performs all installation related
|
|
49 |
* functionality. Installation concerns reading installation instructions from
|
|
50 |
* manifest-file, utilizind Xuikon Definition Engine to parse xml- and
|
|
51 |
* css-files, and apply style and localisation information defined in dtd-files
|
|
52 |
* into the DOM-document created. Installer also handles resources that theme
|
|
53 |
* may include. Some resource types may need conversions to fit on the target
|
|
54 |
* device's screen or audio device etc. In this case, the installer performs
|
|
55 |
* media conversions by its Media Converter. Conversions are asynchronous and
|
|
56 |
* they deploy MIME-types. For more information of media conversions, see
|
|
57 |
* ChspsMediaConverter documentation. When installation is successful,
|
|
58 |
* Installation Handler utilizes Xuikon Definition Repository to store the
|
|
59 |
* results. The resulted objects are for e.g. unlocalised and localised
|
|
60 |
* versions of application theme. Theme associated resources are also handled
|
|
61 |
* in unlocalised and localised versions. Resources are stored on repository
|
|
62 |
* and their related information is stored on the list of ChspsResource-objects
|
|
63 |
* - a resource list. This list of ChspsResource-objects is called Resource List.
|
|
64 |
* Definition Repository is located in hspsThemeServer private folder.
|
|
65 |
* Repository is organisized by theme header information.
|
|
66 |
* For more information, see hspsResource documentation.
|
|
67 |
* On theme updates, i.e. installation over previous one, Installation Handler
|
|
68 |
* deploys ChspsSecurityEnforcer to control theme update rights.
|
|
69 |
* For more information, see ChspsSecurityEnforcer documentation and
|
|
70 |
* ChspsInstallatioHandler documentation.
|
|
71 |
*
|
|
72 |
* Maintenance Handler
|
|
73 |
* ===================
|
|
74 |
* ChspsMaintenanceHandler-active timer performs all theme maintenance related
|
|
75 |
* functionality. Maintenance services includes theme listing, theme activation,
|
|
76 |
* theme removal and default theme restoring operations. Maintenance functions
|
|
77 |
* deploy Xuikon Definition Repository and Symbian Central Repository.
|
|
78 |
* Definition Repository maintains Application Themes in save place and Central
|
|
79 |
* Repository maintains the information about which theme is active for what
|
|
80 |
* application. Information in Central Repository is presented in pairs of
|
|
81 |
* application UID and active theme UID.
|
|
82 |
* For more information, see ChspsMaintenanceHandler documentation.
|
|
83 |
*
|
|
84 |
* Client Request Handler
|
|
85 |
* ======================
|
|
86 |
* ChspsClientRequestHandler-active timer performs all request accesses from
|
|
87 |
* Rendering Engine. When request exists, the just right one application theme
|
|
88 |
* is delivered to client process using memory chunk passing. Resource List is
|
|
89 |
* delivered too. Client Request Handler uses Xuikon Definition Repository and
|
|
90 |
* Symbian Central Repository to get match theme on the request. Client Request
|
|
91 |
* Handler serves also resource accesses. In using file handle passing
|
|
92 |
* introduced by Symbian Platform Security concept, Client Request Service
|
|
93 |
* arranges a resource access to hspsThemeServer's private folder for the client
|
|
94 |
* process. RFile handle passing is used.
|
|
95 |
* For more information, see ChspsClientRequestHandler documentation.
|
|
96 |
*
|
|
97 |
* File Change Listener
|
|
98 |
* ==================
|
|
99 |
* ChspsFileChangeListener listens to given file folder and notifies its observer
|
|
100 |
* if there is any file change. Observer is given as a parameter on
|
|
101 |
* initialising the listener. Observer must implement MhspsFileChangeObserver-interface.
|
|
102 |
* FileChangeListener is asynchronous object that deploys Symbian RFs client-sideAutoInstaller
|
|
103 |
* handle on File Manager. FileChangeListener is intended to be used by any object
|
|
104 |
* that wants listen Symbian file system events.
|
|
105 |
*
|
|
106 |
* Auto Installer
|
|
107 |
* ==============
|
|
108 |
* ChspsAutoInstaller installs theme from given location. It is intended
|
|
109 |
* to be used by hspsThemeServer directly. AutoInstaller is initiated
|
|
110 |
* when FileChangeListener finds installable theme source on given
|
|
111 |
* location. Theme source is set during the SISX-package exctraction.
|
|
112 |
* AutoInstaller is deployed by calling its function InstallThemeL with manifest-file
|
|
113 |
* of the installable theme source set.
|
|
114 |
* AutoInstaller deploys ChspsInstallationHandler. ChspsInstallationHandler
|
|
115 |
* is asynchronous object, there for AutoInstaller is asynchronous object
|
|
116 |
* as well capable to deploy asynchronous installation.
|
|
117 |
* When installation ends, AutoInstaller calls its observer with
|
|
118 |
* ThspsServiceCompletedMessage-type parameter. Observer is given on
|
|
119 |
* initialising of AutoInstaller and it must be ChspsThemeServer-type.
|
|
120 |
* AutoInstaller have functions to get ODT-header of successfully installed
|
|
121 |
* theme and ChspsResult-typed object expressing errors in unsuccessful cases.
|
|
122 |
*
|
|
123 |
* Security Enforcer
|
|
124 |
* =================
|
|
125 |
* ChspsSecurityEnforcer performs all security related functions in Xuikon
|
|
126 |
* Application Theme Management services.
|
|
127 |
* These functions are the following:
|
|
128 |
* - locking policy functionality,
|
|
129 |
* - style locking policy functionality,
|
|
130 |
* - control user access on service request, and
|
|
131 |
* - validate content of user queries.
|
|
132 |
*
|
|
133 |
* Performance accelerators
|
|
134 |
* ************************
|
|
135 |
*
|
|
136 |
* HeaderListCache
|
|
137 |
* ---------------
|
|
138 |
* To speed up serving the theme request operations initiated by Rendering
|
|
139 |
* Engine in theme usage cases, hspsThemeServer maintains cache of the header
|
|
140 |
* information of the themes stored in Definition Repository. When installation
|
|
141 |
* occurs, cache is updated. First time the cache is updated when hspsThemeServer
|
|
142 |
* starts - server is started by system starter service. This quaranties
|
|
143 |
* that cache is up to date and hit will occur on the very first access.
|
|
144 |
* Cache is updated also by MaintenanceHandler and ClientRequestHandler on
|
|
145 |
* the cases where content of repository is affected.
|
|
146 |
*
|
|
147 |
* Pre-initialized objects
|
|
148 |
* -----------------------
|
|
149 |
* hspsThemeServer speeds up the performance also by pre-initialized objects
|
|
150 |
* which it passes to ChspsClientRequestHandler when one is initiated on new
|
|
151 |
* Client Request Service server session. These objects are the following:
|
|
152 |
* - ChspsDefinitionRepository
|
|
153 |
* - CRepository for the KhspsThemeStatusRepositoryUid {0x10207342}
|
|
154 |
*
|
|
155 |
*
|
|
156 |
*/
|
|
157 |
|
|
158 |
|
|
159 |
#ifndef __hspsTHEMESERVER_H__
|
|
160 |
#define __hspsTHEMESERVER_H__
|
|
161 |
|
|
162 |
#include <e32base.h>
|
|
163 |
#include <abclient.h>
|
|
164 |
|
|
165 |
#include "hspsfilechangelistener.h"
|
|
166 |
#include "hspscenreplistener.h"
|
|
167 |
#if defined(WINSCW) || defined(__WINS__)
|
|
168 |
#include "hspsfamilylistener.h"
|
|
169 |
#endif // defined(WINSCW)
|
|
170 |
#include "hspsthememanagement.h"
|
|
171 |
#include "hspsodt.h"
|
|
172 |
#include "hspsdefinitionrepository.h"
|
|
173 |
#include "hspsbrobserver.h"
|
|
174 |
#include "hspsbrhandler.h"
|
|
175 |
|
|
176 |
#include "hsps_builds_cfg.hrh"
|
|
177 |
|
|
178 |
// C-Drive directory for the SISX installation files
|
|
179 |
_LIT( KImportDirectoryC, "c:\\private\\200159c0\\import\\" );
|
|
180 |
|
|
181 |
// directory for the SISX installation files
|
|
182 |
_LIT( KImportDirectory, "\\private\\200159c0\\import\\" );
|
|
183 |
|
|
184 |
/** hspsThemeServer name: */
|
|
185 |
_LIT(KhspsThemeServerName,"hspsthemeserver");
|
|
186 |
|
|
187 |
/** Supported manifest version */
|
|
188 |
_LIT(KhspsSupportedManifestVersion,"2.0");
|
|
189 |
|
|
190 |
/** hspsThemeServer Uid3 = SECUREID. */
|
|
191 |
const TUid KhspsThemeServerUid3 = {0x200159C0}; //old uid 0x10207254};
|
|
192 |
|
|
193 |
/**
|
|
194 |
* KhspsThemeServerMajorVersionNumber, KhspsThemeServerMinorVersionNumber,
|
|
195 |
* and KhspsThemeServerBuildVersionNumber.
|
|
196 |
* These constants define a version to be given for creating a session
|
|
197 |
* with the hspsThemeServer.
|
|
198 |
*/
|
|
199 |
const TUint KhspsThemeServerMajorVersionNumber=1;
|
|
200 |
const TUint KhspsThemeServerMinorVersionNumber=0;
|
|
201 |
const TUint KhspsThemeServerBuildVersionNumber=0;
|
|
202 |
|
|
203 |
/*
|
|
204 |
* KDefaultMessageSlots. Number of hspsThemeServer message slots.
|
|
205 |
* Server slots allocation rules: 1 for synchronous request, 1 for each
|
|
206 |
* concurrent outstanding asynchronous requests and 1 for each cancellation
|
|
207 |
* => 3 in this case.
|
|
208 |
*/
|
|
209 |
const TInt KDefaultMessageSlots = 3;
|
|
210 |
|
|
211 |
// Forward declarations.
|
|
212 |
class ChspsDefinitionRepository;
|
|
213 |
class ChspsDefinitionEngineInterface;
|
|
214 |
class CRepository;
|
|
215 |
class ChspsSecurityEnforcer;
|
|
216 |
class ChspsRomInstaller;
|
|
217 |
class ChspsAutoInstaller;
|
|
218 |
class ChspsThemeServerSession;
|
|
219 |
class ChspsFamily;
|
|
220 |
|
|
221 |
#ifdef HSPS_LOG_ACTIVE
|
|
222 |
class ChspsLogBus;
|
|
223 |
#endif
|
|
224 |
|
|
225 |
// Keys for the Central Repository
|
|
226 |
const TInt KCenrepKeyLang = 100000001; // Device language from previous startup
|
|
227 |
const TInt KCenrepKeyPostRFS = 100000002; // Holds information whether the post RFS initializations have been done
|
|
228 |
const TInt KCenrepKeyCheckConf = 100000003; // Holds information whether the configuration states must be checked
|
|
229 |
const TInt KCenrepKeyAccessControlList = 100000004; // Holds information about security access control list
|
|
230 |
|
|
231 |
const TInt KCenRepBufferSize = 255; // Control Access List length
|
|
232 |
|
|
233 |
/*
|
|
234 |
* Server's policy.
|
|
235 |
*/
|
|
236 |
|
|
237 |
/* Total number of ranges */
|
|
238 |
const TUint hspsThemeRangeCount = 4;
|
|
239 |
|
|
240 |
/* Definition of the ranges of IPC numbers */
|
|
241 |
const TInt hspsThemeRanges[hspsThemeRangeCount] =
|
|
242 |
{
|
|
243 |
EhspsInstallationBase, /* installation messages (0,1,2 ) */
|
|
244 |
EhspsMaintenanceBase, /* maintenance messages (3,4,5,6,7,8) */
|
|
245 |
EhspsClientRequestBase, /* client request messages (9,10,11,12,13) */
|
|
246 |
EhspsNotSupported, /* and up; non implemented function end of range check ; ENotSupported */
|
|
247 |
};
|
|
248 |
|
|
249 |
/* Policy to implement for each of the above ranges */
|
|
250 |
const TUint8 hspsThemeElementsIndex[hspsThemeRangeCount] =
|
|
251 |
{
|
|
252 |
CPolicyServer::ECustomCheck, //applies to 0th range
|
|
253 |
CPolicyServer::ECustomCheck, //applies to 1st range
|
|
254 |
CPolicyServer::ECustomCheck, //applies to 2nd range
|
|
255 |
CPolicyServer::ENotSupported //applies to 3rd range (out of range IPC)
|
|
256 |
};
|
|
257 |
|
|
258 |
/* Specific capability checks */
|
|
259 |
const CPolicyServer::TPolicyElement hspsThemeElements[] =
|
|
260 |
{
|
|
261 |
{_INIT_SECURITY_POLICY_C1(ECapabilityReadUserData), CPolicyServer::EFailClient},
|
|
262 |
//policy "0"; fail call if ReadUserData not present
|
|
263 |
{_INIT_SECURITY_POLICY_C1(ECapabilityTCB), CPolicyServer::EFailClient}
|
|
264 |
//policy "1"; fail call if TCB not present
|
|
265 |
};
|
|
266 |
|
|
267 |
/* Package all the above together into a policy */
|
|
268 |
const CPolicyServer::TPolicy hspsThemePolicy =
|
|
269 |
{
|
|
270 |
CPolicyServer::EAlwaysPass, /* specifies all connect attempts should pass */
|
|
271 |
hspsThemeRangeCount, /* number of ranges */
|
|
272 |
hspsThemeRanges, /* ranges array */
|
|
273 |
hspsThemeElementsIndex, /* elements<->ranges index */
|
|
274 |
hspsThemeElements, /* array of elements */
|
|
275 |
};
|
|
276 |
|
|
277 |
// File filters related to imports folder
|
|
278 |
_LIT( KFilterAllImportsV1, "*.dat");
|
|
279 |
_LIT( KFilterAllAppImportsV1, "app_*.dat");
|
|
280 |
_LIT( KFilterAllPluginImportsV1, "plugin_*.dat");
|
|
281 |
_LIT( KFilterAllImportsV2, "*.*");
|
|
282 |
|
|
283 |
#ifdef _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
284 |
/**
|
|
285 |
* MShutdownObserver
|
|
286 |
* Observer for automatic shutdown class.
|
|
287 |
*
|
|
288 |
* @since S60 5.0
|
|
289 |
*/
|
|
290 |
class MShutdownObserver
|
|
291 |
{
|
|
292 |
public:
|
|
293 |
/**
|
|
294 |
* Notifies observer that shutdown is initiating.
|
|
295 |
*
|
|
296 |
* @since S60 5.0
|
|
297 |
*/
|
|
298 |
virtual void ShutdownInitiating() = 0;
|
|
299 |
};
|
|
300 |
|
|
301 |
/**
|
|
302 |
* CShutdown.
|
|
303 |
* Auto shutdown class (standard pattern)
|
|
304 |
*
|
|
305 |
* @since S60 5.0
|
|
306 |
*/
|
|
307 |
class CShutdown : public CTimer
|
|
308 |
{
|
|
309 |
public:
|
|
310 |
/**
|
|
311 |
* Create new shutdown timer.
|
|
312 |
*
|
|
313 |
* @since S60 5.0
|
|
314 |
* @param aObserver Shutdown observer.
|
|
315 |
*/
|
|
316 |
static CShutdown* NewL( MShutdownObserver& aObserver );
|
|
317 |
|
|
318 |
/**
|
|
319 |
* Start shutdown timer.
|
|
320 |
*
|
|
321 |
* @since S60 5.0
|
|
322 |
*/
|
|
323 |
void Start();
|
|
324 |
|
|
325 |
protected:
|
|
326 |
/**
|
|
327 |
* C++ constructor.
|
|
328 |
*
|
|
329 |
* @since S60 5.0
|
|
330 |
* @param aObserver Shutdown observer.
|
|
331 |
*/
|
|
332 |
CShutdown( MShutdownObserver& aObserver );
|
|
333 |
|
|
334 |
/**
|
|
335 |
* Symbian 2nd phase constructor.
|
|
336 |
*
|
|
337 |
* @since S60 5.0
|
|
338 |
*/
|
|
339 |
void ConstructL();
|
|
340 |
|
|
341 |
private:
|
|
342 |
/**
|
|
343 |
* From CActive.
|
|
344 |
*/
|
|
345 |
void RunL();
|
|
346 |
|
|
347 |
private:
|
|
348 |
// Shutdown delay.
|
|
349 |
enum { KhspsShutdownDelay = 2000000 };
|
|
350 |
|
|
351 |
// Shutdown observer.
|
|
352 |
MShutdownObserver& iObserver;
|
|
353 |
};
|
|
354 |
#endif // _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
355 |
|
|
356 |
// States of the auto installer
|
|
357 |
enum TAutoInstallerStates
|
|
358 |
{
|
|
359 |
EAutoInstallerStateIdle = 0,
|
|
360 |
EAutoInstallerStateInstall = 1,
|
|
361 |
EAutoInstallerUninstall = 2
|
|
362 |
};
|
|
363 |
|
|
364 |
// Operations for header cache updates
|
|
365 |
enum ThspsCacheOperations
|
|
366 |
{
|
|
367 |
EhspsCacheAddHeader,
|
|
368 |
EhspsCacheRemoveHeader
|
|
369 |
};
|
|
370 |
|
|
371 |
// Backup states
|
|
372 |
enum ThspsBRStates
|
|
373 |
{
|
|
374 |
EhspsBRNormal = 0,
|
|
375 |
EhspsBRBackup,
|
|
376 |
EhspsBRRestore
|
|
377 |
};
|
|
378 |
|
|
379 |
|
|
380 |
/**
|
|
381 |
* @ingroup group_hspsserver
|
|
382 |
* ChspsThemeServer.
|
|
383 |
* @since S60 5.0
|
|
384 |
**/
|
|
385 |
class ChspsThemeServer : public CPolicyServer,
|
|
386 |
public MhspsFileChangeObserver,
|
|
387 |
public MhspsDefinitionRepositoryObserver,
|
|
388 |
public MhspsCenRepObserver
|
|
389 |
#ifdef _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
390 |
, public MShutdownObserver
|
|
391 |
#endif // _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
392 |
#if defined(WINSCW) || defined(__WINS__)
|
|
393 |
, public MhspsFamilyObserver
|
|
394 |
#endif // defined(WINSCW)
|
|
395 |
|
|
396 |
{
|
|
397 |
public:
|
|
398 |
|
|
399 |
/**
|
|
400 |
* NewLC
|
|
401 |
* @since S60 3.1
|
|
402 |
*/
|
|
403 |
static CServer2* NewLC();
|
|
404 |
|
|
405 |
/**
|
|
406 |
* AddSession
|
|
407 |
*
|
|
408 |
* @param aSession Session that is added. Ownership not transferred!.
|
|
409 |
*
|
|
410 |
* @since S60 3.1
|
|
411 |
*/
|
|
412 |
void AddSession( ChspsThemeServerSession* aSession );
|
|
413 |
|
|
414 |
/**
|
|
415 |
* DropSession
|
|
416 |
*
|
|
417 |
* @param aSession Session that is dropped. Ownership not transferred!.
|
|
418 |
*
|
|
419 |
* @since S60 3.1
|
|
420 |
*/
|
|
421 |
void DropSession( ChspsThemeServerSession* aSession );
|
|
422 |
|
|
423 |
public: // public functions
|
|
424 |
|
|
425 |
/**
|
|
426 |
* UpdateHeaderListCacheL
|
|
427 |
* Re-scans the file system under the Plug-in Repository.
|
|
428 |
* Execution is slow and should be used only when absolutely required.
|
|
429 |
* Updates headerlist cache
|
|
430 |
* @since S60 5.0
|
|
431 |
*/
|
|
432 |
void UpdateHeaderListCacheL();
|
|
433 |
|
|
434 |
/**
|
|
435 |
* Updates the header list cache based on the provided ODT information.
|
|
436 |
* Should be preferred over the previous API.
|
|
437 |
* @since S60 5.0
|
|
438 |
* @param aOperation is an enumeration of the cache operations
|
|
439 |
* @param aRootUid is an UID of the application/interface
|
|
440 |
* @param aProviderUid is an UID of the provider
|
|
441 |
* @param aConfUid is an UID of the plug-in configuration
|
|
442 |
*/
|
|
443 |
TInt UpdateHeaderListCache(
|
|
444 |
ThspsCacheOperations aOperation,
|
|
445 |
const TInt aRootUid,
|
|
446 |
const TInt aProviderUid,
|
|
447 |
const TInt aConfigurationUid );
|
|
448 |
|
|
449 |
/**
|
|
450 |
* CleanupTemporaryFilesL
|
|
451 |
* Cleans temporary files
|
|
452 |
* @since S60 3.1
|
|
453 |
*/
|
|
454 |
void CleanupTemporaryFilesL(TInt secureId = 0);
|
|
455 |
|
|
456 |
/**
|
|
457 |
* IncreaseRequestClientCount
|
|
458 |
* Increases count of client requests
|
|
459 |
* @since S60 5.0
|
|
460 |
*/
|
|
461 |
void IncreaseRequestClientCount();
|
|
462 |
|
|
463 |
/**
|
|
464 |
* DecreaseRequestClientCount
|
|
465 |
* Decreases count of client requests
|
|
466 |
* @since S60 5.0
|
|
467 |
*/
|
|
468 |
void DecreaseRequestClientCount();
|
|
469 |
|
|
470 |
/**
|
|
471 |
* HandleAutoInstallerEvent
|
|
472 |
* Handles autoinstaller events
|
|
473 |
* @since S60 3.1
|
|
474 |
*/
|
|
475 |
void HandleAutoInstallerEvent( ThspsServiceCompletedMessage aMsg );
|
|
476 |
|
|
477 |
/**
|
|
478 |
* DefinitionRepository
|
|
479 |
* @since S60 3.1
|
|
480 |
*/
|
|
481 |
ChspsDefinitionRepository& DefinitionRepository();
|
|
482 |
|
|
483 |
/**
|
|
484 |
* SecurityEnforcer
|
|
485 |
* @since S60 3.1
|
|
486 |
*/
|
|
487 |
ChspsSecurityEnforcer& SecurityEnforcer();
|
|
488 |
|
|
489 |
/**
|
|
490 |
* CentralRepository
|
|
491 |
* @since S60 3.1
|
|
492 |
*/
|
|
493 |
CRepository& CentralRepository();
|
|
494 |
|
|
495 |
/**
|
|
496 |
* DeviceLanguage
|
|
497 |
* Returns device language
|
|
498 |
* @since S60 3.1
|
|
499 |
*/
|
|
500 |
TLanguage DeviceLanguage();
|
|
501 |
|
|
502 |
/**
|
|
503 |
* HeaderListCache
|
|
504 |
* Returns headerlist cache
|
|
505 |
* @since S60 3.1
|
|
506 |
*/
|
|
507 |
CArrayPtrSeg<ChspsODT>& HeaderListCache();
|
|
508 |
|
|
509 |
/**
|
|
510 |
* GetConfigurationL
|
|
511 |
* Retrieves a configuration with the provided UIDs.
|
|
512 |
* @since S60 5.0
|
|
513 |
* @param aInterfaceUid An uid of the interface or application (e.g. AI3, Java etc), optional.
|
|
514 |
* @param aConfigurationUid An uid of the plugin configuration
|
|
515 |
* @param aRetrievedODT Retrieved configuration
|
|
516 |
* @return KErrNone if operation succeeded
|
|
517 |
*/
|
|
518 |
TInt GetConfigurationL(
|
|
519 |
const TInt aInterfaceUid,
|
|
520 |
const TInt aConfigurationUid,
|
|
521 |
ChspsODT& aRetrievedODT );
|
|
522 |
|
|
523 |
/**
|
|
524 |
* GetConfigurationHeaderL
|
|
525 |
* Retrieves a configuration header matching the search criteria
|
|
526 |
* @since S60 5.0
|
|
527 |
* @param aSearchMask ODT header defining search criteria
|
|
528 |
* @param aConfHeader Found ODT header
|
|
529 |
* @param aPos Start/Found position
|
|
530 |
*/
|
|
531 |
void GetConfigurationHeader(
|
|
532 |
ChspsODT& aSearchMask,
|
|
533 |
ChspsODT*& aConfHeader,
|
|
534 |
TInt& aPos );
|
|
535 |
|
|
536 |
/**
|
|
537 |
* Erases resource files from plug-in specific subdirectories under
|
|
538 |
* the client's private path.
|
|
539 |
* Plug-ins that belong to an active application configuration will
|
|
540 |
* be processed.
|
|
541 |
* @since S60 5.2
|
|
542 |
* @param aAppODT is an application configuration to be checked
|
|
543 |
*/
|
|
544 |
void ResetResourcesL( ChspsODT& aAppODT );
|
|
545 |
|
|
546 |
/**
|
|
547 |
* Localizes an ODT.
|
|
548 |
* Testing: change first two digits from \epoc32\RELEASE\WINSCW\udeb\
|
|
549 |
* Z\resource\BootData\Languages.txt file and reboot the emulator.
|
|
550 |
* @since S60 5.0
|
|
551 |
* @param aEngine is a service for replacing DTD entities in XML.
|
|
552 |
* @param aOdt is an ODT instance to be localized.
|
|
553 |
* @return ETrue if the ODT was successfully localized
|
|
554 |
*/
|
|
555 |
TBool LocalizeL(
|
|
556 |
ChspsDefinitionEngineInterface& aEngine,
|
|
557 |
ChspsODT& aOdt );
|
|
558 |
|
|
559 |
/**
|
|
560 |
* Parses name of a manifest from the provided import's name.
|
|
561 |
* @since S60 5.0
|
|
562 |
* @param aImportFile is a name of the import to be parsed
|
|
563 |
* @param aPath is a path from which the import should be found
|
|
564 |
* @return descriptor holding name of the manifest or NULL
|
|
565 |
*/
|
|
566 |
HBufC* GetManifestFromImportLC(
|
|
567 |
const TDesC& aImportFile,
|
|
568 |
const TDesC& aPath );
|
|
569 |
|
|
570 |
/**
|
|
571 |
* Check the installed configurations
|
|
572 |
* @param aAppUid Application UID which configurations are checked
|
|
573 |
* @since S60 5.0
|
|
574 |
*/
|
|
575 |
void CheckConfigurationL(
|
|
576 |
const TInt aAppUid );
|
|
577 |
|
|
578 |
/**
|
|
579 |
* Reinstalls defined configuration
|
|
580 |
* @param aAppUid Application UID which configuration is reinstalled
|
|
581 |
* @param aConfUid Configuration UID of reinstalled configuration
|
|
582 |
* @since S60 5.0
|
|
583 |
*/
|
|
584 |
void ReinstallConfL(
|
|
585 |
TInt aAppUid,
|
|
586 |
TInt aConfUid );
|
|
587 |
|
|
588 |
/**
|
|
589 |
* Handles received backup event
|
|
590 |
* @since S60 5.0
|
|
591 |
* @param aEvent Backup event
|
|
592 |
*/
|
|
593 |
void HandleBREventL( TInt aEvent );
|
|
594 |
|
|
595 |
/**
|
|
596 |
* Prepares backup data for passive backup
|
|
597 |
* @since S60 5.0
|
|
598 |
*/
|
|
599 |
void CreateBackupDataL();
|
|
600 |
|
|
601 |
|
|
602 |
/**
|
|
603 |
* Check the installed plugin is used in some application configuration
|
|
604 |
* @since S60 5.0
|
|
605 |
* @param aPluginUid Plugin UID of installed configuration
|
|
606 |
*/
|
|
607 |
TInt CheckInstalledPluginUsageL( const TInt aPluginUid );
|
|
608 |
|
|
609 |
/**
|
|
610 |
* Check if given plugin is in header cache.
|
|
611 |
*
|
|
612 |
* @since S60 5.0
|
|
613 |
* @param aPluginUid Plugin UID to search from header cache.
|
|
614 |
*/
|
|
615 |
TBool PluginInHeaderCache( const TUid aPluginUid );
|
|
616 |
|
|
617 |
/**
|
|
618 |
* Cleanup server resources. This method is called when server is been
|
|
619 |
* shut down and active scheduler is still installed.
|
|
620 |
*
|
|
621 |
* @since S60 5.0
|
|
622 |
*/
|
|
623 |
void Cleanup();
|
|
624 |
|
|
625 |
/**
|
|
626 |
* Activates provided application configuration.
|
|
627 |
* @param aSetMask Identifies an application configuration which is to be activated.
|
|
628 |
* @param aOdt Activated application configuration
|
|
629 |
*/
|
|
630 |
TInt ActivateThemeL(
|
|
631 |
const ChspsODT& aSetMask,
|
|
632 |
ChspsODT& aOdt );
|
|
633 |
|
|
634 |
/**
|
|
635 |
* Retrieves active application configuration from Central Repository.
|
|
636 |
* @since S60 5.0
|
|
637 |
* @param aAppUid Identifies the application
|
|
638 |
* @param aOdt Contains currently active application configuration
|
|
639 |
*/
|
|
640 |
TInt GetActivateAppConfigurationL(
|
|
641 |
const TInt aAppUid,
|
|
642 |
ChspsODT& aOdt );
|
|
643 |
|
|
644 |
/**
|
|
645 |
* Gets family information from an active application configuration.
|
|
646 |
* @since S60 5.0
|
|
647 |
* @param aAppUid Identifies the application
|
|
648 |
* @returns The active family
|
|
649 |
*/
|
|
650 |
TUint32 GetActiveFamilyL(
|
|
651 |
const TInt aAppUid );
|
|
652 |
|
|
653 |
/**
|
|
654 |
* Installs widgets located at \private\200159C0\install\ directories.
|
|
655 |
* @since S60 5.0
|
|
656 |
* @param aInstallUdaEmmc True if widgets should be installed from C and E drives
|
|
657 |
*/
|
|
658 |
void InstallWidgetsL(
|
|
659 |
const TBool aInstallUdaEmmc = ETrue );
|
|
660 |
|
|
661 |
/**
|
|
662 |
* Install all widgets from uda
|
|
663 |
* @param aImportDirectory import directory path
|
|
664 |
* @since S60 5.2
|
|
665 |
*/
|
|
666 |
void InstallUDAWidgetsL( const TDesC& aImportDirectory );
|
|
667 |
|
|
668 |
public: // from MhspsFileChangeObserver
|
|
669 |
|
|
670 |
/**
|
|
671 |
* HandleFileSystemChange
|
|
672 |
* Handles change of filesystem
|
|
673 |
* @since S60 3.1
|
|
674 |
*/
|
|
675 |
void HandleFileSystemChange();
|
|
676 |
|
|
677 |
/**
|
|
678 |
* HandleRepositoryChange
|
|
679 |
* Handles change of repository
|
|
680 |
* @since S60 3.1
|
|
681 |
*/
|
|
682 |
inline void HandleRepositoryChange() {};
|
|
683 |
|
|
684 |
#ifdef _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
685 |
public: // From MShutdownObserver
|
|
686 |
/**
|
|
687 |
* From MShutdownObserver.
|
|
688 |
*/
|
|
689 |
void ShutdownInitiating();
|
|
690 |
#endif // _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
691 |
|
|
692 |
/**
|
|
693 |
* Foreces checking of related file resouces within each server session.
|
|
694 |
* Should be called when the application configuration has been modified.
|
|
695 |
* @since S60 5.2
|
|
696 |
* @param aAppUid UID of the application configuration
|
|
697 |
*/
|
|
698 |
void SetResourceFileCopyRequired( const TInt aAppUid );
|
|
699 |
|
|
700 |
public: // from MhspsDefinitioRepositoryObserver
|
|
701 |
|
|
702 |
/**
|
|
703 |
* HandleDefinitionRespositoryEvent
|
|
704 |
* Handles change events received from definition repository
|
|
705 |
* @since S60 3.1
|
|
706 |
*/
|
|
707 |
TBool HandleDefinitionRespositoryEvent( ThspsRepositoryInfo aRepositoryInfo );
|
|
708 |
|
|
709 |
public: // from MhspsCenRepObserver
|
|
710 |
|
|
711 |
void HandleCenRepChangeL( const TUint32 aId );
|
|
712 |
|
|
713 |
|
|
714 |
public: // from MshspFamilyObserver
|
|
715 |
TBool HandleFamilyChangeL( const ThspsFamily aNewFamily );
|
|
716 |
|
|
717 |
ChspsFamily* Family();
|
|
718 |
|
|
719 |
private:
|
|
720 |
|
|
721 |
/**
|
|
722 |
* ChspsThemeServer
|
|
723 |
* @since S60 3.1
|
|
724 |
*/
|
|
725 |
ChspsThemeServer();
|
|
726 |
|
|
727 |
/**
|
|
728 |
* ~ChspsThemeServer
|
|
729 |
* @since S60 3.1
|
|
730 |
*/
|
|
731 |
~ChspsThemeServer();
|
|
732 |
|
|
733 |
/**
|
|
734 |
* ConstructL
|
|
735 |
* @since S60 3.1
|
|
736 |
*/
|
|
737 |
void ConstructL();
|
|
738 |
|
|
739 |
/**
|
|
740 |
* Initialized headers.
|
|
741 |
* @since S60 5.2
|
|
742 |
*/
|
|
743 |
void InitializeHeadersL();
|
|
744 |
|
|
745 |
/**
|
|
746 |
* NewSessionL
|
|
747 |
* @since S60 3.1
|
|
748 |
*/
|
|
749 |
CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
|
|
750 |
|
|
751 |
/**
|
|
752 |
* ComparePaths
|
|
753 |
* @since S60 3.1
|
|
754 |
*/
|
|
755 |
TBool ComparePaths(const ChspsODT& aOldHeader, const ChspsODT& aNewHeader);
|
|
756 |
|
|
757 |
/**
|
|
758 |
* GetHeaderListL
|
|
759 |
* Gets current headerlist from filesystem
|
|
760 |
* @param aHeaderList Destination for read headerlists from filesystem
|
|
761 |
* @param aSearchMask SearchMask to use when reading headerlists from filesystem
|
|
762 |
* @since S60 3.1
|
|
763 |
*/
|
|
764 |
void GetHeaderListL(CArrayPtrSeg<ChspsODT>& aHeaderList, const ChspsODT& aSearchMask );
|
|
765 |
|
|
766 |
/**
|
|
767 |
* CheckActiveThemesL
|
|
768 |
* Check active themes from the central repository and if needed open path info file for them
|
|
769 |
* @since S60 3.1
|
|
770 |
*/
|
|
771 |
void CheckActiveThemesL();
|
|
772 |
|
|
773 |
//From CPolicyServer
|
|
774 |
/**
|
|
775 |
* CustomSecurityCheckL
|
|
776 |
* @since S60 3.1
|
|
777 |
*/
|
|
778 |
CPolicyServer::TCustomResult CustomSecurityCheckL(const RMessage2& aMsg, TInt& aAction,
|
|
779 |
TSecurityInfo& aMissing);
|
|
780 |
|
|
781 |
/**
|
|
782 |
* HandleFileSystemChangeL
|
|
783 |
* Does the actual filesystem change handling
|
|
784 |
* @since S60 3.2
|
|
785 |
*/
|
|
786 |
void HandleFileSystemChangeL();
|
|
787 |
|
|
788 |
/**
|
|
789 |
* RunAutoInstaller
|
|
790 |
* Runs auto installer
|
|
791 |
* @since S60 5.0
|
|
792 |
*/
|
|
793 |
TBool RunAutoInstaller( TAutoInstallerStates aState );
|
|
794 |
|
|
795 |
/**
|
|
796 |
* StopAutoInstaller
|
|
797 |
* Stops auto installer and does house keeping after installation
|
|
798 |
* @since S60 3.2
|
|
799 |
*/
|
|
800 |
void StopAutoInstaller();
|
|
801 |
|
|
802 |
/**
|
|
803 |
* HandleThemeUpgrade;
|
|
804 |
* Handles the SIS theme upgrade
|
|
805 |
*/
|
|
806 |
void HandleThemeUpgradeL();
|
|
807 |
|
|
808 |
/**
|
|
809 |
* Checks whether the device language has been changed and updates
|
|
810 |
* configurations accordingly
|
|
811 |
*/
|
|
812 |
void HandleLanguageChangeL();
|
|
813 |
|
|
814 |
/**
|
|
815 |
* Localizes ODT files according to the device language.
|
|
816 |
* @since S60 5.0
|
|
817 |
*/
|
|
818 |
void LocalizeConfigurationsL();
|
|
819 |
|
|
820 |
/**
|
|
821 |
* Localizes an application configuration with a device language.
|
|
822 |
* This function is used by the LocalizeL service.
|
|
823 |
* @since S60 5.0
|
|
824 |
* @param aEngine is a service for replacing DTD entities in XML.
|
|
825 |
* @param aRequestedLanguage is the requsted language
|
|
826 |
* @return ETrue if all the application and plugin configurations were localized
|
|
827 |
*/
|
|
828 |
TBool LocalizeApplicationConfigurationL(
|
|
829 |
ChspsDefinitionEngineInterface& aEngine,
|
|
830 |
ChspsODT& aOdt,
|
|
831 |
const TLanguage aRequestedLanguage );
|
|
832 |
|
|
833 |
/**
|
|
834 |
* Localizes a plugin configuration with a device language.
|
|
835 |
* This function is used by the LocalizeL service.
|
|
836 |
* @since S60 5.0
|
|
837 |
* @param aEngine is a service for replacing DTD entities in XML.
|
|
838 |
* @param aRequestedLanguage is the requsted language
|
|
839 |
* @param aPluginUid is > 0 when LocalizeApplicationConfigurationL() is used
|
|
840 |
* @return ETrue if the plugin configuration was localized
|
|
841 |
*/
|
|
842 |
TBool LocalizePluginConfigurationL(
|
|
843 |
ChspsDefinitionEngineInterface& aEngine,
|
|
844 |
ChspsODT& aOdt,
|
|
845 |
const TLanguage aRequestedLanguage,
|
|
846 |
TInt aPluginUid );
|
|
847 |
|
|
848 |
/**
|
|
849 |
* Handles installation of ROM based manifest files when a Restore Factory Settings (RFS)
|
|
850 |
* operation has been executed (controlled via the Central Repository).
|
|
851 |
* This function is executed at bootup when the server starts.
|
|
852 |
* @since S60 5.0
|
|
853 |
*/
|
|
854 |
void HandleRomInstallationsL();
|
|
855 |
|
|
856 |
/**
|
|
857 |
* Initiates uninstallation of a manifest file located under the imports folder.
|
|
858 |
* @since S60 5.0
|
|
859 |
* @param aFilelist is a list of dat files under the imports folder or NULL
|
|
860 |
*/
|
|
861 |
void UninstallImport(
|
|
862 |
const CDir* aFilelist );
|
|
863 |
|
|
864 |
/**
|
|
865 |
* Installs new configuration based on the information in imports name.
|
|
866 |
* @since S60 5.0
|
|
867 |
* @param aFilelist is a list of dat files to be parsed under the imports folder
|
|
868 |
*/
|
|
869 |
void InstallImportsL(
|
|
870 |
const CDir& aFilelist );
|
|
871 |
|
|
872 |
/**
|
|
873 |
* Handles installation/uninstallation of imported configurations.
|
|
874 |
* A file filter controls which type of configurations are to be handled.
|
|
875 |
* @since S60 5.0
|
|
876 |
* @param aFilePrefix is a prefix for finding either plugin or application configuration imports.
|
|
877 |
*/
|
|
878 |
void HandleConfigurationImportsL(
|
|
879 |
const TDesC& aFilePrefix );
|
|
880 |
|
|
881 |
/**
|
|
882 |
*
|
|
883 |
* @since S60 5.0
|
|
884 |
* @param aAppUid is an UID of the application
|
|
885 |
*/
|
|
886 |
void UnlockSisxImportL(
|
|
887 |
const TUint32 aAppUid );
|
|
888 |
|
|
889 |
/**
|
|
890 |
*
|
|
891 |
* @since S60 5.0
|
|
892 |
* @param aAppUid is an UID of the application
|
|
893 |
* @param aConfUid is an UID of the active configuration
|
|
894 |
*/
|
|
895 |
void LockSisxImportL(
|
|
896 |
const TUint32 aAppUid,
|
|
897 |
const TInt aConfUid );
|
|
898 |
|
|
899 |
/**
|
|
900 |
* GetDeviceLanguage
|
|
901 |
* @since S60 5.0
|
|
902 |
*/
|
|
903 |
TLanguage GetDeviceLanguage();
|
|
904 |
|
|
905 |
/**
|
|
906 |
* Retrieves a list of headers matching a iCacheMask search mask.
|
|
907 |
* @since S60 5.0
|
|
908 |
* @param aHeaderList is a list of headers found from the Plug-in Repository
|
|
909 |
* @return KErrNone if operation was successfull
|
|
910 |
*/
|
|
911 |
TInt DoUpdateHeaderListCache(
|
|
912 |
CArrayPtrSeg<ChspsODT>& aHeaderList );
|
|
913 |
|
|
914 |
|
|
915 |
/**
|
|
916 |
* Adds specific header to the cache.
|
|
917 |
* An alternative to UpdateHeaderListCacheL API for updating the header
|
|
918 |
* cache with a minimum performance hit.
|
|
919 |
* @since S60 5.0
|
|
920 |
* @param aRootUid is an UID of the application/interface
|
|
921 |
* @param aProviderUid is an UID of the provider
|
|
922 |
* @param aConfUid is an UID of the plug-in configuration
|
|
923 |
*/
|
|
924 |
void HeaderCacheAddL(
|
|
925 |
const TInt aRootUid,
|
|
926 |
const TInt aProviderUid,
|
|
927 |
const TInt aConfigurationUid );
|
|
928 |
|
|
929 |
/**
|
|
930 |
* Removes specific header from the cache.
|
|
931 |
* An alternative to UpdateHeaderListCacheL API for updating the header
|
|
932 |
* cache with a minimum performance hit.
|
|
933 |
* @since S60 5.0
|
|
934 |
* @param aRootUid is an UID of the application/interface
|
|
935 |
* @param aProviderUid is an UID of the provider
|
|
936 |
* @param aConfUid is an UID of the plug-in configuration
|
|
937 |
*/
|
|
938 |
TInt HeaderCacheRemove(
|
|
939 |
const TInt aRootUid,
|
|
940 |
const TInt aProviderUid,
|
|
941 |
const TInt aConfigurationUid );
|
|
942 |
|
|
943 |
/**
|
|
944 |
* Handles backup events in EhspsBRNormal backup state
|
|
945 |
* @since S60 5.0
|
|
946 |
* @param aEvent is a received backup event
|
|
947 |
*/
|
|
948 |
void HandleBRNormalStateL(
|
|
949 |
TInt aEvent );
|
|
950 |
|
|
951 |
/**
|
|
952 |
* Handles backup events in EhspsBRBackup backup state
|
|
953 |
* @since S60 5.0
|
|
954 |
* @param aEvent is a received backup event
|
|
955 |
*/
|
|
956 |
void HandleBRBackupStateL(
|
|
957 |
TInt aEvent );
|
|
958 |
|
|
959 |
/**
|
|
960 |
* Handles backup events in EhspsBRRestore backup state
|
|
961 |
* @since S60 5.0
|
|
962 |
* @param aEvent is a received backup event
|
|
963 |
*/
|
|
964 |
void HandleBRRestoreStateL(
|
|
965 |
TInt aEvent );
|
|
966 |
|
|
967 |
/**
|
|
968 |
* Creates active backup and restore handler
|
|
969 |
* @since S60 5.0
|
|
970 |
* @param aEvent is a received backup event
|
|
971 |
*/
|
|
972 |
void CreateBRHandlerL(
|
|
973 |
TInt aEvent );
|
|
974 |
|
|
975 |
/**
|
|
976 |
* Deletes active backup and restore handler
|
|
977 |
* @since S60 5.0
|
|
978 |
*/
|
|
979 |
void DeleteBRHandler();
|
|
980 |
|
|
981 |
/**
|
|
982 |
* Enables autoinstallations
|
|
983 |
* @since S60 5.0
|
|
984 |
*/
|
|
985 |
void EnableAutoInstallationL();
|
|
986 |
|
|
987 |
/**
|
|
988 |
* Disable autoinstallations
|
|
989 |
* @since S60 5.0
|
|
990 |
*/
|
|
991 |
void DisableAutoInstallation();
|
|
992 |
|
|
993 |
/**
|
|
994 |
* Installs restored configurations from backup/import folder
|
|
995 |
* @since S60 5.0
|
|
996 |
*/
|
|
997 |
void RestoreImportedConfigurationsL();
|
|
998 |
|
|
999 |
/**
|
|
1000 |
* Restores application configurations from backup/themes folder
|
|
1001 |
* @since S60 5.0
|
|
1002 |
*/
|
|
1003 |
void RestoreApplicationConfigurationsL();
|
|
1004 |
|
|
1005 |
/**
|
|
1006 |
* Validates restored application configuration
|
|
1007 |
* @since S60 5.0
|
|
1008 |
* @param aOdt is reference to application configuration to be validated
|
|
1009 |
*/
|
|
1010 |
void ValidateRestoredConfigurationL(
|
|
1011 |
ChspsODT& aOdt );
|
|
1012 |
|
|
1013 |
/**
|
|
1014 |
* Restore configuration
|
|
1015 |
* @since S60 5.0
|
|
1016 |
* @param aOdt is reference to application configuration to be restored
|
|
1017 |
*/
|
|
1018 |
void RestoreConfigurationL(
|
|
1019 |
ChspsODT& aOdt );
|
|
1020 |
|
|
1021 |
#if defined(WINSCW) || defined(__WINS__)
|
|
1022 |
/**
|
|
1023 |
* Executed at startup to activate root configurations which were designed
|
|
1024 |
* for the current resolution.
|
|
1025 |
* @since S60 5.0
|
|
1026 |
*/
|
|
1027 |
void ActivateRootConfigurationsL();
|
|
1028 |
|
|
1029 |
#endif // defined(WINSCW) || defined(__WINS__)
|
|
1030 |
|
|
1031 |
#ifdef _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
1032 |
CShutdown* iShutdown;
|
|
1033 |
#endif // _hsps_SERVER_SHUTDOWN_ENABLED_
|
|
1034 |
|
|
1035 |
/*
|
|
1036 |
* iRequestClientCount counts the number of RequestClientHandler instances
|
|
1037 |
* when this number is 0, no resource file access exist and the temporary resource
|
|
1038 |
* file instances can be removed safely
|
|
1039 |
*/
|
|
1040 |
TInt iRequestClientCount;
|
|
1041 |
|
|
1042 |
// Contents of the header cache
|
|
1043 |
CArrayPtrSeg<ChspsODT>* iHeaderListCache;
|
|
1044 |
TBool iHeaderListPending;
|
|
1045 |
|
|
1046 |
RFs iFsSession;
|
|
1047 |
CFileMan* iFileMan;
|
|
1048 |
ChspsDefinitionRepository* iDefinitionRepository;
|
|
1049 |
CRepository* iCentralRepository;
|
|
1050 |
ChspsSecurityEnforcer* iSecurityEnforcer;
|
|
1051 |
ChspsFileChangeListener* iFileChangeListener;
|
|
1052 |
|
|
1053 |
// Active device language
|
|
1054 |
TLanguage iDeviceLanguage;
|
|
1055 |
|
|
1056 |
ChspsODT* iCacheMask;
|
|
1057 |
|
|
1058 |
// Installation handler for ROM imports
|
|
1059 |
ChspsRomInstaller* iRomInstaller;
|
|
1060 |
|
|
1061 |
// Installation handler for SISX imports
|
|
1062 |
ChspsAutoInstaller* iAutoInstaller;
|
|
1063 |
|
|
1064 |
// Array of installable *.dat files under the imports folder
|
|
1065 |
RPointerArray<HBufC> iInstallableSisxThemes;
|
|
1066 |
|
|
1067 |
// Array of installed *.dat files under the imports folder
|
|
1068 |
RPointerArray<HBufC> iInstalledSisxThemes;
|
|
1069 |
|
|
1070 |
// Array of installable manifest files
|
|
1071 |
RPointerArray<HBufC> iManifestFiles;
|
|
1072 |
|
|
1073 |
// Index of a manifest in autoinstallation
|
|
1074 |
TInt iCurrentManifestFile;
|
|
1075 |
|
|
1076 |
// State of the SISX installer
|
|
1077 |
TInt iAutoInstallerState;
|
|
1078 |
|
|
1079 |
// Index of the theme to be removed
|
|
1080 |
TInt iThemeIndexToRemove;
|
|
1081 |
|
|
1082 |
// File locks for preventing uninstallation of active SISX configurations
|
|
1083 |
RFile iFileAS;
|
|
1084 |
RFile iFileAI;
|
|
1085 |
RFile iFileLT;
|
|
1086 |
|
|
1087 |
// Pointer to Central Repository Listener
|
|
1088 |
ChspsCenRepListener* iCenRepListener;
|
|
1089 |
|
|
1090 |
// Pointer to backup event listener
|
|
1091 |
CHSPSBRObserver* iBRObserver;
|
|
1092 |
|
|
1093 |
// Backup state
|
|
1094 |
ThspsBRStates iBRState;
|
|
1095 |
|
|
1096 |
// Active backup client
|
|
1097 |
conn::CActiveBackupClient* iActiveBackupClient;
|
|
1098 |
|
|
1099 |
// Backup handler
|
|
1100 |
CHSPSBRHandler* iBRHandler;
|
|
1101 |
|
|
1102 |
|
|
1103 |
|
|
1104 |
// Family handler, own
|
|
1105 |
ChspsFamily* iFamily;
|
|
1106 |
|
|
1107 |
|
|
1108 |
#ifdef HSPS_LOG_ACTIVE
|
|
1109 |
/**
|
|
1110 |
* Log bus.
|
|
1111 |
*/
|
|
1112 |
ChspsLogBus* iLogBus;
|
|
1113 |
#endif
|
|
1114 |
|
|
1115 |
RPointerArray<ChspsThemeServerSession> iSessions; // Sessions not owned!
|
|
1116 |
};
|
|
1117 |
|
|
1118 |
#endif //__hspsTHEMESERVER_H__
|