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