1 // ContactDataObject.h - Client Data Object header.
3 // (c) 2012-2015 Xestia Software Development.
5 // This file is part of Xestia Address Book.
7 // Xestia Address Book is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
11 // Xestia Address Book is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
19 #ifndef __CLIENTDATAOBJECT_H__
20 #define __CLIENTDATAOBJECT_H__
25 #include <wx/tokenzr.h>
27 #include "../vcard/vcard.h"
28 #include "../common/textprocessing.h"
30 enum ContactLoadStatus{
31 CONTACTLOAD_UNITTESTFAIL = -1,
33 CONTACTLOAD_FILEMISSING,
34 CONTACTLOAD_FILEERROR,
35 CONTACTLOAD_FILEINVALIDFORMAT,
36 CONTACTLOAD_FILEBASESPECFAIL
41 CONTACTKIND_INDIVIDUAL,
43 CONTACTKIND_ORGANISATION,
53 class ContactDataObject{
57 void ProcessKind(wxString KindData);
58 void ProcessRevision(wxString PropertySeg1, wxString PropertySeg2);
59 void ProcessSource(wxString PropertySeg1, wxString PropertySeg2, int *SourceCount);
60 void ProcessXML(wxString PropertySeg1, wxString PropertySeg2, int *XMLCount);
61 void ProcessMember(wxString PropertySeg1, wxString PropertySeg2, int *GroupCount);
62 void ProcessFN(wxString PropertySeg1, wxString PropertySeg2, int *FNCount);
63 void ProcessN(wxString PropertySeg1, wxString PropertySeg2);
64 void ProcessClientPIDMap(wxString PropertySeg1, wxString PropertySeg2, int *ClientPIDCount);
65 void ProcessNickname(wxString PropertySeg1, wxString PropertySeg2, int *NicknameCount);
66 void ProcessGender(wxString PropertySeg1, wxString PropertySeg2);
67 void ProcessBirthday(wxString PropertySeg1, wxString PropertySeg2);
68 void ProcessAnniversary(wxString PropertySeg1, wxString PropertySeg2);
69 void ProcessTimeZone(wxString PropertySeg1, wxString PropertySeg2, int *TimeZoneCount);
70 void ProcessAddress(wxString PropertySeg1, wxString PropertySeg2, int *AddressCount);
71 void ProcessEmail(wxString PropertySeg1, wxString PropertySeg2, int *EmailCount);
72 void ProcessIM(wxString PropertySeg1, wxString PropertySeg2, int *IMCount);
73 void ProcessTelephone(wxString PropertySeg1, wxString PropertySeg2, int *TelephoneCount);
74 void ProcessLanguage(wxString PropertySeg1, wxString PropertySeg2, int *LanguageCount);
75 void ProcessGeographic(wxString PropertySeg1, wxString PropertySeg2, int *GeographicCount);
76 void ProcessRelated(wxString PropertySeg1, wxString PropertySeg2, int *RelatedCount);
77 void ProcessURL(wxString PropertySeg1, wxString PropertySeg2, int *URLCount);
78 void ProcessTitle(wxString PropertySeg1, wxString PropertySeg2, int *TitleCount);
79 void ProcessRole(wxString PropertySeg1, wxString PropertySeg2, int *RoleCount);
80 void ProcessOrganisation(wxString PropertySeg1, wxString PropertySeg2, int *OrganisationCount);
81 void ProcessNote(wxString PropertySeg1, wxString PropertySeg2, int *NoteCount);
82 void ProcessCategory(wxString PropertySeg1, wxString PropertySeg2, int *CategoryCount);
83 void ProcessPhoto(wxString PropertySeg1, wxString PropertySeg2, int *PhotoCount);
84 void ProcessLogo(wxString PropertySeg1, wxString PropertySeg2, int *LogoCount);
85 void ProcessSound(wxString PropertySeg1, wxString PropertySeg2, int *SoundCount);
86 void ProcessCalendarURI(wxString PropertySeg1, wxString PropertySeg2, int *CalAdrCount);
87 void ProcessCalendarAddressURI(wxString PropertySeg1, wxString PropertySeg2, int *CalAdrURICount);
88 void ProcessCalendarFreeBusy(wxString PropertySeg1, wxString PropertySeg2, int *FreeBusyAddressCount);
89 void ProcessKey(wxString PropertySeg1, wxString PropertySeg2, int *KeyCount);
90 void ProcessVendor(wxString PropertySeg1, wxString PropertySeg2, int *VendorCount);
94 ContactKindType ContactKind = CONTACTKIND_NONE;
96 /* Items on General Tab */
99 wxString NameForename;
100 wxString NameSurname;
101 wxString NameOtherNames;
103 wxString NameNickname;
104 wxString NameDisplayAs;
105 wxString NameLanguage;
110 wxString BirthdayAltID;
111 wxString BirthdayCalScale;
112 wxString BirthdayTokens;
113 wxString Anniversary;
114 wxString AnniversaryAltID;
115 wxString AnniversaryCalScale;
116 wxString AnniversaryTokens;
119 wxString GenderDetails;
120 wxString GenderTokens;
124 wxString RevisionTokens;
126 std::map<int, wxString> SourceList;
127 std::map<int, wxString> SourceListAltID;
128 std::map<int, wxString> SourceListPID;
129 std::map<int, wxString> SourceListType;
130 std::map<int, wxString> SourceListTokens;
131 std::map<int, wxString> SourceListMediatype;
132 std::map<int, int> SourceListPref;
134 std::map<int, wxString> XMLList;
135 std::map<int, wxString> XMLListAltID;
137 std::map<int, wxString> ClientPIDList;
138 std::map<int, wxString> ClientPIDListTokens;
140 /* We don't use these at the moment but we want to keep
141 them for compatability reasons */
143 /*std::map<int, wxString> ExtraFullNames;*/
144 /*std::map<int, wxString> ExtraNicknames;*/
146 std::map<int, wxString> FullNamesList;
147 std::map<int, wxString> FullNamesListType;
148 std::map<int, wxString> FullNamesListLanguage;
149 std::map<int, wxString> FullNamesListAltID;
150 std::map<int, wxString> FullNamesListPID;
151 std::map<int, wxString> FullNamesListTokens;
152 std::map<int, int> FullNamesListPref;
154 std::map<int, wxString> GeneralNicknamesList;
155 std::map<int, wxString> GeneralNicknamesListType;
156 std::map<int, wxString> GeneralNicknamesListLanguage;
157 std::map<int, wxString> GeneralNicknamesListAltID;
158 std::map<int, wxString> GeneralNicknamesListPID;
159 std::map<int, wxString> GeneralNicknamesListTokens;
160 std::map<int, int> GeneralNicknamesListPref;
162 std::map<int, wxString> GeneralAddressList;
163 std::map<int, wxString> GeneralAddressListTown;
164 std::map<int, wxString> GeneralAddressListCounty;
165 std::map<int, wxString> GeneralAddressListPostCode;
166 std::map<int, wxString> GeneralAddressListCountry;
167 std::map<int, wxString> GeneralAddressListLabel;
168 std::map<int, wxString> GeneralAddressListLang;
169 std::map<int, wxString> GeneralAddressListAltID;
170 std::map<int, wxString> GeneralAddressListPID;
171 std::map<int, wxString> GeneralAddressListTokens;
172 std::map<int, wxString> GeneralAddressListGeo;
173 std::map<int, wxString> GeneralAddressListTimezone;
174 std::map<int, wxString> GeneralAddressListType;
175 std::map<int, wxString> GeneralAddressListMediatype;
176 std::map<int, int> GeneralAddressListPref;
178 std::map<int, wxString> GeneralEmailList;
179 std::map<int, wxString> GeneralEmailListAltID;
180 std::map<int, wxString> GeneralEmailListPID;
181 std::map<int, wxString> GeneralEmailListType;
182 std::map<int, wxString> GeneralEmailListTokens;
183 std::map<int, int> GeneralEmailListPref;
185 std::map<int, wxString> GeneralIMList;
186 std::map<int, wxString> GeneralIMListAltID;
187 std::map<int, wxString> GeneralIMListPID;
188 std::map<int, wxString> GeneralIMListType;
189 std::map<int, wxString> GeneralIMListTokens;
190 std::map<int, wxString> GeneralIMListMediatype;
191 std::map<int, int> GeneralIMListPref;
193 std::map<int, wxString> GeneralTelephoneList;
194 std::map<int, wxString> GeneralTelephoneListAltID;
195 std::map<int, wxString> GeneralTelephoneListPID;
196 std::map<int, wxString> GeneralTelephoneListType;
197 std::map<int, wxString> GeneralTelephoneListTokens;
198 std::map<int, wxString> GeneralTelephoneListTypeInfo;
199 std::map<int, int> GeneralTelephoneListPref;
201 std::map<int, wxString> GeneralLanguageList;
202 std::map<int, wxString> GeneralLanguageListAltID;
203 std::map<int, wxString> GeneralLanguageListPID;
204 std::map<int, wxString> GeneralLanguageListType;
205 std::map<int, wxString> GeneralLanguageListTokens;
206 std::map<int, int> GeneralLanguageListPref;
208 std::map<int, wxString> GeneralTZList;
209 std::map<int, wxString> GeneralTZListAltID;
210 std::map<int, wxString> GeneralTZListPID;
211 std::map<int, wxString> GeneralTZListType;
212 std::map<int, wxString> GeneralTZListTokens;
213 std::map<int, wxString> GeneralTZListMediatype;
214 std::map<int, int> GeneralTZListPref;
216 std::map<int, wxString> GeneralGeographyList;
217 std::map<int, wxString> GeneralGeographyListAltID;
218 std::map<int, wxString> GeneralGeographyListPID;
219 std::map<int, wxString> GeneralGeographyListType;
220 std::map<int, wxString> GeneralGeographyListTokens;
221 std::map<int, wxString> GeneralGeographyListMediatype;
222 std::map<int, int> GeneralGeographyListPref;
224 std::map<int, wxString> GeneralRelatedList;
225 std::map<int, wxString> GeneralRelatedListRelType;
226 std::map<int, wxString> GeneralRelatedListLanguage;
227 std::map<int, wxString> GeneralRelatedListAltID;
228 std::map<int, wxString> GeneralRelatedListPID;
229 std::map<int, wxString> GeneralRelatedListType;
230 std::map<int, wxString> GeneralRelatedListTokens;
231 std::map<int, int> GeneralRelatedListPref;
233 std::map<int, wxString> GeneralWebsiteList;
234 std::map<int, wxString> GeneralWebsiteListAltID;
235 std::map<int, wxString> GeneralWebsiteListPID;
236 std::map<int, wxString> GeneralWebsiteListType;
237 std::map<int, wxString> GeneralWebsiteListTokens;
238 std::map<int, wxString> GeneralWebsiteListMediatype;
239 std::map<int, int> GeneralWebsiteListPref;
241 std::map<int, wxString> GeneralTitleList;
242 std::map<int, wxString> GeneralTitleListLanguage;
243 std::map<int, wxString> GeneralTitleListAltID;
244 std::map<int, wxString> GeneralTitleListPID;
245 std::map<int, wxString> GeneralTitleListType;
246 std::map<int, wxString> GeneralTitleListTokens;
247 std::map<int, int> GeneralTitleListPref;
249 std::map<int, wxString> GeneralRoleList;
250 std::map<int, wxString> GeneralRoleListLanguage;
251 std::map<int, wxString> GeneralRoleListAltID;
252 std::map<int, wxString> GeneralRoleListPID;
253 std::map<int, wxString> GeneralRoleListType;
254 std::map<int, wxString> GeneralRoleListTokens;
255 std::map<int, int> GeneralRoleListPref;
257 std::map<int, wxString> GeneralOrganisationsList;
258 std::map<int, wxString> GeneralOrganisationsListLanguage;
259 std::map<int, wxString> GeneralOrganisationsListAltID;
260 std::map<int, wxString> GeneralOrganisationsListPID;
261 std::map<int, wxString> GeneralOrganisationsListType;
262 std::map<int, wxString> GeneralOrganisationsListTokens;
263 std::map<int, wxString> GeneralOrganisationsListSortAs;
264 std::map<int, int> GeneralOrganisationsListPref;
266 std::map<int, wxString> GeneralNoteList;
267 std::map<int, wxString> GeneralNoteListLanguage;
268 std::map<int, wxString> GeneralNoteListAltID;
269 std::map<int, wxString> GeneralNoteListPID;
270 std::map<int, wxString> GeneralNoteListType;
271 std::map<int, wxString> GeneralNoteListTokens;
272 std::map<int, int> GeneralNoteListPref;
274 /* Items on Home Tab */
276 std::map<int, wxString> HomeNicknamesList;
277 std::map<int, wxString> HomeNicknamesListType;
278 std::map<int, wxString> HomeNicknamesListLanguage;
279 std::map<int, wxString> HomeNicknamesListAltID;
280 std::map<int, wxString> HomeNicknamesListPID;
281 std::map<int, wxString> HomeNicknamesListTokens;
282 std::map<int, int> HomeNicknamesListPref;
284 std::map<int, wxString> HomeAddressList;
285 std::map<int, wxString> HomeAddressListTown;
286 std::map<int, wxString> HomeAddressListCounty;
287 std::map<int, wxString> HomeAddressListPostCode;
288 std::map<int, wxString> HomeAddressListCountry;
289 std::map<int, wxString> HomeAddressListLabel;
290 std::map<int, wxString> HomeAddressListLang;
291 std::map<int, wxString> HomeAddressListAltID;
292 std::map<int, wxString> HomeAddressListPID;
293 std::map<int, wxString> HomeAddressListTokens;
294 std::map<int, wxString> HomeAddressListGeo;
295 std::map<int, wxString> HomeAddressListTimezone;
296 std::map<int, wxString> HomeAddressListType;
297 std::map<int, wxString> HomeAddressListMediatype;
298 std::map<int, int> HomeAddressListPref;
300 std::map<int, wxString> HomeEmailList;
301 std::map<int, wxString> HomeEmailListAltID;
302 std::map<int, wxString> HomeEmailListPID;
303 std::map<int, wxString> HomeEmailListType;
304 std::map<int, wxString> HomeEmailListTokens;
305 std::map<int, int> HomeEmailListPref;
307 std::map<int, wxString> HomeIMList;
308 std::map<int, wxString> HomeIMListAltID;
309 std::map<int, wxString> HomeIMListPID;
310 std::map<int, wxString> HomeIMListType;
311 std::map<int, wxString> HomeIMListTokens;
312 std::map<int, wxString> HomeIMListMediatype;
313 std::map<int, int> HomeIMListPref;
315 std::map<int, wxString> HomeTelephoneList;
316 std::map<int, wxString> HomeTelephoneListAltID;
317 std::map<int, wxString> HomeTelephoneListPID;
318 std::map<int, wxString> HomeTelephoneListType;
319 std::map<int, wxString> HomeTelephoneListTokens;
320 std::map<int, wxString> HomeTelephoneListTypeInfo;
321 std::map<int, int> HomeTelephoneListPref;
323 std::map<int, wxString> HomeLanguageList;
324 std::map<int, wxString> HomeLanguageListAltID;
325 std::map<int, wxString> HomeLanguageListPID;
326 std::map<int, wxString> HomeLanguageListType;
327 std::map<int, wxString> HomeLanguageListTokens;
328 std::map<int, int> HomeLanguageListPref;
330 std::map<int, wxString> HomeTZList;
331 std::map<int, wxString> HomeTZListAltID;
332 std::map<int, wxString> HomeTZListPID;
333 std::map<int, wxString> HomeTZListType;
334 std::map<int, wxString> HomeTZListTokens;
335 std::map<int, wxString> HomeTZListMediatype;
336 std::map<int, int> HomeTZListPref;
338 std::map<int, wxString> HomeGeographyList;
339 std::map<int, wxString> HomeGeographyListAltID;
340 std::map<int, wxString> HomeGeographyListPID;
341 std::map<int, wxString> HomeGeographyListType;
342 std::map<int, wxString> HomeGeographyListTokens;
343 std::map<int, wxString> HomeGeographyListMediatype;
344 std::map<int, int> HomeGeographyListPref;
346 std::map<int, wxString> HomeWebsiteList;
347 std::map<int, wxString> HomeWebsiteListAltID;
348 std::map<int, wxString> HomeWebsiteListPID;
349 std::map<int, wxString> HomeWebsiteListType;
350 std::map<int, wxString> HomeWebsiteListTokens;
351 std::map<int, wxString> HomeWebsiteListMediatype;
352 std::map<int, int> HomeWebsiteListPref;
354 std::map<int, wxString> HomeTitleList;
355 std::map<int, wxString> HomeTitleListLanguage;
356 std::map<int, wxString> HomeTitleListAltID;
357 std::map<int, wxString> HomeTitleListPID;
358 std::map<int, wxString> HomeTitleListType;
359 std::map<int, wxString> HomeTitleListTokens;
360 std::map<int, int> HomeTitleListPref;
362 std::map<int, wxString> HomeRoleList;
363 std::map<int, wxString> HomeRoleListLanguage;
364 std::map<int, wxString> HomeRoleListAltID;
365 std::map<int, wxString> HomeRoleListPID;
366 std::map<int, wxString> HomeRoleListType;
367 std::map<int, wxString> HomeRoleListTokens;
368 std::map<int, int> HomeRoleListPref;
370 std::map<int, wxString> HomeOrganisationsList;
371 std::map<int, wxString> HomeOrganisationsListLanguage;
372 std::map<int, wxString> HomeOrganisationsListAltID;
373 std::map<int, wxString> HomeOrganisationsListPID;
374 std::map<int, wxString> HomeOrganisationsListType;
375 std::map<int, wxString> HomeOrganisationsListTokens;
376 std::map<int, wxString> HomeOrganisationsListSortAs;
377 std::map<int, int> HomeOrganisationsListPref;
379 std::map<int, wxString> HomeNoteList;
380 std::map<int, wxString> HomeNoteListLanguage;
381 std::map<int, wxString> HomeNoteListAltID;
382 std::map<int, wxString> HomeNoteListPID;
383 std::map<int, wxString> HomeNoteListType;
384 std::map<int, wxString> HomeNoteListTokens;
385 std::map<int, int> HomeNoteListPref;
387 /* Items on the Business tab */
389 std::map<int, wxString> BusinessNicknamesList;
390 std::map<int, wxString> BusinessNicknamesListType;
391 std::map<int, wxString> BusinessNicknamesListLanguage;
392 std::map<int, wxString> BusinessNicknamesListAltID;
393 std::map<int, wxString> BusinessNicknamesListPID;
394 std::map<int, wxString> BusinessNicknamesListTokens;
395 std::map<int, int> BusinessNicknamesListPref;
397 std::map<int, wxString> BusinessAddressList;
398 std::map<int, wxString> BusinessAddressListTown;
399 std::map<int, wxString> BusinessAddressListCounty;
400 std::map<int, wxString> BusinessAddressListPostCode;
401 std::map<int, wxString> BusinessAddressListCountry;
402 std::map<int, wxString> BusinessAddressListLabel;
403 std::map<int, wxString> BusinessAddressListLang;
404 std::map<int, wxString> BusinessAddressListAltID;
405 std::map<int, wxString> BusinessAddressListPID;
406 std::map<int, wxString> BusinessAddressListTokens;
407 std::map<int, wxString> BusinessAddressListGeo;
408 std::map<int, wxString> BusinessAddressListTimezone;
409 std::map<int, wxString> BusinessAddressListType;
410 std::map<int, wxString> BusinessAddressListMediatype;
411 std::map<int, int> BusinessAddressListPref;
413 std::map<int, wxString> BusinessEmailList;
414 std::map<int, wxString> BusinessEmailListAltID;
415 std::map<int, wxString> BusinessEmailListPID;
416 std::map<int, wxString> BusinessEmailListType;
417 std::map<int, wxString> BusinessEmailListTokens;
418 std::map<int, int> BusinessEmailListPref;
420 std::map<int, wxString> BusinessIMList;
421 std::map<int, wxString> BusinessIMListAltID;
422 std::map<int, wxString> BusinessIMListPID;
423 std::map<int, wxString> BusinessIMListType;
424 std::map<int, wxString> BusinessIMListTokens;
425 std::map<int, wxString> BusinessIMListMediatype;
426 std::map<int, int> BusinessIMListPref;
428 std::map<int, wxString> BusinessTelephoneList;
429 std::map<int, wxString> BusinessTelephoneListAltID;
430 std::map<int, wxString> BusinessTelephoneListPID;
431 std::map<int, wxString> BusinessTelephoneListType;
432 std::map<int, wxString> BusinessTelephoneListTypeInfo;
433 std::map<int, wxString> BusinessTelephoneListTokens;
434 std::map<int, int> BusinessTelephoneListPref;
436 std::map<int, wxString> BusinessLanguageList;
437 std::map<int, wxString> BusinessLanguageListAltID;
438 std::map<int, wxString> BusinessLanguageListPID;
439 std::map<int, wxString> BusinessLanguageListType;
440 std::map<int, wxString> BusinessLanguageListTokens;
441 std::map<int, int> BusinessLanguageListPref;
443 std::map<int, wxString> BusinessTZList;
444 std::map<int, wxString> BusinessTZListAltID;
445 std::map<int, wxString> BusinessTZListPID;
446 std::map<int, wxString> BusinessTZListType;
447 std::map<int, wxString> BusinessTZListTokens;
448 std::map<int, wxString> BusinessTZListMediatype;
449 std::map<int, int> BusinessTZListPref;
451 std::map<int, wxString> BusinessGeographyList;
452 std::map<int, wxString> BusinessGeographyListAltID;
453 std::map<int, wxString> BusinessGeographyListPID;
454 std::map<int, wxString> BusinessGeographyListType;
455 std::map<int, wxString> BusinessGeographyListTokens;
456 std::map<int, wxString> BusinessGeographyListMediatype;
457 std::map<int, int> BusinessGeographyListPref;
459 std::map<int, wxString> BusinessWebsiteList;
460 std::map<int, wxString> BusinessWebsiteListAltID;
461 std::map<int, wxString> BusinessWebsiteListPID;
462 std::map<int, wxString> BusinessWebsiteListType;
463 std::map<int, wxString> BusinessWebsiteListTokens;
464 std::map<int, wxString> BusinessWebsiteListMediatype;
465 std::map<int, int> BusinessWebsiteListPref;
467 std::map<int, wxString> BusinessTitleList;
468 std::map<int, wxString> BusinessTitleListLanguage;
469 std::map<int, wxString> BusinessTitleListAltID;
470 std::map<int, wxString> BusinessTitleListPID;
471 std::map<int, wxString> BusinessTitleListType;
472 std::map<int, wxString> BusinessTitleListTokens;
473 std::map<int, int> BusinessTitleListPref;
475 std::map<int, wxString> BusinessRoleList;
476 std::map<int, wxString> BusinessRoleListLanguage;
477 std::map<int, wxString> BusinessRoleListAltID;
478 std::map<int, wxString> BusinessRoleListPID;
479 std::map<int, wxString> BusinessRoleListType;
480 std::map<int, wxString> BusinessRoleListTokens;
481 std::map<int, int> BusinessRoleListPref;
483 std::map<int, wxString> BusinessOrganisationsList;
484 std::map<int, wxString> BusinessOrganisationsListLanguage;
485 std::map<int, wxString> BusinessOrganisationsListAltID;
486 std::map<int, wxString> BusinessOrganisationsListPID;
487 std::map<int, wxString> BusinessOrganisationsListType;
488 std::map<int, wxString> BusinessOrganisationsListTokens;
489 std::map<int, wxString> BusinessOrganisationsListSortAs;
490 std::map<int, int> BusinessOrganisationsListPref;
492 std::map<int, wxString> BusinessNoteList;
493 std::map<int, wxString> BusinessNoteListLanguage;
494 std::map<int, wxString> BusinessNoteListAltID;
495 std::map<int, wxString> BusinessNoteListPID;
496 std::map<int, wxString> BusinessNoteListType;
497 std::map<int, wxString> BusinessNoteListTokens;
498 std::map<int, int> BusinessNoteListPref;
500 /* Items on the Categories tab */
502 std::map<int, wxString> CategoriesList;
503 std::map<int, wxString> CategoriesListAltID;
504 std::map<int, wxString> CategoriesListPID;
505 std::map<int, wxString> CategoriesListType;
506 std::map<int, wxString> CategoriesListTokens;
507 std::map<int, wxString> CategoriesListLanguage;
508 std::map<int, int> CategoriesListPref;
510 /* Items on the Groups tab */
512 std::map<int, wxString> GroupsList;
513 std::map<int, wxString> GroupsListAltID;
514 std::map<int, wxString> GroupsListPID;
515 std::map<int, wxString> GroupsListType;
516 std::map<int, wxString> GroupsListMediaType;
517 std::map<int, wxString> GroupsListTokens;
518 std::map<int, int> GroupsListPref;
520 /* Items on the Pictures tab */
522 std::map<int, std::string> PicturesList;
523 std::map<int, wxString> PicturesListAltID;
524 std::map<int, wxString> PicturesListPID;
525 std::map<int, wxString> PicturesListType;
526 std::map<int, wxString> PicturesListPicEncType;
527 std::map<int, wxString> PicturesListPictureType;
528 std::map<int, wxString> PicturesListTokens;
529 std::map<int, wxString> PicturesListMediatype;
530 std::map<int, int> PicturesListPref;
532 /* Items on the Logos tab */
534 std::map<int, std::string> LogosList;
535 std::map<int, wxString> LogosListAltID;
536 std::map<int, wxString> LogosListPID;
537 std::map<int, wxString> LogosListType;
538 std::map<int, wxString> LogosListPicEncType;
539 std::map<int, wxString> LogosListPictureType;
540 std::map<int, wxString> LogosListTokens;
541 std::map<int, wxString> LogosListMediatype;
542 std::map<int, int> LogosListPref;
544 /* Items on the Sounds tab */
546 std::map<int, std::string> SoundsList;
547 std::map<int, wxString> SoundsListAltID;
548 std::map<int, wxString> SoundsListPID;
549 std::map<int, wxString> SoundsListType;
550 std::map<int, wxString> SoundsListAudioEncType;
551 std::map<int, wxString> SoundsListAudioType;
552 std::map<int, wxString> SoundsListTokens;
553 std::map<int, wxString> SoundsListMediatype;
554 std::map<int, wxString> SoundsListLanguage;
555 std::map<int, int> SoundsListPref;
557 /* Items on the Calendaring tab */
559 std::map<int, wxString> CalendarList;
560 std::map<int, wxString> CalendarListAltID;
561 std::map<int, wxString> CalendarListPID;
562 std::map<int, wxString> CalendarListType;
563 std::map<int, wxString> CalendarListTokens;
564 std::map<int, wxString> CalendarListMediatype;
565 std::map<int, int> CalendarListPref;
567 std::map<int, wxString> CalendarRequestList;
568 std::map<int, wxString> CalendarRequestListAltID;
569 std::map<int, wxString> CalendarRequestListPID;
570 std::map<int, wxString> CalendarRequestListType;
571 std::map<int, wxString> CalendarRequestListTokens;
572 std::map<int, wxString> CalendarRequestListMediatype;
573 std::map<int, int> CalendarRequestListPref;
575 std::map<int, wxString> FreeBusyList;
576 std::map<int, wxString> FreeBusyListAltID;
577 std::map<int, wxString> FreeBusyListPID;
578 std::map<int, wxString> FreeBusyListType;
579 std::map<int, wxString> FreeBusyListTokens;
580 std::map<int, wxString> FreeBusyListMediatype;
581 std::map<int, int> FreeBusyListPref;
583 /* Items on the Security tab */
585 std::map<int, wxString> KeyList;
586 std::map<int, wxString> KeyListAltID;
587 std::map<int, wxString> KeyListPID;
588 std::map<int, bool> KeyListKeyType;
589 std::map<int, wxString> KeyListDataType;
590 std::map<int, wxString> KeyListDataEncType;
591 std::map<int, wxString> KeyListType;
592 std::map<int, wxString> KeyListTokens;
593 std::map<int, int> KeyListPref;
595 /* Items on the Other tab */
597 std::map<int, wxString> VendorList;
598 std::map<int, wxString> VendorListPEN;
599 std::map<int, wxString> VendorListElement;
601 std::map<int, wxString> XTokenList;
602 std::map<int, wxString> XTokenListTokens;
606 ContactLoadStatus LoadFile(wxString Filename);
610 void SplitValues(wxString *PropertyLine,
611 std::map<int,int> *SplitPoints,
612 std::map<int,int> *SplitLength,
615 void CheckType(wxString *PropertySeg1,
616 std::map<int,int> *SplitPoints,
617 std::map<int,int> *SplitLength,
619 PropertyType *intType);
621 void ProcessIntegerValue(wxString *PropertyName,
622 wxString PropertyNameMatch,
623 std::map<int,int> *PrefPtr,
624 wxString *PropertyValue,
626 bool *PropertyMatched);
628 void ProcessIntegerValue(std::map<int,int> *PrefPtr,
629 wxString *PropertyValue,
632 void ProcessStringValue(wxString *PropertyName,
633 wxString PropertyNameMatch,
634 std::map<int,wxString> *MapPtr,
635 wxString *PropertyValue,
637 bool *PropertyMatched);