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