sbsv2/raptor/test/smoke_suite/test_resources/resource/dependentresource.rss
changeset 18 de5b887c98f7
equal deleted inserted replaced
14:eb060913c963 18:de5b887c98f7
       
     1 /*
       
     2 * Copyright (c) 2003-2010 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 the License "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 * LOGWRAP.RSS
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <testresource_badef.rh>
       
    21 #include <e32capability.h>
       
    22 
       
    23 #include "../inc/testresource.rh"
       
    24 #include "../inc/testresource.hrh"
       
    25 #include "testresource.rls"
       
    26 
       
    27 #include "testresource.mbg"
       
    28 #include <testresource.rsg>
       
    29 
       
    30 // MACRO statements in .mmp files should be reflected in resource preprocessing
       
    31 #ifndef SHOULD_BE_DEFINED
       
    32 #error "mmp MACRO SHOULD_BE_DEFINED is not defined!"
       
    33 #endif
       
    34 
       
    35 // Initial configuration
       
    36 RESOURCE CONFIG r_log_initial_config
       
    37 	{
       
    38 	size = 1000; // Maximum number of events
       
    39 	recent = 20; // Maximum size of recent lists
       
    40 	age = 2592000; // 30 days
       
    41 	}
       
    42 
       
    43   RESOURCE ARRAY r_log_initial_events
       
    44    	{
       
    45    	items = 
       
    46    		{
       
    47   		ETYPE { uid = KLogCallEventType; description = LOG_CALL_EVENT_TYPE; },
       
    48   		ETYPE { uid = KLogDataEventType; description = LOG_DATA_EVENT_TYPE; },
       
    49   		ETYPE { uid = KLogFaxEventType; description = LOG_FAX_EVENT_TYPE; },
       
    50   		ETYPE { uid = KLogShortMessageEventType; description = LOG_SHORT_MESSAGE_EVENT_TYPE; },
       
    51   		ETYPE { uid = KLogTaskSchedulerEventType; description = LOG_TASK_SCHEDULER_EVENT_TYPE; },
       
    52   		ETYPE { uid = KLogPacketDataEventType; description = LOG_PACKET_DATA_EVENT_TYPE; },
       
    53 
       
    54 
       
    55   		ETYPE { uid = KLogLbsSelfLocateEventType; description = LOG_LBS_SELF_LOCATE_EVENT_TYPE; },
       
    56   		ETYPE { uid = KLogLbsExternalLocateEventType; description = LOG_LBS_EXTERNAL_LOCATE_EVENT_TYPE; },
       
    57  		ETYPE { uid = KLogLbsTransmitLocationEventType; description = LOG_LBS_TRANSMIT_LOCATION_EVENT_TYPE; },
       
    58  		ETYPE { uid = KLogLbsNetworkLocateEventType; description = LOG_LBS_NETWORK_LOCATE_EVENT_TYPE; },
       
    59  		ETYPE { uid = KLogLbsAssistanceDataEventType; description = LOG_LBS_ASSISTANCE_DATA_EVENT_TYPE; }
       
    60 
       
    61    		};
       
    62    	}
       
    63 
       
    64 
       
    65 
       
    66 RESOURCE ARRAY r_log_security
       
    67 //
       
    68 // [See logwrap.rh for the definitions of SECURITY and CAPABILITY.]
       
    69 //
       
    70 // This structure defines settings for platform security in the Log engine.
       
    71 // All event types defined above in 'r_log_initial_events' need to be policed.
       
    72 // The server must always determine whether a client thread has the required
       
    73 // capability to read/write a log event(s) of a built-in type.  Each operation
       
    74 // may have from one to seven capabilities defined for it.  All operations on 
       
    75 // built in types _MUST_ have an associated security policy defined here.  If no
       
    76 // security is required, then use 'cap=ECapability_None'.  The CAPABILITY values
       
    77 // defined here will provide constructor arguments for TSecurityPolicy objects.
       
    78 // The maximum number of CAPABILITY(s) for each read or write operation is 7.
       
    79 // ( a read_caps or a write_caps { contains <= 7 CAPABILITY{}   statements }  )
       
    80 // Note that SID-based security isn't supported in the Log Engine.
       
    81 //
       
    82 	{
       
    83 	items = 
       
    84 		{
       
    85 		SECURITY 
       
    86 			{ 
       
    87 			uid = KLogCallEventType;	
       
    88 			read_caps=
       
    89 				{
       
    90 				CAPABILITY { cap=ECapabilityReadUserData; }
       
    91 				};
       
    92 			write_caps=
       
    93 				{
       
    94 				CAPABILITY { cap=ECapabilityWriteUserData; }
       
    95 				};
       
    96 			},
       
    97 		SECURITY 
       
    98 			{ 
       
    99 			uid=KLogDataEventType;	
       
   100 			read_caps=
       
   101 				{
       
   102 				CAPABILITY { cap=ECapabilityReadUserData; }
       
   103 				};
       
   104 			write_caps=
       
   105 				{
       
   106 				CAPABILITY { cap=ECapabilityWriteUserData; }
       
   107 				};
       
   108 			},
       
   109 		SECURITY 
       
   110 			{ 
       
   111 			uid=KLogFaxEventType;	
       
   112 			read_caps=
       
   113 				{
       
   114 				CAPABILITY { cap=ECapabilityReadUserData; }
       
   115 				};
       
   116 			write_caps=
       
   117 				{
       
   118 				CAPABILITY { cap=ECapabilityWriteUserData; }
       
   119 				};
       
   120 			},
       
   121 		SECURITY 
       
   122 			{ 
       
   123 			uid=KLogShortMessageEventType;	
       
   124 			read_caps=
       
   125 				{
       
   126 				CAPABILITY { cap=ECapabilityReadUserData; }
       
   127 				};
       
   128 			write_caps=
       
   129 				{
       
   130 				CAPABILITY { cap=ECapabilityWriteUserData; }
       
   131 				};
       
   132 			},
       
   133 		SECURITY 
       
   134 			{ 
       
   135 			uid=KLogTaskSchedulerEventType;	
       
   136 			read_caps=
       
   137 				{
       
   138 				CAPABILITY { cap=ECapabilityReadUserData; }
       
   139 				};
       
   140 			write_caps=
       
   141 				{
       
   142 				CAPABILITY { cap=ECapability_None; }
       
   143 				};
       
   144 			},
       
   145 		SECURITY 
       
   146 			{ 
       
   147 			uid=KLogPacketDataEventType;	
       
   148 			read_caps=
       
   149 				{
       
   150 				CAPABILITY { cap=ECapabilityReadUserData; }
       
   151 				};
       
   152 			write_caps=
       
   153 				{
       
   154 				CAPABILITY { cap=ECapabilityWriteUserData; }
       
   155 				};
       
   156 			},
       
   157 		SECURITY 
       
   158 			{ 
       
   159 			uid=KLogLbsSelfLocateEventType;	
       
   160 			read_caps=
       
   161 				{
       
   162 				CAPABILITY { cap=ECapabilityReadDeviceData; }
       
   163 				};
       
   164 			write_caps=
       
   165 				{
       
   166 				CAPABILITY { cap=ECapabilityWriteDeviceData; }
       
   167 				};
       
   168 			},
       
   169 		SECURITY 
       
   170 			{ 
       
   171 			uid=KLogLbsExternalLocateEventType;	
       
   172 			read_caps=
       
   173 				{
       
   174 				CAPABILITY { cap=ECapabilityReadDeviceData; }
       
   175 				};
       
   176 			write_caps=
       
   177 				{
       
   178 				CAPABILITY { cap=ECapabilityWriteDeviceData; }
       
   179 				};
       
   180 			},
       
   181 		SECURITY 
       
   182 			{ 
       
   183 			uid=KLogLbsTransmitLocationEventType;	
       
   184 			read_caps=
       
   185 				{
       
   186 				CAPABILITY { cap=ECapabilityReadDeviceData; }
       
   187 				};
       
   188 			write_caps=
       
   189 				{
       
   190 				CAPABILITY { cap=ECapabilityWriteDeviceData; }
       
   191 				};
       
   192 			},
       
   193 		SECURITY 
       
   194 			{ 
       
   195 			uid=KLogLbsNetworkLocateEventType;	
       
   196 			read_caps=
       
   197 				{
       
   198 				CAPABILITY { cap=ECapabilityReadDeviceData; }
       
   199 				};
       
   200 			write_caps=
       
   201 				{
       
   202 				CAPABILITY { cap=ECapabilityWriteDeviceData; }
       
   203 				};
       
   204 			},
       
   205 		SECURITY 
       
   206 			{ 
       
   207 			uid=KLogLbsAssistanceDataEventType;	
       
   208 			read_caps=
       
   209 				{
       
   210 				CAPABILITY { cap=ECapabilityReadDeviceData; }
       
   211 				};
       
   212 			write_caps=
       
   213 				{
       
   214 				CAPABILITY { cap=ECapabilityWriteDeviceData; }
       
   215 				};
       
   216 			}
       
   217 		};
       
   218 	}
       
   219 
       
   220 
       
   221 // Index entries
       
   222 RESOURCE ARRAY r_log_indexes
       
   223 	{
       
   224 	items =
       
   225 		{
       
   226 		INDEX
       
   227 			{
       
   228 			name = "Index1"; // do not translate
       
   229 			table = "Event"; // do not translate
       
   230 			keys = 
       
   231 				{
       
   232 				KEY { col = "Id"; } // do not translate
       
   233 				};
       
   234 			},
       
   235 		INDEX
       
   236 			{
       
   237 			name = "Index2"; // do not translate
       
   238 			table = "Event"; // do not translate
       
   239 			keys =
       
   240 				{
       
   241 				KEY { col = "ETime"; } // do not translate
       
   242 				};
       
   243 			},
       
   244 		INDEX
       
   245 			{
       
   246 			name = "Index3"; // do not translate
       
   247 			table = "String"; // do not translate
       
   248 			keys = 
       
   249 				{
       
   250 				KEY { col = "Id"; } // do not translate
       
   251 				};
       
   252 			}
       
   253 		};
       
   254 	}
       
   255 
       
   256 // Recent list setup
       
   257 RESOURCE ARRAY r_log_recent
       
   258 	{
       
   259 	items =
       
   260 		{
       
   261 		RECENT
       
   262 			{
       
   263 			id = KLogRecentIncomingCalls;
       
   264 			duplicate = ELogRemotePartyField|ELogContactField|ELogNumberField;
       
   265 			conditions = 
       
   266 				{
       
   267 				MATCH { field = ELogEventTypeField; value = KLogCallEventType; },
       
   268 				MATCH { field = ELogDirectionField; string = LOG_DIR_IN; },
       
   269 				MATCH { field = ELogDirectionField; string = LOG_DIR_IN_ALT; }
       
   270 				};
       
   271 			},
       
   272 		RECENT
       
   273 			{
       
   274 			id = KLogRecentOutgoingCalls;
       
   275 			duplicate = ELogRemotePartyField|ELogContactField|ELogNumberField;
       
   276 			conditions = 
       
   277 				{
       
   278 				MATCH { field = ELogEventTypeField; value = KLogCallEventType; },
       
   279 				MATCH { field = ELogDirectionField; string = LOG_DIR_OUT; },
       
   280 				MATCH { field = ELogDirectionField; string = LOG_DIR_OUT_ALT; }
       
   281 				};
       
   282 			},
       
   283 		RECENT
       
   284 			{
       
   285 			id = KLogRecentMissedCalls;
       
   286 			duplicate = ELogRemotePartyField|ELogContactField|ELogNumberField;
       
   287 			conditions = 
       
   288 				{
       
   289 				MATCH { field = ELogEventTypeField; value = KLogCallEventType; },
       
   290 				MATCH { field = ELogDirectionField; string = LOG_DIR_MISSED; },
       
   291 				MATCH { field = ELogDirectionField; string = LOG_DIR_MISSED_ALT; }
       
   292 				};
       
   293 			}
       
   294 		};
       
   295 	}
       
   296 
       
   297 
       
   298 // Direction
       
   299 RESOURCE LBUF r_log_dir_in { txt = LOG_DIR_IN; }
       
   300 RESOURCE LBUF r_log_dir_out { txt = LOG_DIR_OUT; }
       
   301 RESOURCE LBUF r_log_dir_in_alt { txt = LOG_DIR_IN_ALT; }
       
   302 RESOURCE LBUF r_log_dir_out_alt { txt = LOG_DIR_OUT_ALT; }
       
   303 RESOURCE LBUF r_log_dir_fetched { txt = LOG_DIR_FETCHED; }
       
   304 RESOURCE LBUF r_log_dir_missed { txt = LOG_DIR_MISSED; }
       
   305 RESOURCE LBUF r_log_dir_missed_alt { txt = LOG_DIR_MISSED_ALT; }
       
   306 
       
   307 
       
   308 // Delivery
       
   309 RESOURCE LBUF r_log_del_pending { txt = LOG_DEL_PENDING; }
       
   310 RESOURCE LBUF r_log_del_sent { txt = LOG_DEL_SENT; }
       
   311 RESOURCE LBUF r_log_del_failed { txt = LOG_DEL_FAILED; }
       
   312 /* R_LOG_DEL_NONE comes from the rsg that we're trying to depend on */
       
   313 RESOURCE LBUF r_log_del_none { txt = R_LOG_DEL_NONE; } 
       
   314 RESOURCE LBUF r_log_del_done { txt = LOG_DEL_DONE; }
       
   315 RESOURCE LBUF r_log_del_not_sent { txt = LOG_DEL_NOT_SENT; }
       
   316 RESOURCE LBUF r_log_del_scheduled { txt = LOG_DEL_SCHEDULED; }
       
   317 
       
   318 // Other
       
   319 RESOURCE LBUF r_log_remote_unknown { txt = LOG_REMOTE_UNKNOWN; }
       
   320 RESOURCE LBUF r_log_remote_multiple { txt = LOG_REMOTE_MULTIPLE; }
       
   321 RESOURCE LBUF r_log_subject_none { txt = LOG_SUBJECT_NONE; }
       
   322 RESOURCE LBUF r_log_subject_data_message { txt = LOG_SUBJECT_DATA_MESSAGE; }
       
   323 
       
   324 // Connection
       
   325 RESOURCE LBUF r_log_con_connected { txt = LOG_CON_CONNECTED; }
       
   326 RESOURCE LBUF r_log_con_connecting { txt = LOG_CON_CONNECTING; }
       
   327 RESOURCE LBUF r_log_con_disconnecting { txt = LOG_CON_DISCONNECTING; }
       
   328 RESOURCE LBUF r_log_con_disconnected{ txt = LOG_CON_DISCONNECTED; }
       
   329 RESOURCE LBUF r_log_con_suspended{ txt = LOG_CON_SUSPENDED; }
       
   330 
       
   331 // Delivery
       
   332 RESOURCE LBUF r_log_del_notified { txt = LOG_DEL_NOTIFIED; } 
       
   333 RESOURCE LBUF r_log_del_expired { txt = LOG_DEL_EXPIRED; }