startup/stem_usbwatcher_hw.rss
author William Roberts <williamr@symbian.org>
Sun, 10 Oct 2010 16:22:15 +0100
changeset 13 4f959124999b
permissions -rw-r--r--
Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b This has a USERINCLUDE into sf\os\devicesrv to get some unpublished header files.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     1
/*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     3
* All rights reserved.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     8
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
     9
* Initial Contributors:
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    11
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    12
* Contributors:
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    13
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    14
* Description:
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    15
* Command list for USB Watcher component.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    16
*
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    17
*/
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    18
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    19
#include <ssm/conditionresourcetypes.rh>
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    20
#include <ssm/ssmcmd.rh>
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    21
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    22
#include "ssmsubstateext.hrh"
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    23
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    24
// Identify command list type
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    25
UID2 KUidSsmCommandListResourceFile
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    26
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    27
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    28
// r_entry_point
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    29
// This must be the first resource
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    30
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    31
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    32
RESOURCE SSM_COMMAND_LIST_ROOT r_entry_point
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    33
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    34
    command_list_mapping = r_map;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    35
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    36
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    37
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    38
// r_map
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    39
// Mapping of command list ids to resource ids.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    40
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    41
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    42
RESOURCE SSM_COMMAND_LIST_MAPPING r_map
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    43
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    44
    mappings =
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    45
        {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    46
        SSM_COMMANDLISTID_TO_RESOURCEID
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    47
            {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    48
            command_list_id = ESsmStateCharging;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    49
            resource_id = r_cmds_charging;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    50
            },
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    51
        SSM_COMMANDLISTID_TO_RESOURCEID
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    52
            {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    53
            command_list_id = ESsmStateNonCritical;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    54
            resource_id = r_cmds_noncritical;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    55
            }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    56
        };
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    57
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    58
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    59
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    60
// r_cmds_noncritical
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    61
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    62
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    63
RESOURCE SSM_COMMAND_LIST r_cmds_noncritical
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    64
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    65
    commands =
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    66
        {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    67
        r_cmd_usbwatcher
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    68
        };
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    69
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    70
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    71
RESOURCE SSM_COMMAND_LIST r_cmds_charging
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    72
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    73
    commands =
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    74
        {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    75
#ifdef RD_USB_CHARGING
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    76
        r_cmd_usbwatcher
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    77
#endif //RD_USB_CHARGING
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    78
        };
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    79
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    80
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    81
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    82
// r_cmd_usbwatcher
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    83
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    84
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    85
RESOURCE SSM_START_PROCESS_INFO r_cmd_usbwatcher
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    86
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    87
    priority = 0xFFA7; // Same priority can be used in both states
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    88
    name = "z:\\sys\\bin\\usbwatcher.exe";
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    89
    execution_behaviour = ESsmFireAndForget;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    90
    conditional_information = r_cond_feat_usb;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    91
    monitor_info = r_mon_3_restarts_ignore;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    92
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    93
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    94
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    95
// r_cond_feat_usb
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    96
// ---------------------------------------------------------------------------
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    97
//
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    98
RESOURCE SSM_CND_FEATURE_VALUE r_cond_feat_usb
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
    99
    {
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
   100
    feature_id = KFeatureIdUsb;
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
   101
    }
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
   102
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
   103
// monitoring.rss contains resource definitions, so it may not be included
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
   104
// before entry point.
4f959124999b Added group & startup directories, which build "stem_" versions of the myriad ssmcmdlist resources in private\2000d75b
William Roberts <williamr@symbian.org>
parents:
diff changeset
   105
#include "stem_monitoring.rss"