/*
* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Command list for the UI-Services startup state (UI shell version) for minimal startup.
*
*/
#include <ssm/conditionresourcetypes.rh>
#include <ssm/ssmcmd.rh>
#include "ssmsubstateext.hrh"
#include "ssmdlldatadefs.rh"
// Identify command list type
UID2 KUidSsmCommandListResourceFile
// ---------------------------------------------------------------------------
// r_entry_point
// This must be the first resource
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
{
command_list_mapping = r_map;
}
// ---------------------------------------------------------------------------
// r_map
// Mapping of command list ids to resource ids.
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST_MAPPING r_map
{
mappings =
{
SSM_COMMANDLISTID_TO_RESOURCEID
{
command_list_id = ESsmStateStartingUiServices;
resource_id = r_cmds;
}
};
}
// ===========================================================================
// Command lists in alphabetical order
// ===========================================================================
//
// ---------------------------------------------------------------------------
// r_cmds
// ---------------------------------------------------------------------------
//
RESOURCE SSM_COMMAND_LIST r_cmds
{
commands =
{
r_cmd_sastate, // This needs to be the first command in state, prio 0xFFF2
r_cmd_publishstate, // prio 0xFFF1
r_cmd_psstate, // prio 0xFFF0
// prio 0xFFE7
r_cmd_startupmode,
r_cmd_loadpowersup,
// prio 0xFFD7
r_cmd_rfsfirstboot,
r_cmd_rfsdeep,
r_cmd_rfsnormal,
// prio 0xFFC7
r_cmd_initclkeys,
r_cmd_initramdrive,
// prio 0xFFA7
r_cmd_splash,
// prio 0xFF97
r_cmd_rtc,
// prio 0xFF96 - rtc (tzsrv, cntsrv, mediator & hwrmsrv have been moved to extended startup list but use the same multiplewait command)
r_cmd_multiwaitforever1,
// prio 0xFF87
r_cmd_accsrv,
r_cmd_selectlanguage, // Select UI language to use
// prio 0xFF86 - accsrv, seleclanguage (dbrecovery has been moved to extended startup list but uses the same multiplewait command)
r_cmd_multiwaitforever2,
// prio 0xFF85
r_cmd_loadlocalesup, // Observes changes in locale data
// prio 0xFF79
r_cmd_aknstart, // UI Framework
// prio 0xFF77
r_cmd_apparc_init, // Init application framework
// prio 0xFF75
r_cmd_rfspostui // Restore factory settings - after UI framework is up
};
}
// ===========================================================================
// Command items in alphabetical order
// ===========================================================================
//
// ---------------------------------------------------------------------------
// r_cmd_accsrv
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_PROCESS_INFO r_cmd_accsrv
{
priority = 0xFF87;
name = "Z:\\sys\\bin\\accserver.exe";
severity = ECmdCriticalSeverity;
execution_behaviour = ESsmWaitForSignal;
monitor_info = r_mon_3_restarts_reset;
}
// ---------------------------------------------------------------------------
// r_cmd_aknstart
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_aknstart
{
priority = 0xFF79;
severity = ECmdCriticalSeverity;
dllname = "akncustcmds.dll";
ordinal = 1; // AknCapServerStart
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_apparc_init
// ---------------------------------------------------------------------------
//
RESOURCE SSM_WAIT_FOR_APPARC_INIT r_cmd_apparc_init
{
priority = 0xFF77;
severity = ECmdCriticalSeverity;
}
// ---------------------------------------------------------------------------
// r_cmd_initclkeys
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_initclkeys
{
priority = 0xFFC7;
severity = ECmdCriticalSeverity;
execution_behaviour = ESsmDeferredWaitForSignal;
dllname = "ssmsystemcmds.dll";
ordinal = 3; // InitCriticalLevels
unload_on_finish = ENeverUnload;
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_initramdrive
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_initramdrive
{
priority = 0xFFC7;
severity = ECmdCriticalSeverity;
execution_behaviour = ESsmDeferredWaitForSignal;
dllname = "customcmds.dll";
ordinal = 14; // InitRamDrive
unload_on_finish = ENeverUnload;
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_loadlocalesup
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_SSM_UTILITY_PLUGIN r_cmd_loadlocalesup
{
priority = 0xFF85;
filename = "ssmlocaleobserversup.dll";
ordinal = 1;
}
// ---------------------------------------------------------------------------
// r_cmd_loadpowersup
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_SSM_UTILITY_PLUGIN r_cmd_loadpowersup
{
priority = 0xFFE7;
severity = ECmdCriticalSeverity;
filename = "ssmpowersup.dll";
ordinal = 1;
}
// ---------------------------------------------------------------------------
// r_cmd_multiwaitforever1
// ---------------------------------------------------------------------------
//
RESOURCE SSM_MULTIPLE_WAIT r_cmd_multiwaitforever1
{
priority = 0xFF96;
}
// ---------------------------------------------------------------------------
// r_cmd_multiwaitforever2
// ---------------------------------------------------------------------------
//
RESOURCE SSM_MULTIPLE_WAIT r_cmd_multiwaitforever2
{
priority = 0xFF86;
}
// ---------------------------------------------------------------------------
// r_cmd_psstate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_cmd_psstate
{
priority = 0xFFF0;
severity = ECmdCriticalSeverity;
category = 0x101F8766; // KPSUidStartup
key = 0x00000041; // KPSGlobalSystemState
value = 100; // ESwStateStartingUiServices
}
// ---------------------------------------------------------------------------
// r_cmd_publishstate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_PUBLISH_SYSTEM_STATE r_cmd_publishstate
{
priority = 0xFFF1;
severity = ECmdCriticalSeverity;
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_rfsdeep
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_rfsdeep
{
priority = 0xFFD7;
dllname = "rfscustcmd.dll";
ordinal = 2; // RfsCustCmdDeepNewL
retries = 2;
conditional_information = r_cond_cenrep_rfs_deep;
}
// ---------------------------------------------------------------------------
// r_cmd_rfsfirstboot
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_rfsfirstboot
{
priority = 0xFFD7;
dllname = "rfscustcmd.dll";
ordinal = 1; // RfsCustCmdFirstBootNewL
retries = 2;
conditional_information = r_cond_ps_firstboot;
}
// ---------------------------------------------------------------------------
// r_cmd_rfsnormal
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_rfsnormal
{
priority = 0xFFD7;
dllname = "rfscustcmd.dll";
ordinal = 3; // RfsCustCmdPreUiNewL
retries = 2;
conditional_information = r_cond_cenrep_rfs_normal;
}
// ---------------------------------------------------------------------------
// r_cmd_rfspostui
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_rfspostui
{
priority = 0xFF77;
dllname = "rfscustcmd.dll";
ordinal = 4; // RfsCustCmdPostUiNewL
retries = 2;
conditional_information = r_cond_cenrep_rfs_normal;
}
// ---------------------------------------------------------------------------
// r_cmd_rtc
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_rtc
{
priority = 0xFF97;
severity = ECmdCriticalSeverity;
dllname = "customcmds.dll";
ordinal = 12;
execution_behaviour = ESsmDeferredWaitForSignal;
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_sastate
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_sastate
{
priority = 0xFFF2;
severity = ECmdCriticalSeverity;
dllname = "customcmds.dll";
ordinal = 8;
unload_on_finish = ENeverUnload;
retries = 2;
dll_data = r_dlldata_sastate;
}
// ---------------------------------------------------------------------------
// r_cmd_selectlanguage
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_selectlanguage
{
priority = 0xFF87;
severity = ECmdCriticalSeverity;
dllname = "ssmlangselcmd.dll";
ordinal = 1; // SelectLanguage
retries = 2;
}
// ---------------------------------------------------------------------------
// r_cmd_splash
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_PROCESS_INFO r_cmd_splash
{
priority = 0xFFA7;
name = "Z:\\sys\\bin\\splashscreen.exe";
}
// ---------------------------------------------------------------------------
// r_cmd_startupmode
// ---------------------------------------------------------------------------
//
RESOURCE SSM_START_CUSTOM_COMMAND r_cmd_startupmode
{
priority = 0xFFE7;
severity = ECmdCriticalSeverity;
dllname = "customcmds.dll";
ordinal = 9; // GetStartupMode
unload_on_finish = ENeverUnload;
retries = 2;
}
// ===========================================================================
// DLL data items in alphabetical order
// ===========================================================================
//
// ---------------------------------------------------------------------------
// r_dlldata_sastate
// ---------------------------------------------------------------------------
//
RESOURCE CMD_PARAM_STATE_CHANGE r_dlldata_sastate
{
mainstate = 0; // ESsmStartup
substate = ESsmStateStartingUiServices;
}
// ===========================================================================
// Conditional blocks in alphabetical order
// ===========================================================================
//
// ---------------------------------------------------------------------------
// r_cond_ps_firstboot
// ---------------------------------------------------------------------------
//
RESOURCE SSM_CND_PUB_SUB_VALUE r_cond_ps_firstboot
{
category = 0x101F8766; // KPSUidStartup
key = 0x00000013; // KPSStartupFirstBoot
value = 101; // EPSStartupFirstBoot
}
// ---------------------------------------------------------------------------
// r_cond_cenrep_rfs_deep
// ---------------------------------------------------------------------------
//
RESOURCE SSM_CND_CENT_REP_VALUE r_cond_cenrep_rfs_deep
{
repository_id = 0x101F8762; // KCRUidStartup
key = 0x00000002; // KStartupReason
value = 103; // EDeepRFSReset
}
// ---------------------------------------------------------------------------
// r_cond_cenrep_rfs_normal
// ---------------------------------------------------------------------------
//
RESOURCE SSM_CND_CENT_REP_VALUE r_cond_cenrep_rfs_normal
{
repository_id = 0x101F8762; // KCRUidStartup
key = 0x00000002; // KStartupReason
value = 102; // ENormalRFSReset
}
// monitoring.rss contains resource definitions, so it may not be included
// before entry point.
#include "monitoring.rss"