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