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