startup/stem_usbwatcher_hw.rss
changeset 86 df7231a66721
parent 85 ee5d5928b136
child 87 e9fb2728ea8b
equal deleted inserted replaced
85:ee5d5928b136 86:df7231a66721
     1 /*
       
     2 * Copyright (c) 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 "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 * Command list for USB Watcher component.
       
    16 *
       
    17 */
       
    18 
       
    19 #include <ssm/conditionresourcetypes.rh>
       
    20 #include <ssm/ssmcmd.rh>
       
    21 
       
    22 #include "ssmsubstateext.hrh"
       
    23 
       
    24 // Identify command list type
       
    25 UID2 KUidSsmCommandListResourceFile
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // r_entry_point
       
    29 // This must be the first resource
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
       
    33     {
       
    34     command_list_mapping = r_map;
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // r_map
       
    39 // Mapping of command list ids to resource ids.
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 RESOURCE SSM_COMMAND_LIST_MAPPING r_map
       
    43     {
       
    44     mappings =
       
    45         {
       
    46         SSM_COMMANDLISTID_TO_RESOURCEID
       
    47             {
       
    48             command_list_id = ESsmStateCharging;
       
    49             resource_id = r_cmds_charging;
       
    50             },
       
    51         SSM_COMMANDLISTID_TO_RESOURCEID
       
    52             {
       
    53             command_list_id = ESsmStateNonCritical;
       
    54             resource_id = r_cmds_noncritical;
       
    55             }
       
    56         };
       
    57     }
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // r_cmds_noncritical
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 RESOURCE SSM_COMMAND_LIST r_cmds_noncritical
       
    64     {
       
    65     commands =
       
    66         {
       
    67         r_cmd_usbwatcher
       
    68         };
       
    69     }
       
    70 
       
    71 RESOURCE SSM_COMMAND_LIST r_cmds_charging
       
    72     {
       
    73     commands =
       
    74         {
       
    75 #ifdef RD_USB_CHARGING
       
    76         r_cmd_usbwatcher
       
    77 #endif //RD_USB_CHARGING
       
    78         };
       
    79     }
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // r_cmd_usbwatcher
       
    83 // ---------------------------------------------------------------------------
       
    84 //
       
    85 RESOURCE SSM_START_PROCESS_INFO r_cmd_usbwatcher
       
    86     {
       
    87     priority = 0xFFA7; // Same priority can be used in both states
       
    88     name = "z:\\sys\\bin\\usbwatcher.exe";
       
    89     execution_behaviour = ESsmFireAndForget;
       
    90     conditional_information = r_cond_feat_usb;
       
    91     monitor_info = r_mon_3_restarts_ignore;
       
    92     }
       
    93 
       
    94 // ---------------------------------------------------------------------------
       
    95 // r_cond_feat_usb
       
    96 // ---------------------------------------------------------------------------
       
    97 //
       
    98 RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_usb
       
    99     {
       
   100     feature_id = KFeatureIdUsb;
       
   101     }
       
   102 
       
   103 // monitoring.rss contains resource definitions, so it may not be included
       
   104 // before entry point.
       
   105 #include "stem_monitoring.rss"