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