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