ChspsThemeServer Class Reference
class ChspsThemeServer : public CPolicyServer |
Public Member Functions |
---|
TInt
| ActivateThemeL(const ChspsODT &, ChspsODT &) |
void | AddSession(ChspsThemeServerSession *) |
CRepository & | CentralRepository() |
void | CheckConfigurationL(const TInt) |
TInt
| CheckInstalledPluginUsageL(const TInt) |
void | Cleanup() |
void | CleanupTemporaryFilesL(TInt) |
void | CreateBackupDataL() |
void | DecreaseRequestClientCount() |
ChspsDefinitionRepository & | DefinitionRepository() |
TLanguage
| DeviceLanguage() |
void | DropSession(ChspsThemeServerSession *) |
ChspsFamily * | Family() |
TInt
| GetActivateAppConfigurationL(const TInt, ChspsODT &) |
TUint32
| GetActiveFamilyL(const TInt) |
void | GetConfigurationHeader(ChspsODT &, ChspsODT *&, TInt &) |
TInt
| GetConfigurationL(const TInt, const TInt, ChspsODT &) |
HBufC * | GetManifestFromImportLC(const TDesC &, const TDesC &) |
void | HandleAutoInstallerEvent(ThspsServiceCompletedMessage) |
void | HandleBREventL(TInt) |
void | HandleCenRepChangeL(const TUint32) |
TBool
| HandleDefinitionRespositoryEvent(ThspsRepositoryInfo) |
TBool
| HandleFamilyChangeL(const ThspsFamily) |
void | HandleFileSystemChange() |
void | HandleRepositoryChange() |
CArrayPtrSeg< ChspsODT > & | HeaderListCache() |
void | IncreaseRequestClientCount() |
void | InstallUDAWidgetsL(const TDesC &) |
void | InstallWidgetsL(const TBool) |
TBool
| LocalizeL(ChspsDefinitionEngineInterface &, ChspsODT &) |
CServer2 * | NewLC() |
TBool
| PluginInHeaderCache(const TUid) |
void | ReinstallConfL(TInt, TInt) |
void | ResetResourcesL(ChspsODT &) |
ChspsSecurityEnforcer & | SecurityEnforcer() |
void | SetResourceFileCopyRequired(const TInt) |
TInt
| UpdateHeaderListCache(ThspsCacheOperations, const TInt, const TInt, const TInt) |
void | UpdateHeaderListCacheL() |
Private Member Functions |
---|
| ChspsThemeServer() |
| ~ChspsThemeServer() |
void | CheckActiveThemesL() |
TBool
| ComparePaths(const ChspsODT &, const ChspsODT &) |
void | ConstructL() |
void | CreateBRHandlerL(TInt) |
CPolicyServer::TCustomResult
| CustomSecurityCheckL(const RMessage2 &, TInt &, TSecurityInfo &) |
void | DeleteBRHandler() |
void | DisableAutoInstallation() |
TInt
| DoUpdateHeaderListCache(CArrayPtrSeg< ChspsODT > &) |
void | EnableAutoInstallationL() |
TLanguage
| GetDeviceLanguage() |
void | GetHeaderListL(CArrayPtrSeg< ChspsODT > &, const ChspsODT &) |
void | HandleBRBackupStateL(TInt) |
void | HandleBRNormalStateL(TInt) |
void | HandleBRRestoreStateL(TInt) |
void | HandleConfigurationImportsL(const TDesC &) |
void | HandleFileSystemChangeL() |
void | HandleLanguageChangeL() |
void | HandleRomInstallationsL() |
void | HandleThemeUpgradeL() |
void | HeaderCacheAddL(const TInt, const TInt, const TInt) |
TInt
| HeaderCacheRemove(const TInt, const TInt, const TInt) |
void | InstallImportsL(const CDir &) |
TBool
| LocalizeApplicationConfigurationL(ChspsDefinitionEngineInterface &, ChspsODT &, const TLanguage) |
void | LocalizeConfigurationsL() |
TBool
| LocalizePluginConfigurationL(ChspsDefinitionEngineInterface &, ChspsODT &, const TLanguage, TInt) |
void | LockSisxImportL(const TUint32, const TInt) |
CSession2 * | NewSessionL(const TVersion &, const RMessage2 &) |
void | RestoreApplicationConfigurationsL() |
void | RestoreConfigurationL(ChspsODT &) |
void | RestoreImportedConfigurationsL() |
TBool
| RunAutoInstaller(TAutoInstallerStates) |
void | StopAutoInstaller() |
void | UninstallImport(const CDir *) |
void | UnlockSisxImportL(const TUint32) |
void | ValidateRestoredConfigurationL(ChspsODT &) |
Inherited Functions |
---|
| CActive::CActive(TInt) |
| CActive::Cancel() |
| CActive::Deque() |
| CActive::IsActive()const |
| CActive::IsAdded()const |
| CActive::Priority()const |
| CActive::SetActive() |
| CActive::SetPriority(TInt) |
| CActive::~CActive() |
| CBase::CBase() |
| CBase::Delete(CBase *) |
| CBase::operator new(TUint) |
| CBase::operator new(TUint,TAny *) |
| CBase::operator new(TUint,TLeave) |
| CBase::operator new(TUint,TLeave,TUint) |
| CBase::operator new(TUint,TUint) |
| CBase::~CBase() |
| CPolicyServer::CPolicyServer(TInt,const TPolicy &,TServerType) |
| CPolicyServer::CheckFailedL(const RMessage2 &,TInt,const TSecurityInfo &) |
| CPolicyServer::CustomFailureActionL(const RMessage2 &,TInt,const TSecurityInfo &) |
| CPolicyServer::Extension_(TUint,TAny *&,TAny *) |
| CPolicyServer::ProcessError(const RMessage2 &,TInt) |
| CPolicyServer::ProcessL(const RMessage2 &) |
| CServer2::CServer2(TInt,TServerType) |
| CServer2::DoCancel() |
| CServer2::DoConnect(const RMessage2 &) |
| CServer2::Message()const |
| CServer2::ReStart() |
| CServer2::Server()const |
| CServer2::SetMaster(const CServer2 *) |
| CServer2::SetPinClientDescriptors(TBool) |
| CServer2::Start(const TDesC &) |
| CServer2::StartL(const TDesC &) |
| CServer2::~CServer2() |
Constructor & Destructor Documentation
ChspsThemeServer()
ChspsThemeServer | ( | ) | [private, inline] |
~ChspsThemeServer()
~ChspsThemeServer | ( | ) | [private] |
~ChspsThemeServer
- Since
- S60 3.1
Member Functions Documentation
ActivateThemeL(const ChspsODT &, ChspsODT &)
Activates provided application configuration.
Parameters
const ChspsODT & aSetMask | Identifies an application configuration which is to be activated. |
ChspsODT & aOdt | Activated application configuration |
AddSession(ChspsThemeServerSession *)
CentralRepository()
CentralRepository
- Since
- S60 3.1
CheckActiveThemesL()
void | CheckActiveThemesL | ( | ) | [private] |
CheckActiveThemesL Check active themes from the central repository and if needed open path info file for them
- Since
- S60 3.1
CheckConfigurationL(const TInt)
void | CheckConfigurationL | ( | const TInt | aAppUid | ) | |
Check the installed configurations
- Since
- S60 5.0
Parameters
const TInt aAppUid | Application UID which configurations are checked |
CheckInstalledPluginUsageL(const TInt)
TInt
| CheckInstalledPluginUsageL | ( | const TInt | aPluginUid | ) | |
Check the installed plugin is used in some application configuration
- Since
- S60 5.0
Parameters
const TInt aPluginUid | Plugin UID of installed configuration |
Cleanup()
Cleanup server resources. This method is called when server is been shut down and active scheduler is still installed.
CleanupTemporaryFilesL(TInt)
void | CleanupTemporaryFilesL | ( | TInt | secureId = 0 | ) | |
CleanupTemporaryFilesL Cleans temporary files
- Since
- S60 3.1
ComparePaths(const ChspsODT &, const ChspsODT &)
ComparePaths
- Since
- S60 3.1
ConstructL()
void | ConstructL | ( | ) | [private] |
CreateBRHandlerL(TInt)
void | CreateBRHandlerL | ( | TInt | aEvent | ) | [private] |
Creates active backup and restore handler
- Since
- S60 5.0
Parameters
TInt aEvent | is a received backup event |
CreateBackupDataL()
Prepares backup data for passive backup
- Since
- S60 5.0
CustomSecurityCheckL(const RMessage2 &, TInt &, TSecurityInfo &)
CustomSecurityCheckL
- Since
- S60 3.1
DecreaseRequestClientCount()
void | DecreaseRequestClientCount | ( | ) | |
DecreaseRequestClientCount Decreases count of client requests
- Since
- S60 5.0
DefinitionRepository()
DefinitionRepository
- Since
- S60 3.1
DeleteBRHandler()
void | DeleteBRHandler | ( | ) | [private] |
Deletes active backup and restore handler
- Since
- S60 5.0
DeviceLanguage()
DeviceLanguage Returns device language
- Since
- S60 3.1
DisableAutoInstallation()
void | DisableAutoInstallation | ( | ) | [private] |
Disable autoinstallations
- Since
- S60 5.0
DoUpdateHeaderListCache(CArrayPtrSeg< ChspsODT > &)
Retrieves a list of headers matching a iCacheMask search mask.
- Since
- S60 5.0
DropSession(ChspsThemeServerSession *)
EnableAutoInstallationL()
void | EnableAutoInstallationL | ( | ) | [private] |
Enables autoinstallations
- Since
- S60 5.0
GetActivateAppConfigurationL(const TInt, ChspsODT &)
Retrieves active application configuration from Central Repository.
- Since
- S60 5.0
Parameters
const TInt aAppUid | Identifies the application |
ChspsODT & aOdt | Contains currently active application configuration |
GetActiveFamilyL(const TInt)
Gets family information from an active application configuration.
- Since
- S60 5.0
Parameters
const TInt aAppUid | Identifies the application |
GetConfigurationHeader(ChspsODT &, ChspsODT *&, TInt &)
GetConfigurationHeaderL Retrieves a configuration header matching the search criteria
- Since
- S60 5.0
Parameters
ChspsODT & aSearchMask | ODT header defining search criteria |
ChspsODT *& aConfHeader | Found ODT header |
TInt & aPos | Start/Found position |
GetConfigurationL(const TInt, const TInt, ChspsODT &)
TInt
| GetConfigurationL | ( | const TInt | aInterfaceUid, |
| const TInt | aConfigurationUid, |
| ChspsODT & | aRetrievedODT |
| ) | |
GetConfigurationL Retrieves a configuration with the provided UIDs.
- Since
- S60 5.0
Parameters
const TInt aInterfaceUid | An uid of the interface or application (e.g. AI3, Java etc), optional. |
const TInt aConfigurationUid | An uid of the plugin configuration |
ChspsODT & aRetrievedODT | Retrieved configuration |
GetDeviceLanguage()
GetDeviceLanguage
- Since
- S60 5.0
GetHeaderListL(CArrayPtrSeg< ChspsODT > &, const ChspsODT &)
GetHeaderListL Gets current headerlist from filesystem
- Since
- S60 3.1
Parameters
CArrayPtrSeg< ChspsODT > & aHeaderList | Destination for read headerlists from filesystem |
const ChspsODT & aSearchMask | SearchMask to use when reading headerlists from filesystem |
GetManifestFromImportLC(const TDesC &, const TDesC &)
HBufC * | GetManifestFromImportLC | ( | const TDesC & | aImportFile, |
| const TDesC & | aPath |
| ) | |
Parses name of a manifest from the provided import's name.
- Since
- S60 5.0
Parameters
const TDesC & aImportFile | is a name of the import to be parsed |
const TDesC & aPath | is a path from which the import should be found |
HandleAutoInstallerEvent(ThspsServiceCompletedMessage)
HandleAutoInstallerEvent Handles autoinstaller events
- Since
- S60 3.1
HandleBRBackupStateL(TInt)
void | HandleBRBackupStateL | ( | TInt | aEvent | ) | [private] |
Handles backup events in EhspsBRBackup backup state
- Since
- S60 5.0
Parameters
TInt aEvent | is a received backup event |
HandleBREventL(TInt)
void | HandleBREventL | ( | TInt | aEvent | ) | |
Handles received backup event
- Since
- S60 5.0
HandleBRNormalStateL(TInt)
void | HandleBRNormalStateL | ( | TInt | aEvent | ) | [private] |
Handles backup events in EhspsBRNormal backup state
- Since
- S60 5.0
Parameters
TInt aEvent | is a received backup event |
HandleBRRestoreStateL(TInt)
void | HandleBRRestoreStateL | ( | TInt | aEvent | ) | [private] |
Handles backup events in EhspsBRRestore backup state
- Since
- S60 5.0
Parameters
TInt aEvent | is a received backup event |
HandleCenRepChangeL(const TUint32)
void | HandleCenRepChangeL | ( | const TUint32 | aId | ) | |
HandleConfigurationImportsL(const TDesC &)
void | HandleConfigurationImportsL | ( | const TDesC & | aFilePrefix | ) | [private] |
Handles installation/uninstallation of imported configurations. A file filter controls which type of configurations are to be handled.
- Since
- S60 5.0
Parameters
const TDesC & aFilePrefix | is a prefix for finding either plugin or application configuration imports. |
HandleDefinitionRespositoryEvent(ThspsRepositoryInfo)
HandleDefinitionRespositoryEvent Handles change events received from definition repository
- Since
- S60 3.1
HandleFamilyChangeL(const ThspsFamily)
HandleFileSystemChange()
void | HandleFileSystemChange | ( | ) | |
HandleFileSystemChange Handles change of filesystem
- Since
- S60 3.1
HandleFileSystemChangeL()
void | HandleFileSystemChangeL | ( | ) | [private] |
HandleFileSystemChangeL Does the actual filesystem change handling
- Since
- S60 3.2
HandleLanguageChangeL()
void | HandleLanguageChangeL | ( | ) | [private] |
Checks whether the device language has been changed and updates configurations accordingly
HandleRepositoryChange()
void | HandleRepositoryChange | ( | ) | [inline] |
HandleRepositoryChange Handles change of repository
- Since
- S60 3.1
HandleRomInstallationsL()
void | HandleRomInstallationsL | ( | ) | [private] |
Handles installation of ROM based manifest files when a Restore Factory Settings (RFS) operation has been executed (controlled via the Central Repository). This function is executed at bootup when the server starts.
- Since
- S60 5.0
HandleThemeUpgradeL()
void | HandleThemeUpgradeL | ( | ) | [private] |
HandleThemeUpgrade; Handles the SIS theme upgrade
HeaderCacheAddL(const TInt, const TInt, const TInt)
void | HeaderCacheAddL | ( | const TInt | aRootUid, |
| const TInt | aProviderUid, |
| const TInt | aConfigurationUid |
| ) | [private] |
Adds specific header to the cache. An alternative to UpdateHeaderListCacheL API for updating the header cache with a minimum performance hit.
- Since
- S60 5.0
Parameters
const TInt aRootUid | is an UID of the application/interface |
const TInt aProviderUid | is an UID of the provider |
const TInt aConfigurationUid | |
HeaderCacheRemove(const TInt, const TInt, const TInt)
TInt
| HeaderCacheRemove | ( | const TInt | aRootUid, |
| const TInt | aProviderUid, |
| const TInt | aConfigurationUid |
| ) | [private] |
Removes specific header from the cache. An alternative to UpdateHeaderListCacheL API for updating the header cache with a minimum performance hit.
- Since
- S60 5.0
Parameters
const TInt aRootUid | is an UID of the application/interface |
const TInt aProviderUid | is an UID of the provider |
const TInt aConfigurationUid | |
HeaderListCache()
HeaderListCache Returns headerlist cache
- Since
- S60 3.1
IncreaseRequestClientCount()
void | IncreaseRequestClientCount | ( | ) | |
IncreaseRequestClientCount Increases count of client requests
- Since
- S60 5.0
InstallImportsL(const CDir &)
void | InstallImportsL | ( | const CDir & | aFilelist | ) | [private] |
Installs new configuration based on the information in imports name.
- Since
- S60 5.0
Parameters
const CDir & aFilelist | is a list of dat files to be parsed under the imports folder |
InstallUDAWidgetsL(const TDesC &)
void | InstallUDAWidgetsL | ( | const TDesC & | aImportDirectory | ) | |
Install all widgets from uda
- Since
- S60 5.2
Parameters
const TDesC & aImportDirectory | import directory path |
InstallWidgetsL(const TBool)
void | InstallWidgetsL | ( | const TBool | aInstallUdaEmmc = ETrue | ) | |
Installs widgets located at \ directories.
- Since
- S60 5.0
Parameters
const TBool aInstallUdaEmmc = ETrue | True if widgets should be installed from C and E drives |
LocalizeApplicationConfigurationL(ChspsDefinitionEngineInterface &, ChspsODT &, const TLanguage)
Localizes an application configuration with a device language. This function is used by the LocalizeL service.
- Since
- S60 5.0
LocalizeConfigurationsL()
void | LocalizeConfigurationsL | ( | ) | [private] |
Localizes ODT files according to the device language.
- Since
- S60 5.0
LocalizeL(ChspsDefinitionEngineInterface &, ChspsODT &)
Localizes an ODT. Testing: change first two digits from \ Z\resource\BootData\Languages.txt file and reboot the emulator.
- Since
- S60 5.0
LocalizePluginConfigurationL(ChspsDefinitionEngineInterface &, ChspsODT &, const TLanguage, TInt)
Localizes a plugin configuration with a device language. This function is used by the LocalizeL service.
- Since
- S60 5.0
LockSisxImportL(const TUint32, const TInt)
void | LockSisxImportL | ( | const TUint32 | aAppUid, |
| const TInt | aConfUid |
| ) | [private] |
Parameters
const TUint32 aAppUid | is an UID of the application |
const TInt aConfUid | is an UID of the active configuration |
NewSessionL(const TVersion &, const RMessage2 &)
NewSessionL
- Since
- S60 3.1
PluginInHeaderCache(const TUid)
TBool
| PluginInHeaderCache | ( | const TUid | aPluginUid | ) | |
Check if given plugin is in header cache.
Parameters
const TUid aPluginUid | Plugin UID to search from header cache. |
ReinstallConfL(TInt, TInt)
void | ReinstallConfL | ( | TInt | aAppUid, |
| TInt | aConfUid |
| ) | |
Reinstalls defined configuration
- Since
- S60 5.0
Parameters
TInt aAppUid | Application UID which configuration is reinstalled |
TInt aConfUid | Configuration UID of reinstalled configuration |
ResetResourcesL(ChspsODT &)
Erases resource files from plug-in specific subdirectories under the client's private path. Plug-ins that belong to an active application configuration will be processed.
- Since
- S60 5.2
Parameters
ChspsODT & aAppODT | is an application configuration to be checked |
RestoreApplicationConfigurationsL()
void | RestoreApplicationConfigurationsL | ( | ) | [private] |
Restores application configurations from backup/themes folder
- Since
- S60 5.0
RestoreConfigurationL(ChspsODT &)
void | RestoreConfigurationL | ( | ChspsODT & | aOdt | ) | [private] |
Restore configuration
- Since
- S60 5.0
Parameters
ChspsODT & aOdt | is reference to application configuration to be restored |
RestoreImportedConfigurationsL()
void | RestoreImportedConfigurationsL | ( | ) | [private] |
Installs restored configurations from backup/import folder
- Since
- S60 5.0
RunAutoInstaller(TAutoInstallerStates)
RunAutoInstaller Runs auto installer
- Since
- S60 5.0
SecurityEnforcer()
SecurityEnforcer
- Since
- S60 3.1
SetResourceFileCopyRequired(const TInt)
void | SetResourceFileCopyRequired | ( | const TInt | aAppUid | ) | |
Foreces checking of related file resouces within each server session. Should be called when the application configuration has been modified.
- Since
- S60 5.2
Parameters
const TInt aAppUid | UID of the application configuration |
StopAutoInstaller()
void | StopAutoInstaller | ( | ) | [private] |
StopAutoInstaller Stops auto installer and does house keeping after installation
- Since
- S60 3.2
UninstallImport(const CDir *)
void | UninstallImport | ( | const CDir * | aFilelist | ) | [private] |
Initiates uninstallation of a manifest file located under the imports folder.
- Since
- S60 5.0
Parameters
const CDir * aFilelist | is a list of dat files under the imports folder or NULL |
UnlockSisxImportL(const TUint32)
void | UnlockSisxImportL | ( | const TUint32 | aAppUid | ) | [private] |
Parameters
const TUint32 aAppUid | is an UID of the application |
UpdateHeaderListCache(ThspsCacheOperations, const TInt, const TInt, const TInt)
Updates the header list cache based on the provided ODT information. Should be preferred over the previous API.
- Since
- S60 5.0
Parameters
ThspsCacheOperations aOperation | is an enumeration of the cache operations |
const TInt aRootUid | is an UID of the application/interface |
const TInt aProviderUid | is an UID of the provider |
const TInt aConfigurationUid | |
UpdateHeaderListCacheL()
void | UpdateHeaderListCacheL | ( | ) | |
UpdateHeaderListCacheL Re-scans the file system under the Plug-in Repository. Execution is slow and should be used only when absolutely required. Updates headerlist cache
- Since
- S60 5.0
ValidateRestoredConfigurationL(ChspsODT &)
void | ValidateRestoredConfigurationL | ( | ChspsODT & | aOdt | ) | [private] |
Validates restored application configuration
- Since
- S60 5.0
Parameters
ChspsODT & aOdt | is reference to application configuration to be validated |
Member Data Documentation
conn::CActiveBackupClient * iActiveBackupClient
ChspsAutoInstaller * iAutoInstaller
TInt
iAutoInstallerState
TInt
| iAutoInstallerState | [private] |
CHSPSBRHandler * iBRHandler
CHSPSBRObserver * iBRObserver
ChspsCenRepListener * iCenRepListener
CRepository * iCentralRepository
TInt
iCurrentManifestFile
TInt
| iCurrentManifestFile | [private] |
ChspsDefinitionRepository * iDefinitionRepository
TLanguage
iDeviceLanguage
ChspsFileChangeListener * iFileChangeListener
CArrayPtrSeg< ChspsODT > * iHeaderListCache
TBool
iHeaderListPending
TBool
| iHeaderListPending | [private] |
RPointerArray< HBufC > iInstallableSisxThemes
RPointerArray< HBufC > iInstalledSisxThemes
RPointerArray< HBufC > iManifestFiles
TInt
iRequestClientCount
TInt
| iRequestClientCount | [private] |
ChspsRomInstaller * iRomInstaller
ChspsSecurityEnforcer * iSecurityEnforcer
RPointerArray< ChspsThemeServerSession > iSessions
TInt
iThemeIndexToRemove
TInt
| iThemeIndexToRemove | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.