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