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