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

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy