0
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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 "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 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
package com.nokia.s60tools.creator.components.contact;
|
|
19 |
|
|
20 |
import java.util.LinkedHashMap;
|
|
21 |
|
|
22 |
import com.nokia.s60tools.creator.components.AbstractVariables;
|
|
23 |
import com.nokia.s60tools.creator.components.filetype.FileTypeVariables;
|
|
24 |
|
|
25 |
/**
|
|
26 |
* Variables for contact
|
|
27 |
*/
|
|
28 |
public class ContactVariables extends AbstractVariables
|
|
29 |
|
|
30 |
{
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Constant for founding id element supports <code>incvalueforeachcopy</code>.
|
|
34 |
* S60 Side of Creator is implemented so if "number" or "phone" exist on element name
|
|
35 |
* it supports <code>incvalueforeachcopy</code>.
|
|
36 |
*/
|
|
37 |
private static final String NUMBER = "number";
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Constant for founding id element supports <code>incvalueforeachcopy</code>.
|
|
41 |
* S60 Side of Creator is implemented so if "number" or "phone" exist on element name
|
|
42 |
* it supports <code>incvalueforeachcopy</code>.
|
|
43 |
*/
|
|
44 |
private static final String PHONE = "phone";
|
|
45 |
|
|
46 |
public static final String THUMBNAILID_XML_ELEMENT = "thumbnailid";
|
|
47 |
|
|
48 |
private static ContactVariables instance;
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Get Singleton instance of variables
|
|
52 |
* @return
|
|
53 |
*/
|
|
54 |
public static ContactVariables getInstance() {
|
|
55 |
|
|
56 |
if (instance == null) {
|
|
57 |
instance = new ContactVariables();
|
|
58 |
}
|
|
59 |
|
|
60 |
return instance;
|
|
61 |
}
|
|
62 |
|
|
63 |
private ContactVariables() {
|
|
64 |
init();
|
|
65 |
initFixedValues();
|
|
66 |
}
|
|
67 |
|
|
68 |
protected AbstractVariables getInstanceImpl() {
|
|
69 |
return instance;
|
|
70 |
}
|
|
71 |
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Label text for "first name" memory entry item
|
|
75 |
*/
|
|
76 |
public static final String QTN_PHOB_LBL_FIRST_NAME = "First name";
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Memory entry item label "Middle name"
|
|
80 |
*/
|
|
81 |
public static final String QTN_PHOB_LBL_MIDDLE_NAME = "Middle name";
|
|
82 |
|
|
83 |
/**
|
|
84 |
* Label text for "last name" memory entry item
|
|
85 |
*/
|
|
86 |
public static final String QTN_PHOB_LBL_LAST_NAME = "Last name";
|
|
87 |
|
|
88 |
/**
|
|
89 |
* Label text for "first name reading" memory entry item, used in japanese
|
|
90 |
* Phonebook only (not visible in other languages)
|
|
91 |
*/
|
|
92 |
public static final String QTN_PHOB_LBL_FIRST_READING = "First name reading";
|
|
93 |
|
|
94 |
/**
|
|
95 |
* Label text for "last name reading" memory entry item, used in japanese
|
|
96 |
* Phonebook only (not visible in other languages)
|
|
97 |
*/
|
|
98 |
public static final String QTN_PHOB_LBL_LAST_READING = "Last name reading";
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Label text for prefix memory entry item. l:
|
|
102 |
*/
|
|
103 |
public static final String QTN_PHOB_LBL_PREFIX = "Prefix";
|
|
104 |
|
|
105 |
/**
|
|
106 |
* Label text for suffix memory entry item. l:
|
|
107 |
*/
|
|
108 |
public static final String QTN_PHOB_LBL_SUFFIX = "Suffix";
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Label text for "Company Name" memory entry item
|
|
112 |
*/
|
|
113 |
public static final String QTN_PHOB_LBL_COMPANY_NAME = "Company Name";
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Memory entry item label "Department"
|
|
117 |
*/
|
|
118 |
public static final String QTN_PHOB_LBL_DEPT_NAME = "Department";
|
|
119 |
|
|
120 |
/**
|
|
121 |
* Label text for "Job Title" memory entry item
|
|
122 |
*/
|
|
123 |
public static final String QTN_PHOB_LBL_JOB_TITLE = "Job Title";
|
|
124 |
|
|
125 |
/**
|
|
126 |
* Label text for "Nick Name" memory entry item. l:
|
|
127 |
*/
|
|
128 |
public static final String QTN_SIMP_LBL_NICK = "Nick name";
|
|
129 |
|
|
130 |
/**
|
|
131 |
* Memory entry item label "Assistant name"
|
|
132 |
*/
|
|
133 |
public static final String QTN_PHOB_LBL_ASSISTANT_NAME = "Assistant name";
|
|
134 |
|
|
135 |
/**
|
|
136 |
* Memory entry item label "Spouse"
|
|
137 |
*/
|
|
138 |
public static final String QTN_PHOB_LBL_SPOUSE = "Spouse";
|
|
139 |
|
|
140 |
/**
|
|
141 |
* Memory entry item label "Children"
|
|
142 |
*/
|
|
143 |
public static final String QTN_PHOB_LBL_CHILDREN = "Children";
|
|
144 |
|
|
145 |
/**
|
|
146 |
* Label text for "Phone Number (Standard)" memory entry item
|
|
147 |
*/
|
|
148 |
public static final String QTN_PHOB_LBL_NUMBER_STANDARD = "Phone Number";
|
|
149 |
|
|
150 |
/**
|
|
151 |
* Label text for "Phone Number (Home)" memory entry item
|
|
152 |
*/
|
|
153 |
public static final String QTN_PHOB_LBL_NUMBER_HOME = "Phone Number (Home)";
|
|
154 |
|
|
155 |
/**
|
|
156 |
* Label text for "Phone Number (Work)" memory entry item
|
|
157 |
*/
|
|
158 |
public static final String QTN_PHOB_LBL_NUMBER_WORK = "Phone Number (Work)";
|
|
159 |
|
|
160 |
/**
|
|
161 |
* Label text for "Phone Number (Mobile)" memory entry item
|
|
162 |
*/
|
|
163 |
public static final String QTN_PHOB_LBL_NUMBER_MOBILE = "Phone Number (Mobile)";
|
|
164 |
|
|
165 |
/**
|
|
166 |
* Label text for "Mobile (home)" memory entry item
|
|
167 |
*/
|
|
168 |
public static final String QTN_PHOB_LBL_NUMBER_MOBILE_HOME = "Mobile (home)";
|
|
169 |
|
|
170 |
/**
|
|
171 |
* Label text for "Mobile (work)" memory entry item
|
|
172 |
*/
|
|
173 |
public static final String QTN_PHOB_LBL_NUMBER_MOBILE_WORK = "Mobile (work)";
|
|
174 |
|
|
175 |
/**
|
|
176 |
* Label text for "video no." memory entry item
|
|
177 |
*/
|
|
178 |
public static final String QTN_PHOB_LBL_VIDEO = "Video no.";
|
|
179 |
|
|
180 |
/**
|
|
181 |
* Label text for "video no. (home)" memory entry item
|
|
182 |
*/
|
|
183 |
public static final String QTN_PHOB_LBL_VIDEO_HOME = "Video no. (home)";
|
|
184 |
|
|
185 |
/**
|
|
186 |
* Label text for "video no. (work)" memory entry item
|
|
187 |
*/
|
|
188 |
public static final String QTN_PHOB_LBL_VIDEO_WORK = "Video no. (work)";
|
|
189 |
|
|
190 |
/**
|
|
191 |
* Memory entry item label "Car phone"
|
|
192 |
*/
|
|
193 |
public static final String QTN_PHOB_LBL_CAR_TEL = "Car phone";
|
|
194 |
|
|
195 |
/**
|
|
196 |
* Memory entry item label "Assistant phone"
|
|
197 |
*/
|
|
198 |
public static final String QTN_PHOB_LBL_NUMBER_ASSISTANT = "Assistant phone";
|
|
199 |
|
|
200 |
/**
|
|
201 |
* Label text for "VOIP call" memory entry item
|
|
202 |
*/
|
|
203 |
public static final String QTN_PHOB_LBL_VOIP = "Tel. Internet";
|
|
204 |
|
|
205 |
/**
|
|
206 |
* Label text for "VOIP call (home)" memory entry item
|
|
207 |
*/
|
|
208 |
public static final String QTN_PHOB_LBL_VOIP_HOME = "Tel. Internet (home)";
|
|
209 |
|
|
210 |
/**
|
|
211 |
* Label text for "VOIP call (work)" memory entry item
|
|
212 |
*/
|
|
213 |
public static final String QTN_PHOB_LBL_VOIP_WORK = "Tel. Internet (work)";
|
|
214 |
|
|
215 |
/**
|
|
216 |
* Label text for "push to talk" memory entry item
|
|
217 |
*/
|
|
218 |
public static final String QTN_PHOB_LBL_POC = "PTT";
|
|
219 |
|
|
220 |
/**
|
|
221 |
* Label text for "share view" memory entry item
|
|
222 |
*/
|
|
223 |
public static final String QTN_PHOB_LBL_SWIS = "Share view";
|
|
224 |
|
|
225 |
/**
|
|
226 |
* Label text for "SIP" memory entry item
|
|
227 |
*/
|
|
228 |
public static final String QTN_PHOB_LBL_SIP = "SIP";
|
|
229 |
|
|
230 |
/**
|
|
231 |
* Label text for "Fax Number" memory entry item
|
|
232 |
*/
|
|
233 |
public static final String QTN_PHOB_LBL_FAX = "Fax";
|
|
234 |
|
|
235 |
/**
|
|
236 |
* Label text for "Fax (home)" memory entry item
|
|
237 |
*/
|
|
238 |
public static final String QTN_PHOB_LBL_FAX_HOME = "Fax (home)";
|
|
239 |
|
|
240 |
/**
|
|
241 |
* Label text for "Fax (work)" memory entry item
|
|
242 |
*/
|
|
243 |
public static final String QTN_PHOB_LBL_FAX_WORK = "Fax (work)";
|
|
244 |
|
|
245 |
/**
|
|
246 |
* Label text for "Pager Number" memory entry item
|
|
247 |
*/
|
|
248 |
public static final String QTN_PHOB_LBL_PAGER = "Pager Number";
|
|
249 |
|
|
250 |
/**
|
|
251 |
* Label text for "Email Address" memory entry item
|
|
252 |
*/
|
|
253 |
public static final String QTN_PHOB_LBL_EMAIL = "Email";
|
|
254 |
|
|
255 |
/**
|
|
256 |
* Label text for "Email (home)" memory entry item
|
|
257 |
*/
|
|
258 |
public static final String QTN_PHOB_LBL_EMAIL_HOME = "Email (home)";
|
|
259 |
|
|
260 |
/**
|
|
261 |
* Label text for "Email (work)" memory entry item
|
|
262 |
*/
|
|
263 |
public static final String QTN_PHOB_LBL_EMAIL_WORK = "Email (work)";
|
|
264 |
|
|
265 |
/**
|
|
266 |
* Label text for "URL" memory entry item
|
|
267 |
*/
|
|
268 |
public static final String QTN_PHOB_LBL_URL = "URL";
|
|
269 |
|
|
270 |
/**
|
|
271 |
* Label text for "URL (home)" memory entry item
|
|
272 |
*/
|
|
273 |
public static final String QTN_PHOB_LBL_URL_HOME = "URL (home)";
|
|
274 |
|
|
275 |
/**
|
|
276 |
* Label text for "URL (work)" memory entry item
|
|
277 |
*/
|
|
278 |
public static final String QTN_PHOB_LBL_URL_WORK = "URL (work)";
|
|
279 |
|
|
280 |
/**
|
|
281 |
* Label text for "Postal Address" memory entry item
|
|
282 |
*/
|
|
283 |
public static final String QTN_PHOB_LBL_ADDRESS = "Postal Address";
|
|
284 |
|
|
285 |
/**
|
|
286 |
* Label text for "P.O.Box" memory entry item
|
|
287 |
*/
|
|
288 |
public static final String QTN_PHOB_LBL_POBOX = "P.O.Box";
|
|
289 |
|
|
290 |
/**
|
|
291 |
* Label text for "Extencion" memory entry item
|
|
292 |
*/
|
|
293 |
public static final String QTN_PHOB_LBL_EXTENCION = "Extension";
|
|
294 |
|
|
295 |
/**
|
|
296 |
* Label text for "Street" memory entry item
|
|
297 |
*/
|
|
298 |
public static final String QTN_PHOB_LBL_STREET = "Street";
|
|
299 |
|
|
300 |
/**
|
|
301 |
* Label text for "Postal code" memory entry item
|
|
302 |
*/
|
|
303 |
public static final String QTN_PHOB_LBL_POSTAL_CODE = "Postal code";
|
|
304 |
|
|
305 |
/**
|
|
306 |
* Label text for "City" memory entry item
|
|
307 |
*/
|
|
308 |
public static final String QTN_PHOB_LBL_CITY = "City";
|
|
309 |
|
|
310 |
/**
|
|
311 |
* Label text for "State" memory entry item
|
|
312 |
*/
|
|
313 |
public static final String QTN_PHOB_LBL_STATE = "State";
|
|
314 |
|
|
315 |
/**
|
|
316 |
* Label text for "Country" memory entry item
|
|
317 |
*/
|
|
318 |
public static final String QTN_PHOB_LBL_COUNTRY = "Country";
|
|
319 |
|
|
320 |
/**
|
|
321 |
* Label text for "Address (home)" memory entry item
|
|
322 |
*/
|
|
323 |
public static final String QTN_PHOB_LBL_ADDRESS_HOME = "Address (home)";
|
|
324 |
|
|
325 |
/**
|
|
326 |
* Label text for "P.O.Box (home)" memory entry item
|
|
327 |
*/
|
|
328 |
public static final String QTN_PHOB_LBL_POBOX_HOME = "P.O.Box (home)";
|
|
329 |
|
|
330 |
/**
|
|
331 |
* Label text for "Extencion (home)" memory entry item
|
|
332 |
*/
|
|
333 |
public static final String QTN_PHOB_LBL_EXTENCION_HOME = "Extension (home)";
|
|
334 |
|
|
335 |
/**
|
|
336 |
* Label text for "Street (home)" memory entry item
|
|
337 |
*/
|
|
338 |
public static final String QTN_PHOB_LBL_STREET_HOME = "Street (home)";
|
|
339 |
|
|
340 |
/**
|
|
341 |
* Label text for "Postal code (home)" memory entry item
|
|
342 |
*/
|
|
343 |
public static final String QTN_PHOB_LBL_POSTAL_CODE_HOME = "Postal code (home)";
|
|
344 |
|
|
345 |
/**
|
|
346 |
* Label text for "City (home)" memory entry item
|
|
347 |
*/
|
|
348 |
public static final String QTN_PHOB_LBL_CITY_HOME = "City (home)";
|
|
349 |
|
|
350 |
/**
|
|
351 |
* Label text for "State (home)" memory entry item
|
|
352 |
*/
|
|
353 |
public static final String QTN_PHOB_LBL_STATE_HOME = "State (home)";
|
|
354 |
|
|
355 |
/**
|
|
356 |
* Label text for "Country (home)" memory entry item
|
|
357 |
*/
|
|
358 |
public static final String QTN_PHOB_LBL_COUNTRY_HOME = "Country (home)";
|
|
359 |
|
|
360 |
/**
|
|
361 |
* Label text for "Address (work)" memory entry item
|
|
362 |
*/
|
|
363 |
public static final String QTN_PHOB_LBL_ADDRESS_WORK = "Address (work)";
|
|
364 |
|
|
365 |
/**
|
|
366 |
* Label text for "P.O.Box (work)" memory entry item
|
|
367 |
*/
|
|
368 |
public static final String QTN_PHOB_LBL_POBOX_WORK = "P.O.Box (work)";
|
|
369 |
|
|
370 |
/**
|
|
371 |
* Label text for "Extencion (work)" memory entry item
|
|
372 |
*/
|
|
373 |
public static final String QTN_PHOB_LBL_EXTENCION_WORK = "Extension (work)";
|
|
374 |
|
|
375 |
/**
|
|
376 |
* Label text for "Street (work)" memory entry item
|
|
377 |
*/
|
|
378 |
public static final String QTN_PHOB_LBL_STREET_WORK = "Street (work)";
|
|
379 |
|
|
380 |
/**
|
|
381 |
* Label text for "Postal code (work)" memory entry item
|
|
382 |
*/
|
|
383 |
public static final String QTN_PHOB_LBL_POSTAL_CODE_WORK = "Postal code (work)";
|
|
384 |
|
|
385 |
/**
|
|
386 |
* Label text for "City (work)" memory entry item
|
|
387 |
*/
|
|
388 |
public static final String QTN_PHOB_LBL_CITY_WORK = "City (work)";
|
|
389 |
|
|
390 |
/**
|
|
391 |
* Label text for "State (work)" memory entry item
|
|
392 |
*/
|
|
393 |
public static final String QTN_PHOB_LBL_STATE_WORK = "State (work)";
|
|
394 |
|
|
395 |
/**
|
|
396 |
* Label text for "Country (work)" memory entry item
|
|
397 |
*/
|
|
398 |
public static final String QTN_PHOB_LBL_COUNTRY_WORK = "Country (work)";
|
|
399 |
|
|
400 |
/**
|
|
401 |
* Label text for "DTMF String" memory entry item
|
|
402 |
*/
|
|
403 |
public static final String QTN_PHOB_LBL_DTMF = "DTMF";
|
|
404 |
|
|
405 |
/**
|
|
406 |
* Label text for "Date" memory entry item
|
|
407 |
*/
|
|
408 |
public static final String QTN_PHOB_LBL_DATE = "Birthday";
|
|
409 |
|
|
410 |
/**
|
|
411 |
* Memory entry item label "Anniversary"
|
|
412 |
*/
|
|
413 |
public static final String QTN_PHOB_LBL_ANNIVERSARY = "Anniversary";
|
|
414 |
|
|
415 |
/**
|
|
416 |
* Label text for "Note" memory entry item
|
|
417 |
*/
|
|
418 |
public static final String QTN_PHOB_LBL_NOTE = "Note";
|
|
419 |
|
|
420 |
/**
|
|
421 |
* Memory entry item label "Synchronization"
|
|
422 |
*/
|
|
423 |
public static final String QTN_PHOB_LBL_SYNCHRONIZATION = "Synchronization";
|
|
424 |
|
|
425 |
/**
|
|
426 |
* Label text for "thumbnail" memory entry item
|
|
427 |
*/
|
|
428 |
public static final String QTN_PHOB_LBL_THUMBNAILPATH = "Thumbnail path";
|
|
429 |
|
|
430 |
/**
|
|
431 |
* Label for Thumbnail ID, not existing value in S60 Device, only occurs in script mode.
|
|
432 |
*/
|
|
433 |
public static final String QTN_PHOB_LBL_THUMBNAILID = "Thumbnail ID";
|
|
434 |
|
|
435 |
|
|
436 |
/**
|
|
437 |
* Label text for "Image" memory entry item
|
|
438 |
*/
|
|
439 |
public static final String QTN_PHOB_LBL_IMAGE = "Image";
|
|
440 |
|
|
441 |
/**
|
|
442 |
* Label text for "Text for call" memory entry item
|
|
443 |
*/
|
|
444 |
public static final String QTN_PHOB_LBL_TEXT = "Text for call";
|
|
445 |
|
|
446 |
/**
|
|
447 |
* Label text for "Personal Ringing Tone Indication" memory entry item
|
|
448 |
*/
|
|
449 |
public static final String QTN_PHOB_LBL_TONE = "Ring tone path";
|
|
450 |
|
|
451 |
//
|
|
452 |
//few items found also in VPbkEngFieldTypes.rss, but those cause Emulator to crash, so not taken into use
|
|
453 |
//
|
|
454 |
|
|
455 |
/**
|
|
456 |
* Label text for Location privacy indicator, found in VPbkEngFieldTypes.rss
|
|
457 |
*/
|
|
458 |
public static final String R_VPBK_FIELD_TYPE_LOCPRIVACY = "Location privacy indicator";
|
|
459 |
|
|
460 |
/**
|
|
461 |
* Label text for Wv(IM) address, found in VPbkEngFieldTypes.rss
|
|
462 |
*/
|
|
463 |
public static final String R_VPBK_FIELD_TYPE_WVADDRESS = "Wv(IM) address";
|
|
464 |
|
|
465 |
private void init() {
|
|
466 |
|
|
467 |
items = new LinkedHashMap<String, String>(71);
|
|
468 |
|
|
469 |
//First 10 items exist in same order that they appear in Device when creating new contact
|
|
470 |
|
|
471 |
items.put("firstname", QTN_PHOB_LBL_FIRST_NAME);
|
|
472 |
items.put("lastname", QTN_PHOB_LBL_LAST_NAME);
|
|
473 |
items.put("mobilephonegen", QTN_PHOB_LBL_NUMBER_MOBILE);
|
|
474 |
items.put("landphonegen", QTN_PHOB_LBL_NUMBER_STANDARD);
|
|
475 |
items.put("emailgen", QTN_PHOB_LBL_EMAIL);
|
|
476 |
items.put("videonumbergen", QTN_PHOB_LBL_VIDEO);
|
|
477 |
items.put("voipgen", QTN_PHOB_LBL_VOIP);
|
|
478 |
items.put("poc", QTN_PHOB_LBL_POC);
|
|
479 |
items.put("company", QTN_PHOB_LBL_COMPANY_NAME);
|
|
480 |
items.put("jobtitle", QTN_PHOB_LBL_JOB_TITLE);
|
|
481 |
|
|
482 |
items.put("note", QTN_PHOB_LBL_NOTE);
|
|
483 |
items.put("middlename", QTN_PHOB_LBL_MIDDLE_NAME);
|
|
484 |
items.put("secondname", QTN_SIMP_LBL_NICK);
|
|
485 |
|
|
486 |
|
|
487 |
items.put("prefix", QTN_PHOB_LBL_PREFIX);
|
|
488 |
items.put("suffix", QTN_PHOB_LBL_SUFFIX);
|
|
489 |
|
|
490 |
items.put("addrlabelgen", QTN_PHOB_LBL_ADDRESS);
|
|
491 |
items.put("addrpogen", QTN_PHOB_LBL_POBOX);
|
|
492 |
items.put("addrextgen", QTN_PHOB_LBL_EXTENCION);
|
|
493 |
items.put("addrstreetgen", QTN_PHOB_LBL_STREET);
|
|
494 |
items.put("addrlocalgen", QTN_PHOB_LBL_CITY);
|
|
495 |
items.put("addrregiongen", QTN_PHOB_LBL_STATE);
|
|
496 |
items.put("addrpostcodegen", QTN_PHOB_LBL_POSTAL_CODE);
|
|
497 |
items.put("addrcountrygen", QTN_PHOB_LBL_COUNTRY);
|
|
498 |
|
|
499 |
items.put("addrlabelhome", QTN_PHOB_LBL_ADDRESS_HOME);
|
|
500 |
items.put("addrpohome", QTN_PHOB_LBL_POBOX_HOME);
|
|
501 |
items.put("addrexthome", QTN_PHOB_LBL_EXTENCION_HOME);
|
|
502 |
items.put("addrstreethome", QTN_PHOB_LBL_STREET_HOME);
|
|
503 |
items.put("addrlocalhome", QTN_PHOB_LBL_CITY_HOME);
|
|
504 |
items.put("addrregionhome", QTN_PHOB_LBL_STATE_HOME);
|
|
505 |
items.put("addrpostcodehome", QTN_PHOB_LBL_POSTAL_CODE_HOME);
|
|
506 |
items.put("addrcountryhome", QTN_PHOB_LBL_COUNTRY_HOME);
|
|
507 |
|
|
508 |
items.put("addrlabelwork", QTN_PHOB_LBL_ADDRESS_WORK);
|
|
509 |
items.put("addrpowork", QTN_PHOB_LBL_POBOX_WORK);
|
|
510 |
items.put("addrextwork", QTN_PHOB_LBL_EXTENCION_WORK);
|
|
511 |
items.put("addrstreetwork", QTN_PHOB_LBL_STREET_WORK);
|
|
512 |
items.put("addrlocalwork", QTN_PHOB_LBL_CITY_WORK);
|
|
513 |
items.put("addrregionwork", QTN_PHOB_LBL_STATE_WORK);
|
|
514 |
items.put("addrpostcodework", QTN_PHOB_LBL_POSTAL_CODE_WORK);
|
|
515 |
items.put("addrcountrywork", QTN_PHOB_LBL_COUNTRY_WORK);
|
|
516 |
|
|
517 |
items.put("swis", QTN_PHOB_LBL_SWIS);
|
|
518 |
items.put("sip", QTN_PHOB_LBL_SIP);
|
|
519 |
items.put("dtmfstring", QTN_PHOB_LBL_DTMF);
|
|
520 |
items.put("department", QTN_PHOB_LBL_DEPT_NAME);
|
|
521 |
items.put("asstname", QTN_PHOB_LBL_ASSISTANT_NAME);
|
|
522 |
items.put("spouse", QTN_PHOB_LBL_SPOUSE);
|
|
523 |
items.put("children", QTN_PHOB_LBL_CHILDREN);
|
|
524 |
items.put("anniversary", QTN_PHOB_LBL_ANNIVERSARY);
|
|
525 |
items.put("synchronization", QTN_PHOB_LBL_SYNCHRONIZATION);
|
|
526 |
items.put("thumbnailpath", QTN_PHOB_LBL_THUMBNAILPATH);
|
|
527 |
items.put(THUMBNAILID_XML_ELEMENT, QTN_PHOB_LBL_THUMBNAILID);
|
|
528 |
items.put("callerobjtext",QTN_PHOB_LBL_TEXT);
|
|
529 |
items.put("ringtonepath",QTN_PHOB_LBL_TONE);
|
|
530 |
items.put("callerobjimg",QTN_PHOB_LBL_IMAGE);
|
|
531 |
items.put("birthday",QTN_PHOB_LBL_DATE);
|
|
532 |
|
|
533 |
items.put("landphonehome", QTN_PHOB_LBL_NUMBER_HOME);
|
|
534 |
items.put("landphonework", QTN_PHOB_LBL_NUMBER_WORK);
|
|
535 |
|
|
536 |
items.put("mobilephonehome", QTN_PHOB_LBL_NUMBER_MOBILE_HOME);
|
|
537 |
items.put("mobilephonework", QTN_PHOB_LBL_NUMBER_MOBILE_WORK);
|
|
538 |
|
|
539 |
items.put("faxnumbergen", QTN_PHOB_LBL_FAX);
|
|
540 |
items.put("faxnumberhome", QTN_PHOB_LBL_FAX_HOME);
|
|
541 |
items.put("faxnumberwork", QTN_PHOB_LBL_FAX_WORK);
|
|
542 |
items.put("pagernumber", QTN_PHOB_LBL_PAGER);
|
|
543 |
|
|
544 |
items.put("videonumberhome", QTN_PHOB_LBL_VIDEO_HOME);
|
|
545 |
items.put("videonumberwork", QTN_PHOB_LBL_VIDEO_WORK);
|
|
546 |
|
|
547 |
items.put("voiphome", QTN_PHOB_LBL_VOIP_HOME);
|
|
548 |
items.put("voipwork", QTN_PHOB_LBL_VOIP_WORK);
|
|
549 |
|
|
550 |
items.put("asstphone", QTN_PHOB_LBL_NUMBER_ASSISTANT);
|
|
551 |
items.put("carphone", QTN_PHOB_LBL_CAR_TEL);
|
|
552 |
|
|
553 |
items.put("urlgen", QTN_PHOB_LBL_URL);
|
|
554 |
items.put("urlhome", QTN_PHOB_LBL_URL_HOME);
|
|
555 |
items.put("urlwork", QTN_PHOB_LBL_URL_WORK);
|
|
556 |
|
|
557 |
items.put("emailhome", QTN_PHOB_LBL_EMAIL_HOME);
|
|
558 |
items.put("emailwork", QTN_PHOB_LBL_EMAIL_WORK);
|
|
559 |
|
|
560 |
|
|
561 |
//Following items not found in devices and causes emulator crash, can be taken into use if wanted
|
|
562 |
//items found in VPbkEngFieldTypes.rss
|
|
563 |
items.put("locprivacy",R_VPBK_FIELD_TYPE_LOCPRIVACY);//r_vpbk_field_type_locprivacy (Location privacy indicator)
|
|
564 |
items.put("wvaddress", R_VPBK_FIELD_TYPE_WVADDRESS);//R_VPBK_FIELD_TYPE_WVADDRESS (Wv(IM) address)
|
|
565 |
|
|
566 |
}
|
|
567 |
|
|
568 |
private void initFixedValues(){
|
|
569 |
itemsValues = new LinkedHashMap<String, String[]>(4);
|
|
570 |
itemsValues.put(THUMBNAILID_XML_ELEMENT, FileTypeVariables.ALL_PICTURE_FILE_TYPES_AS_COMMA_SEPARATED_STRING);
|
|
571 |
}
|
|
572 |
|
|
573 |
/**
|
|
574 |
* Check if <code>incvalueforeachcopy</code> is supported for type.
|
|
575 |
* @param type as in UI, not as in XML.
|
|
576 |
* @return <code>true</code> if <code>incvalueforeachcopy</code> is supported.
|
|
577 |
*/
|
|
578 |
public boolean isTypeSupportingIncValueForEachCopy(String type) {
|
|
579 |
|
|
580 |
//phone number
|
|
581 |
String id = getIdByValue(type);
|
|
582 |
if(id == null){
|
|
583 |
return false;
|
|
584 |
}
|
|
585 |
|
|
586 |
return id.contains(PHONE) || id.contains(NUMBER);
|
|
587 |
}
|
|
588 |
|
|
589 |
}
|