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