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