sysstatemgmt/systemstateplugins/test/tunitconditionevaluator/resource/tunitconditionevaluator.rss
changeset 0 4e1aa6a622a0
child 21 ccb4f6b3db21
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "conditionresourcetypes.rh"
       
    17 
       
    18 //Publish subscribe conditions
       
    19 RESOURCE SSM_CND_PUB_SUB_VALUE r_cnd_ps_value
       
    20     {
       
    21     category = 0x2001D2A6;
       
    22 	key = 0x1;
       
    23 	value = 0x1010;
       
    24     }
       
    25 
       
    26 
       
    27 RESOURCE SSM_CND_PUB_SUB_FLAG r_cnd_ps_flag
       
    28 	{
       
    29     category = 0x2001D2A6;
       
    30 	key = 0x1;
       
    31 	bitmask = 0x0010;
       
    32 	}
       
    33 
       
    34 //Central repository conditions
       
    35 RESOURCE SSM_CND_CENT_REP_VALUE r_cnd_cr_value_valid
       
    36     {
       
    37     repository_id = 0x2001D2A6;
       
    38 	key = 0x010;
       
    39 	value = 0x1010;
       
    40     }
       
    41 
       
    42 
       
    43 RESOURCE SSM_CND_CENT_REP_FLAG r_cnd_cr_flag_valid
       
    44 	{
       
    45     repository_id = 0x2001D2A6;
       
    46 	key = 0x010;
       
    47 	bitmask = 0x0010;
       
    48 	}
       
    49 
       
    50 RESOURCE SSM_CND_CENT_REP_VALUE r_cnd_cr_value_invalid
       
    51     {
       
    52     repository_id = 0x2001D2A6;
       
    53 	key = 0x010;
       
    54 	value = 0x1110;
       
    55     }
       
    56 
       
    57 
       
    58 RESOURCE SSM_CND_CENT_REP_FLAG r_cnd_cr_flag_invalid
       
    59 	{
       
    60     repository_id = 0x2001D2A6;
       
    61 	key = 0x010;
       
    62 	bitmask = 0x0110;
       
    63 	}
       
    64 
       
    65 //Feature manager conditions
       
    66 RESOURCE SSM_CND_FEATURE_VALUE r_cnd_fm_value_invalid
       
    67 	{
       
    68     feature_id = 0x2001D2A7;
       
    69 	}
       
    70 
       
    71 RESOURCE SSM_CND_FEATURE_DATA_VALUE r_cnd_fm_data_value_invalid
       
    72 	{
       
    73     feature_id = 0x2001D2A6;
       
    74 	datavalue = 1001;
       
    75 	}
       
    76 
       
    77 RESOURCE SSM_CND_FEATURE_VALUE r_cnd_fm_value
       
    78 	{
       
    79     feature_id = 0x2001D2A6;
       
    80 	}
       
    81 
       
    82 RESOURCE SSM_CND_FEATURE_DATA_VALUE r_cnd_fm_data_value
       
    83 	{
       
    84     feature_id = 0x2001D2A6;
       
    85 	datavalue = 0;
       
    86 	}
       
    87 
       
    88 //Logical and condition
       
    89 RESOURCE SSM_CND_LOGICAL_AND r_cnd_logical_and
       
    90 	{
       
    91 	lhs = r_cnd_cr_flag_valid;
       
    92 	rhs = r_cnd_ps_value;
       
    93 	}
       
    94 
       
    95 //Logical or conditions
       
    96 RESOURCE SSM_CND_LOGICAL_OR r_cnd_logical_or_both_valid
       
    97 	{
       
    98 	lhs = r_cnd_cr_flag_valid;
       
    99 	rhs = r_cnd_ps_value;
       
   100 	}
       
   101 
       
   102 RESOURCE SSM_CND_LOGICAL_OR r_cnd_logical_or_valid1
       
   103 	{
       
   104 	lhs = r_cnd_cr_value_invalid;
       
   105 	rhs = r_cnd_ps_value;
       
   106 	}
       
   107 
       
   108 RESOURCE SSM_CND_LOGICAL_OR r_cnd_logical_or_valid2
       
   109 	{
       
   110 	lhs = r_cnd_cr_value_valid;
       
   111 	rhs = r_cnd_ps_value;
       
   112 	}
       
   113 
       
   114 RESOURCE SSM_CND_LOGICAL_OR r_cnd_logical_or_both_invalid
       
   115 	{
       
   116 	lhs = r_cnd_cr_value_invalid;
       
   117 	rhs = r_cnd_ps_value;
       
   118 	}
       
   119 
       
   120 //Logical not condition
       
   121 RESOURCE SSM_CND_LOGICAL_NOT r_cnd_logical_not1
       
   122 	{
       
   123 	sub_condition = r_cnd_cr_value_invalid;
       
   124 	}
       
   125 
       
   126 RESOURCE SSM_CND_LOGICAL_NOT r_cnd_logical_not2
       
   127 	{
       
   128 	sub_condition = r_cnd_cr_flag_valid;
       
   129 	}
       
   130 
       
   131 //Used for nested testing
       
   132 RESOURCE SSM_CND_LOGICAL_OR r_cnd_nested1
       
   133 	{
       
   134 	lhs = r_cnd_cr_flag_valid;
       
   135 	rhs = r_cnd_nested4;
       
   136 	}
       
   137 
       
   138 RESOURCE SSM_CND_LOGICAL_OR r_cnd_nested2
       
   139 	{
       
   140 	lhs = r_cnd_cr_value_invalid;
       
   141 	rhs = r_cnd_ps_value;
       
   142 	}
       
   143 
       
   144 RESOURCE SSM_CND_LOGICAL_AND r_cnd_nested3
       
   145 	{
       
   146 	lhs = r_cnd_cr_value_valid;
       
   147 	rhs = r_cnd_nested1;
       
   148 	}
       
   149 
       
   150 RESOURCE SSM_CND_LOGICAL_NOT r_cnd_nested4
       
   151 	{
       
   152 	sub_condition = r_cnd_nested2;
       
   153 	}
       
   154 
       
   155 RESOURCE SSM_CND_LOGICAL_AND r_cnd_nested5
       
   156 	{
       
   157 	lhs = r_cnd_nested3;
       
   158 	rhs = r_cnd_cr_value_valid;
       
   159 	}
       
   160 
       
   161 RESOURCE SSM_CND_LOGICAL_AND r_cnd_nested
       
   162 	{
       
   163 	lhs = r_cnd_nested4;
       
   164 	rhs = r_cnd_nested5;
       
   165 	}
       
   166 
       
   167 //system wide property value conditions
       
   168 RESOURCE SSM_CND_SWP_VALUE r_cnd_swp_value
       
   169 	{
       
   170 	key = 0x2;
       
   171 	value = 0x1010;
       
   172 	}
       
   173 
       
   174 //system wide property flag conditions
       
   175 RESOURCE SSM_CND_SWP_FLAG r_cnd_swp_flag
       
   176 	{
       
   177 	key = 0x2;
       
   178 	bitmask = 0x0010;
       
   179 	}