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 ProcessSource(wxString PropertySeg1, wxString PropertySeg2, int *SourceCount);
59 void ProcessXML(wxString PropertySeg1, wxString PropertySeg2, int *XMLCount);
60 void ProcessMember(wxString PropertySeg1, wxString PropertySeg2, int *GroupCount);
61 void ProcessFN(wxString PropertySeg1, wxString PropertySeg2, int *FNCount);
62 void ProcessN(wxString PropertySeg1, wxString PropertySeg2);
63 void ProcessNickname(wxString PropertySeg1, wxString PropertySeg2, int *NicknameCount);
64 void ProcessGender(wxString PropertySeg1, wxString PropertySeg2);
65 void ProcessBirthday(wxString PropertySeg1, wxString PropertySeg2);
66 void ProcessAnniversary(wxString PropertySeg1, wxString PropertySeg2);
67 void ProcessTimeZone(wxString PropertySeg1, wxString PropertySeg2, int *TimeZoneCount);
68 void ProcessAddress(wxString PropertySeg1, wxString PropertySeg2, int *AddressCount);
69 void ProcessEmail(wxString PropertySeg1, wxString PropertySeg2, int *EmailCount);
70 void ProcessIM(wxString PropertySeg1, wxString PropertySeg2, int *IMCount);
71 void ProcessTelephone(wxString PropertySeg1, wxString PropertySeg2, int *TelephoneCount);
72 void ProcessLanguage(wxString PropertySeg1, wxString PropertySeg2, int *LanguageCount);
73 void ProcessGeographic(wxString PropertySeg1, wxString PropertySeg2, int *GeographicCount);
74 void ProcessRelated(wxString PropertySeg1, wxString PropertySeg2, int *RelatedCount);
75 void ProcessURL(wxString PropertySeg1, wxString PropertySeg2, int *URLCount);
76 void ProcessTitle(wxString PropertySeg1, wxString PropertySeg2, int *TitleCount);
77 void ProcessRole(wxString PropertySeg1, wxString PropertySeg2, int *RoleCount);
78 void ProcessOrganisation(wxString PropertySeg1, wxString PropertySeg2, int *OrganisationCount);
79 void ProcessNote(wxString PropertySeg1, wxString PropertySeg2, int *NoteCount);
80 void ProcessCategory(wxString PropertySeg1, wxString PropertySeg2, int *CategoryCount);
81 void ProcessPhoto(wxString PropertySeg1, wxString PropertySeg2, int *PhotoCount);
82 void ProcessLogo(wxString PropertySeg1, wxString PropertySeg2, int *LogoCount);
83 void ProcessSound(wxString PropertySeg1, wxString PropertySeg2, int *SoundCount);
84 void ProcessCalendarURI(wxString PropertySeg1, wxString PropertySeg2, int *CalAdrCount);
85 void ProcessCalendarAddressURI(wxString PropertySeg1, wxString PropertySeg2, int *CalAdrURICount);
86 void ProcessCalendarFreeBusy(wxString PropertySeg1, wxString PropertySeg2, int *FreeBusyAddressCount);
87 void ProcessKey(wxString PropertySeg1, wxString PropertySeg2, int *KeyCount);
88 void ProcessVendor(wxString PropertySeg1, wxString PropertySeg2, int *VendorCount);
92 ContactKindType ContactKind = CONTACTKIND_NONE;
94 /* Items on General Tab */
97 wxString NameForename;
99 wxString NameOtherNames;
101 wxString NameNickname;
102 wxString NameDisplayAs;
103 wxString NameLanguage;
108 wxString BirthdayAltID;
109 wxString BirthdayCalScale;
110 wxString BirthdayTokens;
111 wxString Anniversary;
112 wxString AnniversaryAltID;
113 wxString AnniversaryCalScale;
114 wxString AnniversaryTokens;
117 wxString GenderDetails;
118 wxString GenderTokens;
122 std::map<int, wxString> SourceList;
123 std::map<int, wxString> SourceListAltID;
124 std::map<int, wxString> SourceListPID;
125 std::map<int, wxString> SourceListType;
126 std::map<int, wxString> SourceListTokens;
127 std::map<int, wxString> SourceListMediatype;
128 std::map<int, int> SourceListPref;
130 std::map<int, wxString> XMLList;
131 std::map<int, wxString> XMLListAltID;
133 /* We don't use these at the moment but we want to keep
134 them for compatability reasons */
136 /*std::map<int, wxString> ExtraFullNames;*/
137 /*std::map<int, wxString> ExtraNicknames;*/
139 std::map<int, wxString> FullNamesList;
140 std::map<int, wxString> FullNamesListType;
141 std::map<int, wxString> FullNamesListLanguage;
142 std::map<int, wxString> FullNamesListAltID;
143 std::map<int, wxString> FullNamesListPID;
144 std::map<int, wxString> FullNamesListTokens;
145 std::map<int, int> FullNamesListPref;
147 std::map<int, wxString> GeneralNicknamesList;
148 std::map<int, wxString> GeneralNicknamesListType;
149 std::map<int, wxString> GeneralNicknamesListLanguage;
150 std::map<int, wxString> GeneralNicknamesListAltID;
151 std::map<int, wxString> GeneralNicknamesListPID;
152 std::map<int, wxString> GeneralNicknamesListTokens;
153 std::map<int, int> GeneralNicknamesListPref;
155 std::map<int, wxString> GeneralAddressList;
156 std::map<int, wxString> GeneralAddressListTown;
157 std::map<int, wxString> GeneralAddressListCounty;
158 std::map<int, wxString> GeneralAddressListPostCode;
159 std::map<int, wxString> GeneralAddressListCountry;
160 std::map<int, wxString> GeneralAddressListLabel;
161 std::map<int, wxString> GeneralAddressListLang;
162 std::map<int, wxString> GeneralAddressListAltID;
163 std::map<int, wxString> GeneralAddressListPID;
164 std::map<int, wxString> GeneralAddressListTokens;
165 std::map<int, wxString> GeneralAddressListGeo;
166 std::map<int, wxString> GeneralAddressListTimezone;
167 std::map<int, wxString> GeneralAddressListType;
168 std::map<int, wxString> GeneralAddressListMediatype;
169 std::map<int, int> GeneralAddressListPref;
171 std::map<int, wxString> GeneralEmailList;
172 std::map<int, wxString> GeneralEmailListAltID;
173 std::map<int, wxString> GeneralEmailListPID;
174 std::map<int, wxString> GeneralEmailListType;
175 std::map<int, wxString> GeneralEmailListTokens;
176 std::map<int, int> GeneralEmailListPref;
178 std::map<int, wxString> GeneralIMList;
179 std::map<int, wxString> GeneralIMListAltID;
180 std::map<int, wxString> GeneralIMListPID;
181 std::map<int, wxString> GeneralIMListType;
182 std::map<int, wxString> GeneralIMListTokens;
183 std::map<int, wxString> GeneralIMListMediatype;
184 std::map<int, int> GeneralIMListPref;
186 std::map<int, wxString> GeneralTelephoneList;
187 std::map<int, wxString> GeneralTelephoneListAltID;
188 std::map<int, wxString> GeneralTelephoneListPID;
189 std::map<int, wxString> GeneralTelephoneListType;
190 std::map<int, wxString> GeneralTelephoneListTokens;
191 std::map<int, wxString> GeneralTelephoneListTypeInfo;
192 std::map<int, int> GeneralTelephoneListPref;
194 std::map<int, wxString> GeneralLanguageList;
195 std::map<int, wxString> GeneralLanguageListAltID;
196 std::map<int, wxString> GeneralLanguageListPID;
197 std::map<int, wxString> GeneralLanguageListType;
198 std::map<int, wxString> GeneralLanguageListTokens;
199 std::map<int, int> GeneralLanguageListPref;
201 std::map<int, wxString> GeneralTZList;
202 std::map<int, wxString> GeneralTZListAltID;
203 std::map<int, wxString> GeneralTZListPID;
204 std::map<int, wxString> GeneralTZListType;
205 std::map<int, wxString> GeneralTZListTokens;
206 std::map<int, wxString> GeneralTZListMediatype;
207 std::map<int, int> GeneralTZListPref;
209 std::map<int, wxString> GeneralGeographyList;
210 std::map<int, wxString> GeneralGeographyListAltID;
211 std::map<int, wxString> GeneralGeographyListPID;
212 std::map<int, wxString> GeneralGeographyListType;
213 std::map<int, wxString> GeneralGeographyListTokens;
214 std::map<int, wxString> GeneralGeographyListMediatype;
215 std::map<int, int> GeneralGeographyListPref;
217 std::map<int, wxString> GeneralRelatedList;
218 std::map<int, wxString> GeneralRelatedListRelType;
219 std::map<int, wxString> GeneralRelatedListLanguage;
220 std::map<int, wxString> GeneralRelatedListAltID;
221 std::map<int, wxString> GeneralRelatedListPID;
222 std::map<int, wxString> GeneralRelatedListType;
223 std::map<int, wxString> GeneralRelatedListTokens;
224 std::map<int, int> GeneralRelatedListPref;
226 std::map<int, wxString> GeneralWebsiteList;
227 std::map<int, wxString> GeneralWebsiteListAltID;
228 std::map<int, wxString> GeneralWebsiteListPID;
229 std::map<int, wxString> GeneralWebsiteListType;
230 std::map<int, wxString> GeneralWebsiteListTokens;
231 std::map<int, wxString> GeneralWebsiteListMediatype;
232 std::map<int, int> GeneralWebsiteListPref;
234 std::map<int, wxString> GeneralTitleList;
235 std::map<int, wxString> GeneralTitleListLanguage;
236 std::map<int, wxString> GeneralTitleListAltID;
237 std::map<int, wxString> GeneralTitleListPID;
238 std::map<int, wxString> GeneralTitleListType;
239 std::map<int, wxString> GeneralTitleListTokens;
240 std::map<int, int> GeneralTitleListPref;
242 std::map<int, wxString> GeneralRoleList;
243 std::map<int, wxString> GeneralRoleListLanguage;
244 std::map<int, wxString> GeneralRoleListAltID;
245 std::map<int, wxString> GeneralRoleListPID;
246 std::map<int, wxString> GeneralRoleListType;
247 std::map<int, wxString> GeneralRoleListTokens;
248 std::map<int, int> GeneralRoleListPref;
250 std::map<int, wxString> GeneralOrganisationsList;
251 std::map<int, wxString> GeneralOrganisationsListLanguage;
252 std::map<int, wxString> GeneralOrganisationsListAltID;
253 std::map<int, wxString> GeneralOrganisationsListPID;
254 std::map<int, wxString> GeneralOrganisationsListType;
255 std::map<int, wxString> GeneralOrganisationsListTokens;
256 std::map<int, wxString> GeneralOrganisationsListSortAs;
257 std::map<int, int> GeneralOrganisationsListPref;
259 std::map<int, wxString> GeneralNoteList;
260 std::map<int, wxString> GeneralNoteListLanguage;
261 std::map<int, wxString> GeneralNoteListAltID;
262 std::map<int, wxString> GeneralNoteListPID;
263 std::map<int, wxString> GeneralNoteListType;
264 std::map<int, wxString> GeneralNoteListTokens;
265 std::map<int, int> GeneralNoteListPref;
267 /* Items on Home Tab */
269 std::map<int, wxString> HomeNicknamesList;
270 std::map<int, wxString> HomeNicknamesListType;
271 std::map<int, wxString> HomeNicknamesListLanguage;
272 std::map<int, wxString> HomeNicknamesListAltID;
273 std::map<int, wxString> HomeNicknamesListPID;
274 std::map<int, wxString> HomeNicknamesListTokens;
275 std::map<int, int> HomeNicknamesListPref;
277 std::map<int, wxString> HomeAddressList;
278 std::map<int, wxString> HomeAddressListTown;
279 std::map<int, wxString> HomeAddressListCounty;
280 std::map<int, wxString> HomeAddressListPostCode;
281 std::map<int, wxString> HomeAddressListCountry;
282 std::map<int, wxString> HomeAddressListLabel;
283 std::map<int, wxString> HomeAddressListLang;
284 std::map<int, wxString> HomeAddressListAltID;
285 std::map<int, wxString> HomeAddressListPID;
286 std::map<int, wxString> HomeAddressListTokens;
287 std::map<int, wxString> HomeAddressListGeo;
288 std::map<int, wxString> HomeAddressListTimezone;
289 std::map<int, wxString> HomeAddressListType;
290 std::map<int, wxString> HomeAddressListMediatype;
291 std::map<int, int> HomeAddressListPref;
293 std::map<int, wxString> HomeEmailList;
294 std::map<int, wxString> HomeEmailListAltID;
295 std::map<int, wxString> HomeEmailListPID;
296 std::map<int, wxString> HomeEmailListType;
297 std::map<int, wxString> HomeEmailListTokens;
298 std::map<int, int> HomeEmailListPref;
300 std::map<int, wxString> HomeIMList;
301 std::map<int, wxString> HomeIMListAltID;
302 std::map<int, wxString> HomeIMListPID;
303 std::map<int, wxString> HomeIMListType;
304 std::map<int, wxString> HomeIMListTokens;
305 std::map<int, wxString> HomeIMListMediatype;
306 std::map<int, int> HomeIMListPref;
308 std::map<int, wxString> HomeTelephoneList;
309 std::map<int, wxString> HomeTelephoneListAltID;
310 std::map<int, wxString> HomeTelephoneListPID;
311 std::map<int, wxString> HomeTelephoneListType;
312 std::map<int, wxString> HomeTelephoneListTokens;
313 std::map<int, wxString> HomeTelephoneListTypeInfo;
314 std::map<int, int> HomeTelephoneListPref;
316 std::map<int, wxString> HomeLanguageList;
317 std::map<int, wxString> HomeLanguageListAltID;
318 std::map<int, wxString> HomeLanguageListPID;
319 std::map<int, wxString> HomeLanguageListType;
320 std::map<int, wxString> HomeLanguageListTokens;
321 std::map<int, int> HomeLanguageListPref;
323 std::map<int, wxString> HomeTZList;
324 std::map<int, wxString> HomeTZListAltID;
325 std::map<int, wxString> HomeTZListPID;
326 std::map<int, wxString> HomeTZListType;
327 std::map<int, wxString> HomeTZListTokens;
328 std::map<int, wxString> HomeTZListMediatype;
329 std::map<int, int> HomeTZListPref;
331 std::map<int, wxString> HomeGeographyList;
332 std::map<int, wxString> HomeGeographyListAltID;
333 std::map<int, wxString> HomeGeographyListPID;
334 std::map<int, wxString> HomeGeographyListType;
335 std::map<int, wxString> HomeGeographyListTokens;
336 std::map<int, wxString> HomeGeographyListMediatype;
337 std::map<int, int> HomeGeographyListPref;
339 std::map<int, wxString> HomeWebsiteList;
340 std::map<int, wxString> HomeWebsiteListAltID;
341 std::map<int, wxString> HomeWebsiteListPID;
342 std::map<int, wxString> HomeWebsiteListType;
343 std::map<int, wxString> HomeWebsiteListTokens;
344 std::map<int, wxString> HomeWebsiteListMediatype;
345 std::map<int, int> HomeWebsiteListPref;
347 std::map<int, wxString> HomeTitleList;
348 std::map<int, wxString> HomeTitleListLanguage;
349 std::map<int, wxString> HomeTitleListAltID;
350 std::map<int, wxString> HomeTitleListPID;
351 std::map<int, wxString> HomeTitleListType;
352 std::map<int, wxString> HomeTitleListTokens;
353 std::map<int, int> HomeTitleListPref;
355 std::map<int, wxString> HomeRoleList;
356 std::map<int, wxString> HomeRoleListLanguage;
357 std::map<int, wxString> HomeRoleListAltID;
358 std::map<int, wxString> HomeRoleListPID;
359 std::map<int, wxString> HomeRoleListType;
360 std::map<int, wxString> HomeRoleListTokens;
361 std::map<int, int> HomeRoleListPref;
363 std::map<int, wxString> HomeOrganisationsList;
364 std::map<int, wxString> HomeOrganisationsListLanguage;
365 std::map<int, wxString> HomeOrganisationsListAltID;
366 std::map<int, wxString> HomeOrganisationsListPID;
367 std::map<int, wxString> HomeOrganisationsListType;
368 std::map<int, wxString> HomeOrganisationsListTokens;
369 std::map<int, wxString> HomeOrganisationsListSortAs;
370 std::map<int, int> HomeOrganisationsListPref;
372 std::map<int, wxString> HomeNoteList;
373 std::map<int, wxString> HomeNoteListLanguage;
374 std::map<int, wxString> HomeNoteListAltID;
375 std::map<int, wxString> HomeNoteListPID;
376 std::map<int, wxString> HomeNoteListType;
377 std::map<int, wxString> HomeNoteListTokens;
378 std::map<int, int> HomeNoteListPref;
380 /* Items on the Business tab */
382 std::map<int, wxString> BusinessNicknamesList;
383 std::map<int, wxString> BusinessNicknamesListType;
384 std::map<int, wxString> BusinessNicknamesListLanguage;
385 std::map<int, wxString> BusinessNicknamesListAltID;
386 std::map<int, wxString> BusinessNicknamesListPID;
387 std::map<int, wxString> BusinessNicknamesListTokens;
388 std::map<int, int> BusinessNicknamesListPref;
390 std::map<int, wxString> BusinessAddressList;
391 std::map<int, wxString> BusinessAddressListTown;
392 std::map<int, wxString> BusinessAddressListCounty;
393 std::map<int, wxString> BusinessAddressListPostCode;
394 std::map<int, wxString> BusinessAddressListCountry;
395 std::map<int, wxString> BusinessAddressListLabel;
396 std::map<int, wxString> BusinessAddressListLang;
397 std::map<int, wxString> BusinessAddressListAltID;
398 std::map<int, wxString> BusinessAddressListPID;
399 std::map<int, wxString> BusinessAddressListTokens;
400 std::map<int, wxString> BusinessAddressListGeo;
401 std::map<int, wxString> BusinessAddressListTimezone;
402 std::map<int, wxString> BusinessAddressListType;
403 std::map<int, wxString> BusinessAddressListMediatype;
404 std::map<int, int> BusinessAddressListPref;
406 std::map<int, wxString> BusinessEmailList;
407 std::map<int, wxString> BusinessEmailListAltID;
408 std::map<int, wxString> BusinessEmailListPID;
409 std::map<int, wxString> BusinessEmailListType;
410 std::map<int, wxString> BusinessEmailListTokens;
411 std::map<int, int> BusinessEmailListPref;
413 std::map<int, wxString> BusinessIMList;
414 std::map<int, wxString> BusinessIMListAltID;
415 std::map<int, wxString> BusinessIMListPID;
416 std::map<int, wxString> BusinessIMListType;
417 std::map<int, wxString> BusinessIMListTokens;
418 std::map<int, wxString> BusinessIMListMediatype;
419 std::map<int, int> BusinessIMListPref;
421 std::map<int, wxString> BusinessTelephoneList;
422 std::map<int, wxString> BusinessTelephoneListAltID;
423 std::map<int, wxString> BusinessTelephoneListPID;
424 std::map<int, wxString> BusinessTelephoneListType;
425 std::map<int, wxString> BusinessTelephoneListTypeInfo;
426 std::map<int, wxString> BusinessTelephoneListTokens;
427 std::map<int, int> BusinessTelephoneListPref;
429 std::map<int, wxString> BusinessLanguageList;
430 std::map<int, wxString> BusinessLanguageListAltID;
431 std::map<int, wxString> BusinessLanguageListPID;
432 std::map<int, wxString> BusinessLanguageListType;
433 std::map<int, wxString> BusinessLanguageListTokens;
434 std::map<int, int> BusinessLanguageListPref;
436 std::map<int, wxString> BusinessTZList;
437 std::map<int, wxString> BusinessTZListAltID;
438 std::map<int, wxString> BusinessTZListPID;
439 std::map<int, wxString> BusinessTZListType;
440 std::map<int, wxString> BusinessTZListTokens;
441 std::map<int, wxString> BusinessTZListMediatype;
442 std::map<int, int> BusinessTZListPref;
444 std::map<int, wxString> BusinessGeographyList;
445 std::map<int, wxString> BusinessGeographyListAltID;
446 std::map<int, wxString> BusinessGeographyListPID;
447 std::map<int, wxString> BusinessGeographyListType;
448 std::map<int, wxString> BusinessGeographyListTokens;
449 std::map<int, wxString> BusinessGeographyListMediatype;
450 std::map<int, int> BusinessGeographyListPref;
452 std::map<int, wxString> BusinessWebsiteList;
453 std::map<int, wxString> BusinessWebsiteListAltID;
454 std::map<int, wxString> BusinessWebsiteListPID;
455 std::map<int, wxString> BusinessWebsiteListType;
456 std::map<int, wxString> BusinessWebsiteListTokens;
457 std::map<int, wxString> BusinessWebsiteListMediatype;
458 std::map<int, int> BusinessWebsiteListPref;
460 std::map<int, wxString> BusinessTitleList;
461 std::map<int, wxString> BusinessTitleListLanguage;
462 std::map<int, wxString> BusinessTitleListAltID;
463 std::map<int, wxString> BusinessTitleListPID;
464 std::map<int, wxString> BusinessTitleListType;
465 std::map<int, wxString> BusinessTitleListTokens;
466 std::map<int, int> BusinessTitleListPref;
468 std::map<int, wxString> BusinessRoleList;
469 std::map<int, wxString> BusinessRoleListLanguage;
470 std::map<int, wxString> BusinessRoleListAltID;
471 std::map<int, wxString> BusinessRoleListPID;
472 std::map<int, wxString> BusinessRoleListType;
473 std::map<int, wxString> BusinessRoleListTokens;
474 std::map<int, int> BusinessRoleListPref;
476 std::map<int, wxString> BusinessOrganisationsList;
477 std::map<int, wxString> BusinessOrganisationsListLanguage;
478 std::map<int, wxString> BusinessOrganisationsListAltID;
479 std::map<int, wxString> BusinessOrganisationsListPID;
480 std::map<int, wxString> BusinessOrganisationsListType;
481 std::map<int, wxString> BusinessOrganisationsListTokens;
482 std::map<int, wxString> BusinessOrganisationsListSortAs;
483 std::map<int, int> BusinessOrganisationsListPref;
485 std::map<int, wxString> BusinessNoteList;
486 std::map<int, wxString> BusinessNoteListLanguage;
487 std::map<int, wxString> BusinessNoteListAltID;
488 std::map<int, wxString> BusinessNoteListPID;
489 std::map<int, wxString> BusinessNoteListType;
490 std::map<int, wxString> BusinessNoteListTokens;
491 std::map<int, int> BusinessNoteListPref;
493 /* Items on the Categories tab */
495 std::map<int, wxString> CategoriesList;
496 std::map<int, wxString> CategoriesListAltID;
497 std::map<int, wxString> CategoriesListPID;
498 std::map<int, wxString> CategoriesListType;
499 std::map<int, wxString> CategoriesListTokens;
500 std::map<int, wxString> CategoriesListLanguage;
501 std::map<int, int> CategoriesListPref;
503 /* Items on the Groups tab */
505 std::map<int, wxString> GroupsList;
506 std::map<int, wxString> GroupsListAltID;
507 std::map<int, wxString> GroupsListPID;
508 std::map<int, wxString> GroupsListType;
509 std::map<int, wxString> GroupsListMediaType;
510 std::map<int, wxString> GroupsListTokens;
511 std::map<int, int> GroupsListPref;
513 /* Items on the Pictures tab */
515 std::map<int, std::string> PicturesList;
516 std::map<int, wxString> PicturesListAltID;
517 std::map<int, wxString> PicturesListPID;
518 std::map<int, wxString> PicturesListType;
519 std::map<int, wxString> PicturesListPicEncType;
520 std::map<int, wxString> PicturesListPictureType;
521 std::map<int, wxString> PicturesListTokens;
522 std::map<int, wxString> PicturesListMediatype;
523 std::map<int, int> PicturesListPref;
525 /* Items on the Logos tab */
527 std::map<int, std::string> LogosList;
528 std::map<int, wxString> LogosListAltID;
529 std::map<int, wxString> LogosListPID;
530 std::map<int, wxString> LogosListType;
531 std::map<int, wxString> LogosListPicEncType;
532 std::map<int, wxString> LogosListPictureType;
533 std::map<int, wxString> LogosListTokens;
534 std::map<int, wxString> LogosListMediatype;
535 std::map<int, int> LogosListPref;
537 /* Items on the Sounds tab */
539 std::map<int, std::string> SoundsList;
540 std::map<int, wxString> SoundsListAltID;
541 std::map<int, wxString> SoundsListPID;
542 std::map<int, wxString> SoundsListType;
543 std::map<int, wxString> SoundsListAudioEncType;
544 std::map<int, wxString> SoundsListAudioType;
545 std::map<int, wxString> SoundsListTokens;
546 std::map<int, wxString> SoundsListMediatype;
547 std::map<int, wxString> SoundsListLanguage;
548 std::map<int, int> SoundsListPref;
550 /* Items on the Calendaring tab */
552 std::map<int, wxString> CalendarList;
553 std::map<int, wxString> CalendarListAltID;
554 std::map<int, wxString> CalendarListPID;
555 std::map<int, wxString> CalendarListType;
556 std::map<int, wxString> CalendarListTokens;
557 std::map<int, wxString> CalendarListMediatype;
558 std::map<int, int> CalendarListPref;
560 std::map<int, wxString> CalendarRequestList;
561 std::map<int, wxString> CalendarRequestListAltID;
562 std::map<int, wxString> CalendarRequestListPID;
563 std::map<int, wxString> CalendarRequestListType;
564 std::map<int, wxString> CalendarRequestListTokens;
565 std::map<int, wxString> CalendarRequestListMediatype;
566 std::map<int, int> CalendarRequestListPref;
568 std::map<int, wxString> FreeBusyList;
569 std::map<int, wxString> FreeBusyListAltID;
570 std::map<int, wxString> FreeBusyListPID;
571 std::map<int, wxString> FreeBusyListType;
572 std::map<int, wxString> FreeBusyListTokens;
573 std::map<int, wxString> FreeBusyListMediatype;
574 std::map<int, int> FreeBusyListPref;
576 /* Items on the Security tab */
578 std::map<int, wxString> KeyList;
579 std::map<int, wxString> KeyListAltID;
580 std::map<int, wxString> KeyListPID;
581 std::map<int, bool> KeyListKeyType;
582 std::map<int, wxString> KeyListDataType;
583 std::map<int, wxString> KeyListDataEncType;
584 std::map<int, wxString> KeyListType;
585 std::map<int, wxString> KeyListTokens;
586 std::map<int, int> KeyListPref;
588 /* Items on the Other tab */
590 std::map<int, wxString> VendorList;
591 std::map<int, wxString> VendorListPEN;
592 std::map<int, wxString> VendorListElement;
594 std::map<int, wxString> XTokenList;
595 std::map<int, wxString> XTokenListTokens;
599 ContactLoadStatus LoadFile(wxString Filename);
603 void SplitValues(wxString *PropertyLine,
604 std::map<int,int> *SplitPoints,
605 std::map<int,int> *SplitLength,
608 void CheckType(wxString *PropertySeg1,
609 std::map<int,int> *SplitPoints,
610 std::map<int,int> *SplitLength,
612 PropertyType *intType);