Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
46edb7e3a52c1b88a0166b13b9355dcc1d05e57c
[xestiaab/.git] / 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, int> GeneralTelephoneListPref;
198         
199         std::map<int, wxString> GeneralLanguageList;
200         std::map<int, wxString> GeneralLanguageListAltID;
201         std::map<int, wxString> GeneralLanguageListPID;
202         std::map<int, wxString> GeneralLanguageListType;
203         std::map<int, wxString> GeneralLanguageListTokens;
204         std::map<int, int> GeneralLanguageListPref;
205         
206         std::map<int, wxString> GeneralTZList;
207         std::map<int, wxString> GeneralTZListAltID;
208         std::map<int, wxString> GeneralTZListPID;
209         std::map<int, wxString> GeneralTZListType;
210         std::map<int, wxString> GeneralTZListTokens;
211         std::map<int, wxString> GeneralTZListMediatype;
212         std::map<int, int> GeneralTZListPref;
213         
214         std::map<int, wxString> GeneralGeographyList;
215         std::map<int, wxString> GeneralGeographyListAltID;
216         std::map<int, wxString> GeneralGeographyListPID;
217         std::map<int, wxString> GeneralGeographyListType;
218         std::map<int, wxString> GeneralGeographyListTokens;
219         std::map<int, wxString> GeneralGeographyListMediatype;
220         std::map<int, int> GeneralGeographyListPref;
222         std::map<int, wxString> GeneralRelatedList;
223         std::map<int, wxString> GeneralRelatedListRelType;
224         std::map<int, wxString> GeneralRelatedListLanguage;
225         std::map<int, wxString> GeneralRelatedListAltID;
226         std::map<int, wxString> GeneralRelatedListPID;
227         std::map<int, wxString> GeneralRelatedListType;
228         std::map<int, wxString> GeneralRelatedListTokens;
229         std::map<int, int> GeneralRelatedListPref;
230         
231         std::map<int, wxString> GeneralWebsiteList;
232         std::map<int, wxString> GeneralWebsiteListAltID;
233         std::map<int, wxString> GeneralWebsiteListPID;
234         std::map<int, wxString> GeneralWebsiteListType;
235         std::map<int, wxString> GeneralWebsiteListTokens;
236         std::map<int, wxString> GeneralWebsiteListMediatype;
237         std::map<int, int> GeneralWebsiteListPref;
238         
239         std::map<int, wxString> GeneralTitleList;
240         std::map<int, wxString> GeneralTitleListLanguage;               
241         std::map<int, wxString> GeneralTitleListAltID;
242         std::map<int, wxString> GeneralTitleListPID;
243         std::map<int, wxString> GeneralTitleListType;
244         std::map<int, wxString> GeneralTitleListTokens;
245         std::map<int, int> GeneralTitleListPref;
246         
247         std::map<int, wxString> GeneralRoleList;
248         std::map<int, wxString> GeneralRoleListLanguage;                
249         std::map<int, wxString> GeneralRoleListAltID;
250         std::map<int, wxString> GeneralRoleListPID;
251         std::map<int, wxString> GeneralRoleListType;
252         std::map<int, wxString> GeneralRoleListTokens;
253         std::map<int, int> GeneralRoleListPref;
254         
255         std::map<int, wxString> GeneralOrganisationsList;
256         std::map<int, wxString> GeneralOrganisationsListLanguage;               
257         std::map<int, wxString> GeneralOrganisationsListAltID;
258         std::map<int, wxString> GeneralOrganisationsListPID;
259         std::map<int, wxString> GeneralOrganisationsListType;
260         std::map<int, wxString> GeneralOrganisationsListTokens;
261         std::map<int, wxString> GeneralOrganisationsListSortAs;
262         std::map<int, int> GeneralOrganisationsListPref;
264         std::map<int, wxString> GeneralNoteList;
265         std::map<int, wxString> GeneralNoteListLanguage;                
266         std::map<int, wxString> GeneralNoteListAltID;
267         std::map<int, wxString> GeneralNoteListPID;
268         std::map<int, wxString> GeneralNoteListType;
269         std::map<int, wxString> GeneralNoteListTokens;
270         std::map<int, int> GeneralNoteListPref;
271         
272         /* Items on Home Tab */         
273         
274         std::map<int, wxString> HomeNicknamesList;
275         std::map<int, wxString> HomeNicknamesListType;
276         std::map<int, wxString> HomeNicknamesListLanguage;
277         std::map<int, wxString> HomeNicknamesListAltID;
278         std::map<int, wxString> HomeNicknamesListPID;
279         std::map<int, wxString> HomeNicknamesListTokens;                
280         std::map<int, int> HomeNicknamesListPref;               
281         
282         std::map<int, wxString> HomeAddressList;
283         std::map<int, wxString> HomeAddressListTown;
284         std::map<int, wxString> HomeAddressListCounty;
285         std::map<int, wxString> HomeAddressListPostCode;
286         std::map<int, wxString> HomeAddressListCountry;
287         std::map<int, wxString> HomeAddressListLabel;
288         std::map<int, wxString> HomeAddressListLang;            
289         std::map<int, wxString> HomeAddressListAltID;
290         std::map<int, wxString> HomeAddressListPID;
291         std::map<int, wxString> HomeAddressListTokens;
292         std::map<int, wxString> HomeAddressListGeo;
293         std::map<int, wxString> HomeAddressListTimezone;                
294         std::map<int, wxString> HomeAddressListType;
295         std::map<int, wxString> HomeAddressListMediatype;
296         std::map<int, int> HomeAddressListPref;
297         
298         std::map<int, wxString> HomeEmailList;
299         std::map<int, wxString> HomeEmailListAltID;
300         std::map<int, wxString> HomeEmailListPID;
301         std::map<int, wxString> HomeEmailListType;
302         std::map<int, wxString> HomeEmailListTokens;
303         std::map<int, int> HomeEmailListPref;
304         
305         std::map<int, wxString> HomeIMList;
306         std::map<int, wxString> HomeIMListAltID;
307         std::map<int, wxString> HomeIMListPID;
308         std::map<int, wxString> HomeIMListType;
309         std::map<int, wxString> HomeIMListTypeInfo;
310         std::map<int, wxString> HomeIMListTokens;
311         std::map<int, wxString> HomeIMListMediatype;
312         std::map<int, int> HomeIMListPref;
313         
314         std::map<int, wxString> HomeTelephoneList;
315         std::map<int, wxString> HomeTelephoneListAltID;
316         std::map<int, wxString> HomeTelephoneListPID;
317         std::map<int, wxString> HomeTelephoneListType;
318         std::map<int, wxString> HomeTelephoneListTokens;
319         std::map<int, wxString> HomeTelephoneListTypeInfo;
320         std::map<int, int> HomeTelephoneListPref;
321         
322         std::map<int, wxString> HomeLanguageList;
323         std::map<int, wxString> HomeLanguageListAltID;
324         std::map<int, wxString> HomeLanguageListPID;
325         std::map<int, wxString> HomeLanguageListType;
326         std::map<int, wxString> HomeLanguageListTokens;
327         std::map<int, int> HomeLanguageListPref;
328         
329         std::map<int, wxString> HomeTZList;
330         std::map<int, wxString> HomeTZListAltID;
331         std::map<int, wxString> HomeTZListPID;
332         std::map<int, wxString> HomeTZListType;
333         std::map<int, wxString> HomeTZListTokens;
334         std::map<int, wxString> HomeTZListMediatype;
335         std::map<int, int> HomeTZListPref;
336         
337         std::map<int, wxString> HomeGeographyList;
338         std::map<int, wxString> HomeGeographyListAltID;
339         std::map<int, wxString> HomeGeographyListPID;
340         std::map<int, wxString> HomeGeographyListType;
341         std::map<int, wxString> HomeGeographyListTokens;
342         std::map<int, wxString> HomeGeographyListMediatype;
343         std::map<int, int> HomeGeographyListPref;
344         
345         std::map<int, wxString> HomeWebsiteList;
346         std::map<int, wxString> HomeWebsiteListAltID;
347         std::map<int, wxString> HomeWebsiteListPID;
348         std::map<int, wxString> HomeWebsiteListType;
349         std::map<int, wxString> HomeWebsiteListTokens;
350         std::map<int, wxString> HomeWebsiteListMediatype;
351         std::map<int, int> HomeWebsiteListPref;
352         
353         std::map<int, wxString> HomeTitleList;
354         std::map<int, wxString> HomeTitleListLanguage;
355         std::map<int, wxString> HomeTitleListAltID;
356         std::map<int, wxString> HomeTitleListPID;
357         std::map<int, wxString> HomeTitleListType;
358         std::map<int, wxString> HomeTitleListTokens;
359         std::map<int, int> HomeTitleListPref;
360         
361         std::map<int, wxString> HomeRoleList;
362         std::map<int, wxString> HomeRoleListLanguage;           
363         std::map<int, wxString> HomeRoleListAltID;
364         std::map<int, wxString> HomeRoleListPID;
365         std::map<int, wxString> HomeRoleListType;
366         std::map<int, wxString> HomeRoleListTokens;
367         std::map<int, int> HomeRoleListPref;
368         
369         std::map<int, wxString> HomeOrganisationsList;
370         std::map<int, wxString> HomeOrganisationsListLanguage;          
371         std::map<int, wxString> HomeOrganisationsListAltID;
372         std::map<int, wxString> HomeOrganisationsListPID;
373         std::map<int, wxString> HomeOrganisationsListType;
374         std::map<int, wxString> HomeOrganisationsListTokens;
375         std::map<int, wxString> HomeOrganisationsListSortAs;
376         std::map<int, int> HomeOrganisationsListPref;
377         
378         std::map<int, wxString> HomeNoteList;
379         std::map<int, wxString> HomeNoteListLanguage;           
380         std::map<int, wxString> HomeNoteListAltID;
381         std::map<int, wxString> HomeNoteListPID;
382         std::map<int, wxString> HomeNoteListType;
383         std::map<int, wxString> HomeNoteListTokens;
384         std::map<int, int> HomeNoteListPref;            
386         /* Items on the Business tab */
387         
388         std::map<int, wxString> BusinessNicknamesList;
389         std::map<int, wxString> BusinessNicknamesListType;
390         std::map<int, wxString> BusinessNicknamesListLanguage;
391         std::map<int, wxString> BusinessNicknamesListAltID;
392         std::map<int, wxString> BusinessNicknamesListPID;
393         std::map<int, wxString> BusinessNicknamesListTokens;            
394         std::map<int, int> BusinessNicknamesListPref;           
395         
396         std::map<int, wxString> BusinessAddressList;
397         std::map<int, wxString> BusinessAddressListTown;
398         std::map<int, wxString> BusinessAddressListCounty;
399         std::map<int, wxString> BusinessAddressListPostCode;
400         std::map<int, wxString> BusinessAddressListCountry;
401         std::map<int, wxString> BusinessAddressListLabel;
402         std::map<int, wxString> BusinessAddressListLang;                
403         std::map<int, wxString> BusinessAddressListAltID;
404         std::map<int, wxString> BusinessAddressListPID;
405         std::map<int, wxString> BusinessAddressListTokens;
406         std::map<int, wxString> BusinessAddressListGeo;
407         std::map<int, wxString> BusinessAddressListTimezone;            
408         std::map<int, wxString> BusinessAddressListType;
409         std::map<int, wxString> BusinessAddressListMediatype;
410         std::map<int, int> BusinessAddressListPref;
411         
412         std::map<int, wxString> BusinessEmailList;
413         std::map<int, wxString> BusinessEmailListAltID;
414         std::map<int, wxString> BusinessEmailListPID;
415         std::map<int, wxString> BusinessEmailListType;
416         std::map<int, wxString> BusinessEmailListTokens;
417         std::map<int, int> BusinessEmailListPref;
418         
419         std::map<int, wxString> BusinessIMList;
420         std::map<int, wxString> BusinessIMListAltID;
421         std::map<int, wxString> BusinessIMListPID;
422         std::map<int, wxString> BusinessIMListType;
423         std::map<int, wxString> BusinessIMListTypeInfo;
424         std::map<int, wxString> BusinessIMListTokens;
425         std::map<int, wxString> BusinessIMListMediatype;
426         std::map<int, int> BusinessIMListPref;
427         
428         std::map<int, wxString> BusinessTelephoneList;
429         std::map<int, wxString> BusinessTelephoneListAltID;
430         std::map<int, wxString> BusinessTelephoneListPID;
431         std::map<int, wxString> BusinessTelephoneListType;
432         std::map<int, wxString> BusinessTelephoneListTypeInfo;
433         std::map<int, wxString> BusinessTelephoneListTokens;
434         std::map<int, int> BusinessTelephoneListPref;
435         
436         std::map<int, wxString> BusinessLanguageList;
437         std::map<int, wxString> BusinessLanguageListAltID;
438         std::map<int, wxString> BusinessLanguageListPID;
439         std::map<int, wxString> BusinessLanguageListType;
440         std::map<int, wxString> BusinessLanguageListTokens;
441         std::map<int, int> BusinessLanguageListPref;
442         
443         std::map<int, wxString> BusinessTZList;
444         std::map<int, wxString> BusinessTZListAltID;
445         std::map<int, wxString> BusinessTZListPID;
446         std::map<int, wxString> BusinessTZListType;
447         std::map<int, wxString> BusinessTZListTokens;
448         std::map<int, wxString> BusinessTZListMediatype;
449         std::map<int, int> BusinessTZListPref;
450         
451         std::map<int, wxString> BusinessGeographyList;
452         std::map<int, wxString> BusinessGeographyListAltID;
453         std::map<int, wxString> BusinessGeographyListPID;
454         std::map<int, wxString> BusinessGeographyListType;
455         std::map<int, wxString> BusinessGeographyListTokens;
456         std::map<int, wxString> BusinessGeographyListMediatype;
457         std::map<int, int> BusinessGeographyListPref;                   
458         
459         std::map<int, wxString> BusinessWebsiteList;
460         std::map<int, wxString> BusinessWebsiteListAltID;
461         std::map<int, wxString> BusinessWebsiteListPID;
462         std::map<int, wxString> BusinessWebsiteListType;
463         std::map<int, wxString> BusinessWebsiteListTokens;
464         std::map<int, wxString> BusinessWebsiteListMediatype;
465         std::map<int, int> BusinessWebsiteListPref;
466         
467         std::map<int, wxString> BusinessTitleList;
468         std::map<int, wxString> BusinessTitleListLanguage;              
469         std::map<int, wxString> BusinessTitleListAltID;
470         std::map<int, wxString> BusinessTitleListPID;
471         std::map<int, wxString> BusinessTitleListType;
472         std::map<int, wxString> BusinessTitleListTokens;
473         std::map<int, int> BusinessTitleListPref;
474         
475         std::map<int, wxString> BusinessRoleList;
476         std::map<int, wxString> BusinessRoleListLanguage;               
477         std::map<int, wxString> BusinessRoleListAltID;
478         std::map<int, wxString> BusinessRoleListPID;
479         std::map<int, wxString> BusinessRoleListType;
480         std::map<int, wxString> BusinessRoleListTokens;
481         std::map<int, int> BusinessRoleListPref;
482         
483         std::map<int, wxString> BusinessOrganisationsList;
484         std::map<int, wxString> BusinessOrganisationsListLanguage;              
485         std::map<int, wxString> BusinessOrganisationsListAltID;
486         std::map<int, wxString> BusinessOrganisationsListPID;
487         std::map<int, wxString> BusinessOrganisationsListType;
488         std::map<int, wxString> BusinessOrganisationsListTokens;
489         std::map<int, wxString> BusinessOrganisationsListSortAs;                
490         std::map<int, int> BusinessOrganisationsListPref;
491         
492         std::map<int, wxString> BusinessNoteList;
493         std::map<int, wxString> BusinessNoteListLanguage;               
494         std::map<int, wxString> BusinessNoteListAltID;
495         std::map<int, wxString> BusinessNoteListPID;
496         std::map<int, wxString> BusinessNoteListType;
497         std::map<int, wxString> BusinessNoteListTokens;
498         std::map<int, int> BusinessNoteListPref;                
499         
500         /* Items on the Categories tab */
501         
502         std::map<int, wxString> CategoriesList;
503         std::map<int, wxString> CategoriesListAltID;
504         std::map<int, wxString> CategoriesListPID;
505         std::map<int, wxString> CategoriesListType;
506         std::map<int, wxString> CategoriesListTokens;
507         std::map<int, wxString> CategoriesListLanguage;
508         std::map<int, int> CategoriesListPref;  
509         
510         /* Items on the Groups tab */
511         
512         std::map<int, wxString> GroupsList;
513         std::map<int, wxString> GroupsListAltID;
514         std::map<int, wxString> GroupsListPID;
515         std::map<int, wxString> GroupsListType;
516         std::map<int, wxString> GroupsListMediaType;
517         std::map<int, wxString> GroupsListTokens;
518         std::map<int, int> GroupsListPref;
519         
520         /* Items on the Pictures tab */
521         
522         std::map<int, std::string> PicturesList;
523         std::map<int, wxString> PicturesListAltID;
524         std::map<int, wxString> PicturesListPID;
525         std::map<int, wxString> PicturesListType;
526         std::map<int, wxString> PicturesListPicEncType;
527         std::map<int, wxString> PicturesListPictureType;
528         std::map<int, wxString> PicturesListTokens;
529         std::map<int, wxString> PicturesListMediatype;          
530         std::map<int, int> PicturesListPref;
532         /* Items on the Logos tab */
533         
534         std::map<int, std::string> LogosList;
535         std::map<int, wxString> LogosListAltID;
536         std::map<int, wxString> LogosListPID;
537         std::map<int, wxString> LogosListType;
538         std::map<int, wxString> LogosListPicEncType;            
539         std::map<int, wxString> LogosListPictureType;
540         std::map<int, wxString> LogosListTokens;
541         std::map<int, wxString> LogosListMediatype;             
542         std::map<int, int> LogosListPref;
543         
544         /* Items on the Sounds tab */
545         
546         std::map<int, std::string> SoundsList;
547         std::map<int, wxString> SoundsListAltID;
548         std::map<int, wxString> SoundsListPID;
549         std::map<int, wxString> SoundsListType;
550         std::map<int, wxString> SoundsListAudioEncType;         
551         std::map<int, wxString> SoundsListAudioType;            
552         std::map<int, wxString> SoundsListTokens;
553         std::map<int, wxString> SoundsListMediatype;
554         std::map<int, wxString> SoundsListLanguage;     
555         std::map<int, int> SoundsListPref;      
556         
557         /* Items on the Calendaring tab */
558         
559         std::map<int, wxString> CalendarList;
560         std::map<int, wxString> CalendarListAltID;
561         std::map<int, wxString> CalendarListPID;
562         std::map<int, wxString> CalendarListType;
563         std::map<int, wxString> CalendarListTokens;
564         std::map<int, wxString> CalendarListMediatype;          
565         std::map<int, int> CalendarListPref;
566         
567         std::map<int, wxString> CalendarRequestList;
568         std::map<int, wxString> CalendarRequestListAltID;
569         std::map<int, wxString> CalendarRequestListPID;
570         std::map<int, wxString> CalendarRequestListType;
571         std::map<int, wxString> CalendarRequestListTokens;
572         std::map<int, wxString> CalendarRequestListMediatype;           
573         std::map<int, int> CalendarRequestListPref;             
574                         
575         std::map<int, wxString> FreeBusyList;
576         std::map<int, wxString> FreeBusyListAltID;
577         std::map<int, wxString> FreeBusyListPID;
578         std::map<int, wxString> FreeBusyListType;
579         std::map<int, wxString> FreeBusyListTokens;
580         std::map<int, wxString> FreeBusyListMediatype;          
581         std::map<int, int> FreeBusyListPref;
582         
583         /* Items on the Security tab */
584         
585         std::map<int, wxString> KeyList;
586         std::map<int, wxString> KeyListAltID;
587         std::map<int, wxString> KeyListPID;
588         std::map<int, bool> KeyListKeyType;             
589         std::map<int, wxString> KeyListDataType;                
590         std::map<int, wxString> KeyListDataEncType;
591         std::map<int, wxString> KeyListType;
592         std::map<int, wxString> KeyListTokens;
593         std::map<int, int> KeyListPref;
594         
595         /* Items on the Other tab */
596                 
597         std::map<int, wxString> VendorList;
598         std::map<int, wxString> VendorListPEN;
599         std::map<int, wxString> VendorListElement;
600                 
601         std::map<int, wxString> XTokenList;             
602         std::map<int, wxString> XTokenListTokens;       
604         // Subroutines.
605         
606         ContactLoadStatus LoadFile(wxString Filename);
607         void ClearData();
609 };
611 void SplitValues(wxString *PropertyLine, 
612         std::map<int,int> *SplitPoints, 
613         std::map<int,int> *SplitLength, 
614         int intSize);
615         
616 void CheckType(wxString *PropertySeg1, 
617         std::map<int,int> *SplitPoints, 
618         std::map<int,int> *SplitLength, 
619         int *intPrevValue, 
620         PropertyType *intType);
622 void ProcessNameValue(wxString *PropertyData, 
623         wxString *PropertyName, 
624         wxString *PropertyValue);
626 void ProcessTokens(wxString *PropertyName,
627         wxString *PropertyValue,
628         wxString *PropertyTokens,
629         bool *FirstToken);
631 void ProcessIntegerValue(wxString *PropertyName,
632         wxString PropertyNameMatch,
633         std::map<int,int> *PrefPtr, 
634         wxString *PropertyValue, 
635         int *ItemCount,
636         bool *PropertyMatched);
638 void ProcessStringValue(wxString *PropertyName,
639         wxString PropertyNameMatch,
640         std::map<int,wxString> *MapPtr,
641         wxString *PropertyValue,
642         int *ItemCount,
643         bool *PropertyMatched);
645 #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