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