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