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