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