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);
84 void ProcessCalendarFreeBusy(wxString PropertySeg1, wxString PropertySeg2, int *FreeBusyAddressCount);
85 void ProcessKey(wxString PropertySeg1, wxString PropertySeg2, int *KeyCount);
89 ContactKindType ContactKind = CONTACTKIND_NONE;
91 /* Items on General Tab */
94 wxString NameForename;
96 wxString NameOtherNames;
98 wxString NameNickname;
99 wxString NameDisplayAs;
100 wxString NameLanguage;
105 wxString BirthdayAltID;
106 wxString BirthdayCalScale;
107 wxString BirthdayTokens;
108 wxString Anniversary;
109 wxString AnniversaryAltID;
110 wxString AnniversaryCalScale;
111 wxString AnniversaryTokens;
114 wxString GenderDetails;
115 wxString GenderTokens;
119 /* We don't use these at the moment but we want to keep
120 them for compatability reasons */
122 /*std::map<int, wxString> ExtraFullNames;*/
123 /*std::map<int, wxString> ExtraNicknames;*/
125 std::map<int, wxString> FullNamesList;
126 std::map<int, wxString> FullNamesListType;
127 std::map<int, wxString> FullNamesListLanguage;
128 std::map<int, wxString> FullNamesListAltID;
129 std::map<int, wxString> FullNamesListPID;
130 std::map<int, wxString> FullNamesListTokens;
131 std::map<int, int> FullNamesListPref;
133 std::map<int, wxString> GeneralNicknamesList;
134 std::map<int, wxString> GeneralNicknamesListType;
135 std::map<int, wxString> GeneralNicknamesListLanguage;
136 std::map<int, wxString> GeneralNicknamesListAltID;
137 std::map<int, wxString> GeneralNicknamesListPID;
138 std::map<int, wxString> GeneralNicknamesListTokens;
139 std::map<int, int> GeneralNicknamesListPref;
141 std::map<int, wxString> GeneralAddressList;
142 std::map<int, wxString> GeneralAddressListTown;
143 std::map<int, wxString> GeneralAddressListCounty;
144 std::map<int, wxString> GeneralAddressListPostCode;
145 std::map<int, wxString> GeneralAddressListCountry;
146 std::map<int, wxString> GeneralAddressListLabel;
147 std::map<int, wxString> GeneralAddressListLang;
148 std::map<int, wxString> GeneralAddressListAltID;
149 std::map<int, wxString> GeneralAddressListPID;
150 std::map<int, wxString> GeneralAddressListTokens;
151 std::map<int, wxString> GeneralAddressListGeo;
152 std::map<int, wxString> GeneralAddressListTimezone;
153 std::map<int, wxString> GeneralAddressListType;
154 std::map<int, wxString> GeneralAddressListMediatype;
155 std::map<int, int> GeneralAddressListPref;
157 std::map<int, wxString> GeneralEmailList;
158 std::map<int, wxString> GeneralEmailListAltID;
159 std::map<int, wxString> GeneralEmailListPID;
160 std::map<int, wxString> GeneralEmailListType;
161 std::map<int, wxString> GeneralEmailListTokens;
162 std::map<int, int> GeneralEmailListPref;
164 std::map<int, wxString> GeneralIMList;
165 std::map<int, wxString> GeneralIMListAltID;
166 std::map<int, wxString> GeneralIMListPID;
167 std::map<int, wxString> GeneralIMListType;
168 std::map<int, wxString> GeneralIMListTokens;
169 std::map<int, wxString> GeneralIMListMediatype;
170 std::map<int, int> GeneralIMListPref;
172 std::map<int, wxString> GeneralTelephoneList;
173 std::map<int, wxString> GeneralTelephoneListAltID;
174 std::map<int, wxString> GeneralTelephoneListPID;
175 std::map<int, wxString> GeneralTelephoneListType;
176 std::map<int, wxString> GeneralTelephoneListTokens;
177 std::map<int, wxString> GeneralTelephoneListTypeInfo;
178 std::map<int, int> GeneralTelephoneListPref;
180 std::map<int, wxString> GeneralLanguageList;
181 std::map<int, wxString> GeneralLanguageListAltID;
182 std::map<int, wxString> GeneralLanguageListPID;
183 std::map<int, wxString> GeneralLanguageListType;
184 std::map<int, wxString> GeneralLanguageListTokens;
185 std::map<int, int> GeneralLanguageListPref;
187 std::map<int, wxString> GeneralTZList;
188 std::map<int, wxString> GeneralTZListAltID;
189 std::map<int, wxString> GeneralTZListPID;
190 std::map<int, wxString> GeneralTZListType;
191 std::map<int, wxString> GeneralTZListTokens;
192 std::map<int, wxString> GeneralTZListMediatype;
193 std::map<int, int> GeneralTZListPref;
195 std::map<int, wxString> GeneralGeographyList;
196 std::map<int, wxString> GeneralGeographyListAltID;
197 std::map<int, wxString> GeneralGeographyListPID;
198 std::map<int, wxString> GeneralGeographyListType;
199 std::map<int, wxString> GeneralGeographyListTokens;
200 std::map<int, wxString> GeneralGeographyListMediatype;
201 std::map<int, int> GeneralGeographyListPref;
203 std::map<int, wxString> GeneralRelatedList;
204 std::map<int, wxString> GeneralRelatedListRelType;
205 std::map<int, wxString> GeneralRelatedListLanguage;
206 std::map<int, wxString> GeneralRelatedListAltID;
207 std::map<int, wxString> GeneralRelatedListPID;
208 std::map<int, wxString> GeneralRelatedListType;
209 std::map<int, wxString> GeneralRelatedListTokens;
210 std::map<int, int> GeneralRelatedListPref;
212 std::map<int, wxString> GeneralWebsiteList;
213 std::map<int, wxString> GeneralWebsiteListAltID;
214 std::map<int, wxString> GeneralWebsiteListPID;
215 std::map<int, wxString> GeneralWebsiteListType;
216 std::map<int, wxString> GeneralWebsiteListTokens;
217 std::map<int, wxString> GeneralWebsiteListMediatype;
218 std::map<int, int> GeneralWebsiteListPref;
220 std::map<int, wxString> GeneralTitleList;
221 std::map<int, wxString> GeneralTitleListLanguage;
222 std::map<int, wxString> GeneralTitleListAltID;
223 std::map<int, wxString> GeneralTitleListPID;
224 std::map<int, wxString> GeneralTitleListType;
225 std::map<int, wxString> GeneralTitleListTokens;
226 std::map<int, int> GeneralTitleListPref;
228 std::map<int, wxString> GeneralRoleList;
229 std::map<int, wxString> GeneralRoleListLanguage;
230 std::map<int, wxString> GeneralRoleListAltID;
231 std::map<int, wxString> GeneralRoleListPID;
232 std::map<int, wxString> GeneralRoleListType;
233 std::map<int, wxString> GeneralRoleListTokens;
234 std::map<int, int> GeneralRoleListPref;
236 std::map<int, wxString> GeneralOrganisationsList;
237 std::map<int, wxString> GeneralOrganisationsListLanguage;
238 std::map<int, wxString> GeneralOrganisationsListAltID;
239 std::map<int, wxString> GeneralOrganisationsListPID;
240 std::map<int, wxString> GeneralOrganisationsListType;
241 std::map<int, wxString> GeneralOrganisationsListTokens;
242 std::map<int, wxString> GeneralOrganisationsListSortAs;
243 std::map<int, int> GeneralOrganisationsListPref;
245 std::map<int, wxString> GeneralNoteList;
246 std::map<int, wxString> GeneralNoteListLanguage;
247 std::map<int, wxString> GeneralNoteListAltID;
248 std::map<int, wxString> GeneralNoteListPID;
249 std::map<int, wxString> GeneralNoteListType;
250 std::map<int, wxString> GeneralNoteListTokens;
251 std::map<int, int> GeneralNoteListPref;
253 /* Items on Home Tab */
255 std::map<int, wxString> HomeNicknamesList;
256 std::map<int, wxString> HomeNicknamesListType;
257 std::map<int, wxString> HomeNicknamesListLanguage;
258 std::map<int, wxString> HomeNicknamesListAltID;
259 std::map<int, wxString> HomeNicknamesListPID;
260 std::map<int, wxString> HomeNicknamesListTokens;
261 std::map<int, int> HomeNicknamesListPref;
263 std::map<int, wxString> HomeAddressList;
264 std::map<int, wxString> HomeAddressListTown;
265 std::map<int, wxString> HomeAddressListCounty;
266 std::map<int, wxString> HomeAddressListPostCode;
267 std::map<int, wxString> HomeAddressListCountry;
268 std::map<int, wxString> HomeAddressListLabel;
269 std::map<int, wxString> HomeAddressListLang;
270 std::map<int, wxString> HomeAddressListAltID;
271 std::map<int, wxString> HomeAddressListPID;
272 std::map<int, wxString> HomeAddressListTokens;
273 std::map<int, wxString> HomeAddressListGeo;
274 std::map<int, wxString> HomeAddressListTimezone;
275 std::map<int, wxString> HomeAddressListType;
276 std::map<int, wxString> HomeAddressListMediatype;
277 std::map<int, int> HomeAddressListPref;
279 std::map<int, wxString> HomeEmailList;
280 std::map<int, wxString> HomeEmailListAltID;
281 std::map<int, wxString> HomeEmailListPID;
282 std::map<int, wxString> HomeEmailListType;
283 std::map<int, wxString> HomeEmailListTokens;
284 std::map<int, int> HomeEmailListPref;
286 std::map<int, wxString> HomeIMList;
287 std::map<int, wxString> HomeIMListAltID;
288 std::map<int, wxString> HomeIMListPID;
289 std::map<int, wxString> HomeIMListType;
290 std::map<int, wxString> HomeIMListTokens;
291 std::map<int, wxString> HomeIMListMediatype;
292 std::map<int, int> HomeIMListPref;
294 std::map<int, wxString> HomeTelephoneList;
295 std::map<int, wxString> HomeTelephoneListAltID;
296 std::map<int, wxString> HomeTelephoneListPID;
297 std::map<int, wxString> HomeTelephoneListType;
298 std::map<int, wxString> HomeTelephoneListTokens;
299 std::map<int, wxString> HomeTelephoneListTypeInfo;
300 std::map<int, int> HomeTelephoneListPref;
302 std::map<int, wxString> HomeLanguageList;
303 std::map<int, wxString> HomeLanguageListAltID;
304 std::map<int, wxString> HomeLanguageListPID;
305 std::map<int, wxString> HomeLanguageListType;
306 std::map<int, wxString> HomeLanguageListTokens;
307 std::map<int, int> HomeLanguageListPref;
309 std::map<int, wxString> HomeTZList;
310 std::map<int, wxString> HomeTZListAltID;
311 std::map<int, wxString> HomeTZListPID;
312 std::map<int, wxString> HomeTZListType;
313 std::map<int, wxString> HomeTZListTokens;
314 std::map<int, wxString> HomeTZListMediatype;
315 std::map<int, int> HomeTZListPref;
317 std::map<int, wxString> HomeGeographyList;
318 std::map<int, wxString> HomeGeographyListAltID;
319 std::map<int, wxString> HomeGeographyListPID;
320 std::map<int, wxString> HomeGeographyListType;
321 std::map<int, wxString> HomeGeographyListTokens;
322 std::map<int, wxString> HomeGeographyListMediatype;
323 std::map<int, int> HomeGeographyListPref;
325 std::map<int, wxString> HomeWebsiteList;
326 std::map<int, wxString> HomeWebsiteListAltID;
327 std::map<int, wxString> HomeWebsiteListPID;
328 std::map<int, wxString> HomeWebsiteListType;
329 std::map<int, wxString> HomeWebsiteListTokens;
330 std::map<int, wxString> HomeWebsiteListMediatype;
331 std::map<int, int> HomeWebsiteListPref;
333 std::map<int, wxString> HomeTitleList;
334 std::map<int, wxString> HomeTitleListLanguage;
335 std::map<int, wxString> HomeTitleListAltID;
336 std::map<int, wxString> HomeTitleListPID;
337 std::map<int, wxString> HomeTitleListType;
338 std::map<int, wxString> HomeTitleListTokens;
339 std::map<int, int> HomeTitleListPref;
341 std::map<int, wxString> HomeRoleList;
342 std::map<int, wxString> HomeRoleListLanguage;
343 std::map<int, wxString> HomeRoleListAltID;
344 std::map<int, wxString> HomeRoleListPID;
345 std::map<int, wxString> HomeRoleListType;
346 std::map<int, wxString> HomeRoleListTokens;
347 std::map<int, int> HomeRoleListPref;
349 std::map<int, wxString> HomeOrganisationsList;
350 std::map<int, wxString> HomeOrganisationsListLanguage;
351 std::map<int, wxString> HomeOrganisationsListAltID;
352 std::map<int, wxString> HomeOrganisationsListPID;
353 std::map<int, wxString> HomeOrganisationsListType;
354 std::map<int, wxString> HomeOrganisationsListTokens;
355 std::map<int, wxString> HomeOrganisationsListSortAs;
356 std::map<int, int> HomeOrganisationsListPref;
358 std::map<int, wxString> HomeNoteList;
359 std::map<int, wxString> HomeNoteListLanguage;
360 std::map<int, wxString> HomeNoteListAltID;
361 std::map<int, wxString> HomeNoteListPID;
362 std::map<int, wxString> HomeNoteListType;
363 std::map<int, wxString> HomeNoteListTokens;
364 std::map<int, int> HomeNoteListPref;
366 /* Items on the Business tab */
368 std::map<int, wxString> BusinessNicknamesList;
369 std::map<int, wxString> BusinessNicknamesListType;
370 std::map<int, wxString> BusinessNicknamesListLanguage;
371 std::map<int, wxString> BusinessNicknamesListAltID;
372 std::map<int, wxString> BusinessNicknamesListPID;
373 std::map<int, wxString> BusinessNicknamesListTokens;
374 std::map<int, int> BusinessNicknamesListPref;
376 std::map<int, wxString> BusinessAddressList;
377 std::map<int, wxString> BusinessAddressListTown;
378 std::map<int, wxString> BusinessAddressListCounty;
379 std::map<int, wxString> BusinessAddressListPostCode;
380 std::map<int, wxString> BusinessAddressListCountry;
381 std::map<int, wxString> BusinessAddressListLabel;
382 std::map<int, wxString> BusinessAddressListLang;
383 std::map<int, wxString> BusinessAddressListAltID;
384 std::map<int, wxString> BusinessAddressListPID;
385 std::map<int, wxString> BusinessAddressListTokens;
386 std::map<int, wxString> BusinessAddressListGeo;
387 std::map<int, wxString> BusinessAddressListTimezone;
388 std::map<int, wxString> BusinessAddressListType;
389 std::map<int, wxString> BusinessAddressListMediatype;
390 std::map<int, int> BusinessAddressListPref;
392 std::map<int, wxString> BusinessEmailList;
393 std::map<int, wxString> BusinessEmailListAltID;
394 std::map<int, wxString> BusinessEmailListPID;
395 std::map<int, wxString> BusinessEmailListType;
396 std::map<int, wxString> BusinessEmailListTokens;
397 std::map<int, int> BusinessEmailListPref;
399 std::map<int, wxString> BusinessIMList;
400 std::map<int, wxString> BusinessIMListAltID;
401 std::map<int, wxString> BusinessIMListPID;
402 std::map<int, wxString> BusinessIMListType;
403 std::map<int, wxString> BusinessIMListTokens;
404 std::map<int, wxString> BusinessIMListMediatype;
405 std::map<int, int> BusinessIMListPref;
407 std::map<int, wxString> BusinessTelephoneList;
408 std::map<int, wxString> BusinessTelephoneListAltID;
409 std::map<int, wxString> BusinessTelephoneListPID;
410 std::map<int, wxString> BusinessTelephoneListType;
411 std::map<int, wxString> BusinessTelephoneListTypeInfo;
412 std::map<int, wxString> BusinessTelephoneListTokens;
413 std::map<int, int> BusinessTelephoneListPref;
415 std::map<int, wxString> BusinessLanguageList;
416 std::map<int, wxString> BusinessLanguageListAltID;
417 std::map<int, wxString> BusinessLanguageListPID;
418 std::map<int, wxString> BusinessLanguageListType;
419 std::map<int, wxString> BusinessLanguageListTokens;
420 std::map<int, int> BusinessLanguageListPref;
422 std::map<int, wxString> BusinessTZList;
423 std::map<int, wxString> BusinessTZListAltID;
424 std::map<int, wxString> BusinessTZListPID;
425 std::map<int, wxString> BusinessTZListType;
426 std::map<int, wxString> BusinessTZListTokens;
427 std::map<int, wxString> BusinessTZListMediatype;
428 std::map<int, int> BusinessTZListPref;
430 std::map<int, wxString> BusinessGeographyList;
431 std::map<int, wxString> BusinessGeographyListAltID;
432 std::map<int, wxString> BusinessGeographyListPID;
433 std::map<int, wxString> BusinessGeographyListType;
434 std::map<int, wxString> BusinessGeographyListTokens;
435 std::map<int, wxString> BusinessGeographyListMediatype;
436 std::map<int, int> BusinessGeographyListPref;
438 std::map<int, wxString> BusinessWebsiteList;
439 std::map<int, wxString> BusinessWebsiteListAltID;
440 std::map<int, wxString> BusinessWebsiteListPID;
441 std::map<int, wxString> BusinessWebsiteListType;
442 std::map<int, wxString> BusinessWebsiteListTokens;
443 std::map<int, wxString> BusinessWebsiteListMediatype;
444 std::map<int, int> BusinessWebsiteListPref;
446 std::map<int, wxString> BusinessTitleList;
447 std::map<int, wxString> BusinessTitleListLanguage;
448 std::map<int, wxString> BusinessTitleListAltID;
449 std::map<int, wxString> BusinessTitleListPID;
450 std::map<int, wxString> BusinessTitleListType;
451 std::map<int, wxString> BusinessTitleListTokens;
452 std::map<int, int> BusinessTitleListPref;
454 std::map<int, wxString> BusinessRoleList;
455 std::map<int, wxString> BusinessRoleListLanguage;
456 std::map<int, wxString> BusinessRoleListAltID;
457 std::map<int, wxString> BusinessRoleListPID;
458 std::map<int, wxString> BusinessRoleListType;
459 std::map<int, wxString> BusinessRoleListTokens;
460 std::map<int, int> BusinessRoleListPref;
462 std::map<int, wxString> BusinessOrganisationsList;
463 std::map<int, wxString> BusinessOrganisationsListLanguage;
464 std::map<int, wxString> BusinessOrganisationsListAltID;
465 std::map<int, wxString> BusinessOrganisationsListPID;
466 std::map<int, wxString> BusinessOrganisationsListType;
467 std::map<int, wxString> BusinessOrganisationsListTokens;
468 std::map<int, wxString> BusinessOrganisationsListSortAs;
469 std::map<int, int> BusinessOrganisationsListPref;
471 std::map<int, wxString> BusinessNoteList;
472 std::map<int, wxString> BusinessNoteListLanguage;
473 std::map<int, wxString> BusinessNoteListAltID;
474 std::map<int, wxString> BusinessNoteListPID;
475 std::map<int, wxString> BusinessNoteListType;
476 std::map<int, wxString> BusinessNoteListTokens;
477 std::map<int, int> BusinessNoteListPref;
479 /* Items on the Categories tab */
481 std::map<int, wxString> CategoriesList;
482 std::map<int, wxString> CategoriesListAltID;
483 std::map<int, wxString> CategoriesListPID;
484 std::map<int, wxString> CategoriesListType;
485 std::map<int, wxString> CategoriesListTokens;
486 std::map<int, wxString> CategoriesListLanguage;
487 std::map<int, int> CategoriesListPref;
489 /* Items on the Groups tab */
491 std::map<int, wxString> GroupsList;
492 std::map<int, wxString> GroupsListAltID;
493 std::map<int, wxString> GroupsListPID;
494 std::map<int, wxString> GroupsListType;
495 std::map<int, wxString> GroupsListMediaType;
496 std::map<int, wxString> GroupsListTokens;
497 std::map<int, int> GroupsListPref;
499 /* Items on the Pictures tab */
501 std::map<int, std::string> PicturesList;
502 std::map<int, wxString> PicturesListAltID;
503 std::map<int, wxString> PicturesListPID;
504 std::map<int, wxString> PicturesListType;
505 std::map<int, wxString> PicturesListPicEncType;
506 std::map<int, wxString> PicturesListPictureType;
507 std::map<int, wxString> PicturesListTokens;
508 std::map<int, wxString> PicturesListMediatype;
509 std::map<int, int> PicturesListPref;
511 /* Items on the Logos tab */
513 std::map<int, std::string> LogosList;
514 std::map<int, wxString> LogosListAltID;
515 std::map<int, wxString> LogosListPID;
516 std::map<int, wxString> LogosListType;
517 std::map<int, wxString> LogosListPicEncType;
518 std::map<int, wxString> LogosListPictureType;
519 std::map<int, wxString> LogosListTokens;
520 std::map<int, wxString> LogosListMediatype;
521 std::map<int, int> LogosListPref;
523 /* Items on the Sounds tab */
525 std::map<int, std::string> SoundsList;
526 std::map<int, wxString> SoundsListAltID;
527 std::map<int, wxString> SoundsListPID;
528 std::map<int, wxString> SoundsListType;
529 std::map<int, wxString> SoundsListAudioEncType;
530 std::map<int, wxString> SoundsListAudioType;
531 std::map<int, wxString> SoundsListTokens;
532 std::map<int, wxString> SoundsListMediatype;
533 std::map<int, wxString> SoundsListLanguage;
534 std::map<int, int> SoundsListPref;
536 /* Items on the Calendaring tab */
538 std::map<int, wxString> CalendarList;
539 std::map<int, wxString> CalendarListAltID;
540 std::map<int, wxString> CalendarListPID;
541 std::map<int, wxString> CalendarListType;
542 std::map<int, wxString> CalendarListTokens;
543 std::map<int, wxString> CalendarListMediatype;
544 std::map<int, int> CalendarListPref;
546 std::map<int, wxString> CalendarRequestList;
547 std::map<int, wxString> CalendarRequestListAltID;
548 std::map<int, wxString> CalendarRequestListPID;
549 std::map<int, wxString> CalendarRequestListType;
550 std::map<int, wxString> CalendarRequestListTokens;
551 std::map<int, wxString> CalendarRequestListMediatype;
552 std::map<int, int> CalendarRequestListPref;
554 std::map<int, wxString> FreeBusyList;
555 std::map<int, wxString> FreeBusyListAltID;
556 std::map<int, wxString> FreeBusyListPID;
557 std::map<int, wxString> FreeBusyListType;
558 std::map<int, wxString> FreeBusyListTokens;
559 std::map<int, wxString> FreeBusyListMediatype;
560 std::map<int, int> FreeBusyListPref;
562 /* Items on the Security tab */
564 std::map<int, wxString> KeyList;
565 std::map<int, wxString> KeyListAltID;
566 std::map<int, wxString> KeyListPID;
567 std::map<int, bool> KeyListKeyType;
568 std::map<int, wxString> KeyListDataType;
569 std::map<int, wxString> KeyListDataEncType;
570 std::map<int, wxString> KeyListType;
571 std::map<int, wxString> KeyListTokens;
572 std::map<int, int> KeyListPref;
574 /* Items on the Other tab */
576 std::map<int, wxString> VendorList;
577 std::map<int, wxString> VendorListPEN;
578 std::map<int, wxString> VendorListElement;
580 std::map<int, wxString> XTokenList;
581 std::map<int, wxString> XTokenListTokens;
585 ContactLoadStatus LoadFile(wxString Filename);
589 void SplitValues(wxString *PropertyLine,
590 std::map<int,int> *SplitPoints,
591 std::map<int,int> *SplitLength,
594 void CheckType(wxString *PropertySeg1,
595 std::map<int,int> *SplitPoints,
596 std::map<int,int> *SplitLength,
598 PropertyType *intType);