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