Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added TZ to the SaveString function of ContactDataObject
[xestiaab/.git] / source / contacteditor / cdo / ContactDataObject.h
1 // ContactDataObject.h - Client Data Object header.
2 //
3 // (c) 2012-2016 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 using namespace std;
32 enum ContactLoadStatus{
33         CONTACTLOAD_UNITTESTFAIL = -1,
34         CONTACTLOAD_OK,
35         CONTACTLOAD_FILEMISSING,
36         CONTACTLOAD_FILEERROR,
37         CONTACTLOAD_FILEINVALIDFORMAT,
38         CONTACTLOAD_FILEBASESPECFAIL
39 };
41 enum ContactSaveStatus{
42         CONTACTSAVE_UNITTESTFAIL = -1,
43         CONTACTSAVE_OK, 
44 };
46 enum ContactKindType{
47         CONTACTKIND_NONE,
48         CONTACTKIND_INDIVIDUAL,
49         CONTACTKIND_GROUP,
50         CONTACTKIND_ORGANISATION,
51         CONTACTKIND_LOCATION
52 };
54 enum PropertyType{
55         PROPERTY_NONE,
56         PROPERTY_HOME,
57         PROPERTY_WORK
58 };
60 class ContactDataObject{
62         private:
63         
64         void ProcessKind(wxString KindData);
65         void ProcessRevision(wxString PropertySeg1, wxString PropertySeg2);
66         void ProcessSource(wxString PropertySeg1, wxString PropertySeg2, int *SourceCount);
67         void ProcessXML(wxString PropertySeg1, wxString PropertySeg2, int *XMLCount);
68         void ProcessMember(wxString PropertySeg1, wxString PropertySeg2, int *GroupCount);
69         void ProcessFN(wxString PropertySeg1, wxString PropertySeg2, int *FNCount);
70         void ProcessN(wxString PropertySeg1, wxString PropertySeg2);
71         void ProcessClientPIDMap(wxString PropertySeg1, wxString PropertySeg2, int *ClientPIDCount);
72         void ProcessNickname(wxString PropertySeg1, wxString PropertySeg2, int *NicknameCount);
73         void ProcessGender(wxString PropertySeg1, wxString PropertySeg2);
74         void ProcessBirthday(wxString PropertySeg1, wxString PropertySeg2);
75         void ProcessAnniversary(wxString PropertySeg1, wxString PropertySeg2);
76         void ProcessTimeZone(wxString PropertySeg1, wxString PropertySeg2, int *TimeZoneCount);
77         void ProcessAddress(wxString PropertySeg1, wxString PropertySeg2, int *AddressCount);
78         void ProcessEmail(wxString PropertySeg1, wxString PropertySeg2, int *EmailCount);
79         void ProcessIM(wxString PropertySeg1, wxString PropertySeg2, int *IMCount);
80         void ProcessTelephone(wxString PropertySeg1, wxString PropertySeg2, int *TelephoneCount);
81         void ProcessLanguage(wxString PropertySeg1, wxString PropertySeg2, int *LanguageCount);
82         void ProcessGeographic(wxString PropertySeg1, wxString PropertySeg2, int *GeographicCount);
83         void ProcessRelated(wxString PropertySeg1, wxString PropertySeg2, int *RelatedCount);
84         void ProcessURL(wxString PropertySeg1, wxString PropertySeg2, int *URLCount);
85         void ProcessTitle(wxString PropertySeg1, wxString PropertySeg2, int *TitleCount);
86         void ProcessRole(wxString PropertySeg1, wxString PropertySeg2, int *RoleCount);
87         void ProcessOrganisation(wxString PropertySeg1, wxString PropertySeg2, int *OrganisationCount);
88         void ProcessNote(wxString PropertySeg1, wxString PropertySeg2, int *NoteCount);
89         void ProcessCategory(wxString PropertySeg1, wxString PropertySeg2, int *CategoryCount);
90         void ProcessPhoto(wxString PropertySeg1, wxString PropertySeg2, int *PhotoCount);
91         void ProcessLogo(wxString PropertySeg1, wxString PropertySeg2, int *LogoCount);
92         void ProcessSound(wxString PropertySeg1, wxString PropertySeg2, int *SoundCount);
93         void ProcessCalendarURI(wxString PropertySeg1, wxString PropertySeg2, int *CalAdrCount);
94         void ProcessCalendarAddressURI(wxString PropertySeg1, wxString PropertySeg2, int *CalAdrURICount);
95         void ProcessCalendarFreeBusy(wxString PropertySeg1, wxString PropertySeg2, int *FreeBusyAddressCount);
96         void ProcessKey(wxString PropertySeg1, wxString PropertySeg2, int *KeyCount);
97         void ProcessVendor(wxString PropertySeg1, wxString PropertySeg2, int *VendorCount);
98         
99         // Save functions
100         
101         void SaveTitle(map<int, wxString> *TitleList, map<int, wxString> *TitleListLanguage,
102                 map<int, wxString> *TitleListAltID, map<int, wxString> *TitleListPID,
103                 map<int, wxString> *TitleListType, map<int, int> *TitleListPref,
104                 map<int, wxString> *TitleListTokens, wxString *SaveData, wxString DataType);
105         void SaveSource(map<int, wxString> *SourceList, map<int, wxString> *SourceListAltID, 
106                 map<int, wxString> *SourceListPID, map<int, wxString> *SourceListType,
107                 map<int, wxString> *SourceListMediatype, map<int, int> *SourceListPref, 
108                 map<int, wxString> *SourceListTokens, wxString *SaveData);
109         void SaveNickname(map<int, wxString> *NicknameList, map<int, wxString> *NicknameListAltID, 
110                 map<int, wxString> *NicknameListPID, map<int, wxString> *NicknameListType,
111                 map<int, wxString> *NicknameListLanguage, map<int, int> *NicknameListPref, 
112                 map<int, wxString> *NicknameListTokens, wxString *SaveData, wxString DataType);
113         void SaveTimezone(map<int, wxString> *TZList, map<int, wxString> *TZListAltID, 
114                 map<int, wxString> *TZListPID, map<int, wxString> *TZListType,
115                 map<int, wxString> *TZListMediatype, map<int, int> *TZListPref, 
116                 map<int, wxString> *TZListTokens, wxString *SaveData, wxString DataType);
118         public:
120         ContactKindType ContactKind = CONTACTKIND_NONE;
122         /* Items on General Tab */
124         wxString NameTitle;
125         wxString NameForename;
126         wxString NameSurname;
127         wxString NameOtherNames;
128         wxString NameSuffix;
129         wxString NameNickname;
130         wxString NameDisplayAs;
131         wxString NameLanguage;
132         wxString NameAltID;
133         wxString NameTokens;
134         
135         wxString Birthday;
136         wxString BirthdayAltID;
137         wxString BirthdayCalScale;
138         wxString BirthdayTokens;
139         bool BirthdayText = FALSE;
140         
141         wxString Anniversary;
142         wxString AnniversaryAltID;
143         wxString AnniversaryCalScale;
144         wxString AnniversaryTokens;
145         bool AnniversaryText = FALSE;
146         
147         wxString Gender;
148         wxString GenderDetails;
149         wxString GenderTokens;
150         
151         wxString UIDToken;
152         wxString Revision;
153         wxString RevisionTokens;
154         
155         std::map<int, wxString> SourceList;
156         std::map<int, wxString> SourceListAltID;
157         std::map<int, wxString> SourceListPID;
158         std::map<int, wxString> SourceListType;
159         std::map<int, wxString> SourceListTokens;
160         std::map<int, wxString> SourceListMediatype;            
161         std::map<int, int> SourceListPref;
162         
163         std::map<int, wxString> XMLList;
164         std::map<int, wxString> XMLListAltID;
166         std::map<int, wxString> ClientPIDList;
167         std::map<int, wxString> ClientPIDListTokens;
169         std::map<int, wxString> FullNamesList;  
170         std::map<int, wxString> FullNamesListType;
171         std::map<int, wxString> FullNamesListLanguage;
172         std::map<int, wxString> FullNamesListAltID;
173         std::map<int, wxString> FullNamesListPID;
174         std::map<int, wxString> FullNamesListTokens;
175         std::map<int, int> FullNamesListPref;
176         
177         std::map<int, wxString> GeneralNicknamesList;
178         std::map<int, wxString> GeneralNicknamesListType;
179         std::map<int, wxString> GeneralNicknamesListLanguage;
180         std::map<int, wxString> GeneralNicknamesListAltID;
181         std::map<int, wxString> GeneralNicknamesListPID;
182         std::map<int, wxString> GeneralNicknamesListTokens;             
183         std::map<int, int> GeneralNicknamesListPref;            
185         std::map<int, wxString> GeneralAddressList;
186         std::map<int, wxString> GeneralAddressListTown;
187         std::map<int, wxString> GeneralAddressListCounty;
188         std::map<int, wxString> GeneralAddressListPostCode;
189         std::map<int, wxString> GeneralAddressListCountry;
190         std::map<int, wxString> GeneralAddressListLabel;
191         std::map<int, wxString> GeneralAddressListLang;         
192         std::map<int, wxString> GeneralAddressListAltID;
193         std::map<int, wxString> GeneralAddressListPID;
194         std::map<int, wxString> GeneralAddressListTokens;
195         std::map<int, wxString> GeneralAddressListGeo;
196         std::map<int, wxString> GeneralAddressListTimezone;             
197         std::map<int, wxString> GeneralAddressListType;
198         std::map<int, wxString> GeneralAddressListMediatype;
199         std::map<int, int> GeneralAddressListPref;
200         
201         std::map<int, wxString> GeneralEmailList;
202         std::map<int, wxString> GeneralEmailListAltID;
203         std::map<int, wxString> GeneralEmailListPID;
204         std::map<int, wxString> GeneralEmailListType;
205         std::map<int, wxString> GeneralEmailListTokens;
206         std::map<int, int> GeneralEmailListPref;
207         
208         std::map<int, wxString> GeneralIMList;
209         std::map<int, wxString> GeneralIMListAltID;
210         std::map<int, wxString> GeneralIMListPID;
211         std::map<int, wxString> GeneralIMListType;
212         std::map<int, wxString> GeneralIMListTypeInfo;
213         std::map<int, wxString> GeneralIMListTokens;
214         std::map<int, wxString> GeneralIMListMediatype;
215         std::map<int, int> GeneralIMListPref;
216         
217         std::map<int, wxString> GeneralTelephoneList;
218         std::map<int, wxString> GeneralTelephoneListAltID;
219         std::map<int, wxString> GeneralTelephoneListPID;
220         std::map<int, wxString> GeneralTelephoneListType;
221         std::map<int, wxString> GeneralTelephoneListTokens;
222         std::map<int, wxString> GeneralTelephoneListTypeInfo;
223         std::map<int, wxString> GeneralTelephoneListDataType;
224         std::map<int, int> GeneralTelephoneListPref;
225         
226         std::map<int, wxString> GeneralLanguageList;
227         std::map<int, wxString> GeneralLanguageListAltID;
228         std::map<int, wxString> GeneralLanguageListPID;
229         std::map<int, wxString> GeneralLanguageListType;
230         std::map<int, wxString> GeneralLanguageListTokens;
231         std::map<int, int> GeneralLanguageListPref;
232         
233         std::map<int, wxString> GeneralTZList;
234         std::map<int, wxString> GeneralTZListAltID;
235         std::map<int, wxString> GeneralTZListPID;
236         std::map<int, wxString> GeneralTZListType;
237         std::map<int, wxString> GeneralTZListTokens;
238         std::map<int, wxString> GeneralTZListMediatype;
239         std::map<int, int> GeneralTZListPref;
240         
241         std::map<int, wxString> GeneralGeographyList;
242         std::map<int, wxString> GeneralGeographyListAltID;
243         std::map<int, wxString> GeneralGeographyListPID;
244         std::map<int, wxString> GeneralGeographyListType;
245         std::map<int, wxString> GeneralGeographyListTokens;
246         std::map<int, wxString> GeneralGeographyListMediatype;
247         std::map<int, wxString> GeneralGeographyListDataType;
248         std::map<int, int> GeneralGeographyListPref;
250         std::map<int, wxString> GeneralRelatedList;
251         std::map<int, wxString> GeneralRelatedListRelType;
252         std::map<int, wxString> GeneralRelatedListLanguage;
253         std::map<int, wxString> GeneralRelatedListAltID;
254         std::map<int, wxString> GeneralRelatedListPID;
255         std::map<int, wxString> GeneralRelatedListType;
256         std::map<int, wxString> GeneralRelatedListTokens;
257         std::map<int, int> GeneralRelatedListPref;
258         
259         std::map<int, wxString> GeneralWebsiteList;
260         std::map<int, wxString> GeneralWebsiteListAltID;
261         std::map<int, wxString> GeneralWebsiteListPID;
262         std::map<int, wxString> GeneralWebsiteListType;
263         std::map<int, wxString> GeneralWebsiteListTokens;
264         std::map<int, wxString> GeneralWebsiteListMediatype;
265         std::map<int, int> GeneralWebsiteListPref;
266         
267         std::map<int, wxString> GeneralTitleList;
268         std::map<int, wxString> GeneralTitleListLanguage;               
269         std::map<int, wxString> GeneralTitleListAltID;
270         std::map<int, wxString> GeneralTitleListPID;
271         std::map<int, wxString> GeneralTitleListType;
272         std::map<int, wxString> GeneralTitleListTokens;
273         std::map<int, int> GeneralTitleListPref;
274         
275         std::map<int, wxString> GeneralRoleList;
276         std::map<int, wxString> GeneralRoleListLanguage;                
277         std::map<int, wxString> GeneralRoleListAltID;
278         std::map<int, wxString> GeneralRoleListPID;
279         std::map<int, wxString> GeneralRoleListType;
280         std::map<int, wxString> GeneralRoleListTokens;
281         std::map<int, int> GeneralRoleListPref;
282         
283         std::map<int, wxString> GeneralOrganisationsList;
284         std::map<int, wxString> GeneralOrganisationsListLanguage;               
285         std::map<int, wxString> GeneralOrganisationsListAltID;
286         std::map<int, wxString> GeneralOrganisationsListPID;
287         std::map<int, wxString> GeneralOrganisationsListType;
288         std::map<int, wxString> GeneralOrganisationsListTokens;
289         std::map<int, wxString> GeneralOrganisationsListSortAs;
290         std::map<int, int> GeneralOrganisationsListPref;
292         std::map<int, wxString> GeneralNoteList;
293         std::map<int, wxString> GeneralNoteListLanguage;                
294         std::map<int, wxString> GeneralNoteListAltID;
295         std::map<int, wxString> GeneralNoteListPID;
296         std::map<int, wxString> GeneralNoteListType;
297         std::map<int, wxString> GeneralNoteListTokens;
298         std::map<int, int> GeneralNoteListPref;
299         
300         /* Items on Home Tab */         
301         
302         std::map<int, wxString> HomeNicknamesList;
303         std::map<int, wxString> HomeNicknamesListType;
304         std::map<int, wxString> HomeNicknamesListLanguage;
305         std::map<int, wxString> HomeNicknamesListAltID;
306         std::map<int, wxString> HomeNicknamesListPID;
307         std::map<int, wxString> HomeNicknamesListTokens;                
308         std::map<int, int> HomeNicknamesListPref;               
309         
310         std::map<int, wxString> HomeAddressList;
311         std::map<int, wxString> HomeAddressListTown;
312         std::map<int, wxString> HomeAddressListCounty;
313         std::map<int, wxString> HomeAddressListPostCode;
314         std::map<int, wxString> HomeAddressListCountry;
315         std::map<int, wxString> HomeAddressListLabel;
316         std::map<int, wxString> HomeAddressListLang;            
317         std::map<int, wxString> HomeAddressListAltID;
318         std::map<int, wxString> HomeAddressListPID;
319         std::map<int, wxString> HomeAddressListTokens;
320         std::map<int, wxString> HomeAddressListGeo;
321         std::map<int, wxString> HomeAddressListTimezone;                
322         std::map<int, wxString> HomeAddressListType;
323         std::map<int, wxString> HomeAddressListMediatype;
324         std::map<int, int> HomeAddressListPref;
325         
326         std::map<int, wxString> HomeEmailList;
327         std::map<int, wxString> HomeEmailListAltID;
328         std::map<int, wxString> HomeEmailListPID;
329         std::map<int, wxString> HomeEmailListType;
330         std::map<int, wxString> HomeEmailListTokens;
331         std::map<int, int> HomeEmailListPref;
332         
333         std::map<int, wxString> HomeIMList;
334         std::map<int, wxString> HomeIMListAltID;
335         std::map<int, wxString> HomeIMListPID;
336         std::map<int, wxString> HomeIMListType;
337         std::map<int, wxString> HomeIMListTypeInfo;
338         std::map<int, wxString> HomeIMListTokens;
339         std::map<int, wxString> HomeIMListMediatype;
340         std::map<int, int> HomeIMListPref;
341         
342         std::map<int, wxString> HomeTelephoneList;
343         std::map<int, wxString> HomeTelephoneListAltID;
344         std::map<int, wxString> HomeTelephoneListPID;
345         std::map<int, wxString> HomeTelephoneListType;
346         std::map<int, wxString> HomeTelephoneListTokens;
347         std::map<int, wxString> HomeTelephoneListTypeInfo;
348         std::map<int, wxString> HomeTelephoneListDataType;
349         std::map<int, int> HomeTelephoneListPref;
350         
351         std::map<int, wxString> HomeLanguageList;
352         std::map<int, wxString> HomeLanguageListAltID;
353         std::map<int, wxString> HomeLanguageListPID;
354         std::map<int, wxString> HomeLanguageListType;
355         std::map<int, wxString> HomeLanguageListTokens;
356         std::map<int, int> HomeLanguageListPref;
357         
358         std::map<int, wxString> HomeTZList;
359         std::map<int, wxString> HomeTZListAltID;
360         std::map<int, wxString> HomeTZListPID;
361         std::map<int, wxString> HomeTZListType;
362         std::map<int, wxString> HomeTZListTokens;
363         std::map<int, wxString> HomeTZListMediatype;
364         std::map<int, int> HomeTZListPref;
365         
366         std::map<int, wxString> HomeGeographyList;
367         std::map<int, wxString> HomeGeographyListAltID;
368         std::map<int, wxString> HomeGeographyListPID;
369         std::map<int, wxString> HomeGeographyListType;
370         std::map<int, wxString> HomeGeographyListTokens;
371         std::map<int, wxString> HomeGeographyListMediatype;
372         std::map<int, wxString> HomeGeographyListDataType;
373         std::map<int, int> HomeGeographyListPref;
374         
375         std::map<int, wxString> HomeWebsiteList;
376         std::map<int, wxString> HomeWebsiteListAltID;
377         std::map<int, wxString> HomeWebsiteListPID;
378         std::map<int, wxString> HomeWebsiteListType;
379         std::map<int, wxString> HomeWebsiteListTokens;
380         std::map<int, wxString> HomeWebsiteListMediatype;
381         std::map<int, int> HomeWebsiteListPref;
382         
383         std::map<int, wxString> HomeTitleList;
384         std::map<int, wxString> HomeTitleListLanguage;
385         std::map<int, wxString> HomeTitleListAltID;
386         std::map<int, wxString> HomeTitleListPID;
387         std::map<int, wxString> HomeTitleListType;
388         std::map<int, wxString> HomeTitleListTokens;
389         std::map<int, int> HomeTitleListPref;
390         
391         std::map<int, wxString> HomeRoleList;
392         std::map<int, wxString> HomeRoleListLanguage;           
393         std::map<int, wxString> HomeRoleListAltID;
394         std::map<int, wxString> HomeRoleListPID;
395         std::map<int, wxString> HomeRoleListType;
396         std::map<int, wxString> HomeRoleListTokens;
397         std::map<int, int> HomeRoleListPref;
398         
399         std::map<int, wxString> HomeOrganisationsList;
400         std::map<int, wxString> HomeOrganisationsListLanguage;          
401         std::map<int, wxString> HomeOrganisationsListAltID;
402         std::map<int, wxString> HomeOrganisationsListPID;
403         std::map<int, wxString> HomeOrganisationsListType;
404         std::map<int, wxString> HomeOrganisationsListTokens;
405         std::map<int, wxString> HomeOrganisationsListSortAs;
406         std::map<int, int> HomeOrganisationsListPref;
407         
408         std::map<int, wxString> HomeNoteList;
409         std::map<int, wxString> HomeNoteListLanguage;           
410         std::map<int, wxString> HomeNoteListAltID;
411         std::map<int, wxString> HomeNoteListPID;
412         std::map<int, wxString> HomeNoteListType;
413         std::map<int, wxString> HomeNoteListTokens;
414         std::map<int, int> HomeNoteListPref;            
416         /* Items on the Business tab */
417         
418         std::map<int, wxString> BusinessNicknamesList;
419         std::map<int, wxString> BusinessNicknamesListType;
420         std::map<int, wxString> BusinessNicknamesListLanguage;
421         std::map<int, wxString> BusinessNicknamesListAltID;
422         std::map<int, wxString> BusinessNicknamesListPID;
423         std::map<int, wxString> BusinessNicknamesListTokens;            
424         std::map<int, int> BusinessNicknamesListPref;           
425         
426         std::map<int, wxString> BusinessAddressList;
427         std::map<int, wxString> BusinessAddressListTown;
428         std::map<int, wxString> BusinessAddressListCounty;
429         std::map<int, wxString> BusinessAddressListPostCode;
430         std::map<int, wxString> BusinessAddressListCountry;
431         std::map<int, wxString> BusinessAddressListLabel;
432         std::map<int, wxString> BusinessAddressListLang;                
433         std::map<int, wxString> BusinessAddressListAltID;
434         std::map<int, wxString> BusinessAddressListPID;
435         std::map<int, wxString> BusinessAddressListTokens;
436         std::map<int, wxString> BusinessAddressListGeo;
437         std::map<int, wxString> BusinessAddressListTimezone;            
438         std::map<int, wxString> BusinessAddressListType;
439         std::map<int, wxString> BusinessAddressListMediatype;
440         std::map<int, int> BusinessAddressListPref;
441         
442         std::map<int, wxString> BusinessEmailList;
443         std::map<int, wxString> BusinessEmailListAltID;
444         std::map<int, wxString> BusinessEmailListPID;
445         std::map<int, wxString> BusinessEmailListType;
446         std::map<int, wxString> BusinessEmailListTokens;
447         std::map<int, int> BusinessEmailListPref;
448         
449         std::map<int, wxString> BusinessIMList;
450         std::map<int, wxString> BusinessIMListAltID;
451         std::map<int, wxString> BusinessIMListPID;
452         std::map<int, wxString> BusinessIMListType;
453         std::map<int, wxString> BusinessIMListTypeInfo;
454         std::map<int, wxString> BusinessIMListTokens;
455         std::map<int, wxString> BusinessIMListMediatype;
456         std::map<int, int> BusinessIMListPref;
457         
458         std::map<int, wxString> BusinessTelephoneList;
459         std::map<int, wxString> BusinessTelephoneListAltID;
460         std::map<int, wxString> BusinessTelephoneListPID;
461         std::map<int, wxString> BusinessTelephoneListType;
462         std::map<int, wxString> BusinessTelephoneListTypeInfo;
463         std::map<int, wxString> BusinessTelephoneListTokens;
464         std::map<int, wxString> BusinessTelephoneListDataType;
465         std::map<int, int> BusinessTelephoneListPref;
466         
467         std::map<int, wxString> BusinessLanguageList;
468         std::map<int, wxString> BusinessLanguageListAltID;
469         std::map<int, wxString> BusinessLanguageListPID;
470         std::map<int, wxString> BusinessLanguageListType;
471         std::map<int, wxString> BusinessLanguageListTokens;
472         std::map<int, int> BusinessLanguageListPref;
473         
474         std::map<int, wxString> BusinessTZList;
475         std::map<int, wxString> BusinessTZListAltID;
476         std::map<int, wxString> BusinessTZListPID;
477         std::map<int, wxString> BusinessTZListType;
478         std::map<int, wxString> BusinessTZListTokens;
479         std::map<int, wxString> BusinessTZListMediatype;
480         std::map<int, int> BusinessTZListPref;
481         
482         std::map<int, wxString> BusinessGeographyList;
483         std::map<int, wxString> BusinessGeographyListAltID;
484         std::map<int, wxString> BusinessGeographyListPID;
485         std::map<int, wxString> BusinessGeographyListType;
486         std::map<int, wxString> BusinessGeographyListTokens;
487         std::map<int, wxString> BusinessGeographyListMediatype;
488         std::map<int, wxString> BusinessGeographyListDataType;
489         std::map<int, int> BusinessGeographyListPref;                   
490         
491         std::map<int, wxString> BusinessWebsiteList;
492         std::map<int, wxString> BusinessWebsiteListAltID;
493         std::map<int, wxString> BusinessWebsiteListPID;
494         std::map<int, wxString> BusinessWebsiteListType;
495         std::map<int, wxString> BusinessWebsiteListTokens;
496         std::map<int, wxString> BusinessWebsiteListMediatype;
497         std::map<int, int> BusinessWebsiteListPref;
498         
499         std::map<int, wxString> BusinessTitleList;
500         std::map<int, wxString> BusinessTitleListLanguage;              
501         std::map<int, wxString> BusinessTitleListAltID;
502         std::map<int, wxString> BusinessTitleListPID;
503         std::map<int, wxString> BusinessTitleListType;
504         std::map<int, wxString> BusinessTitleListTokens;
505         std::map<int, int> BusinessTitleListPref;
506         
507         std::map<int, wxString> BusinessRoleList;
508         std::map<int, wxString> BusinessRoleListLanguage;               
509         std::map<int, wxString> BusinessRoleListAltID;
510         std::map<int, wxString> BusinessRoleListPID;
511         std::map<int, wxString> BusinessRoleListType;
512         std::map<int, wxString> BusinessRoleListTokens;
513         std::map<int, int> BusinessRoleListPref;
514         
515         std::map<int, wxString> BusinessOrganisationsList;
516         std::map<int, wxString> BusinessOrganisationsListLanguage;              
517         std::map<int, wxString> BusinessOrganisationsListAltID;
518         std::map<int, wxString> BusinessOrganisationsListPID;
519         std::map<int, wxString> BusinessOrganisationsListType;
520         std::map<int, wxString> BusinessOrganisationsListTokens;
521         std::map<int, wxString> BusinessOrganisationsListSortAs;                
522         std::map<int, int> BusinessOrganisationsListPref;
523         
524         std::map<int, wxString> BusinessNoteList;
525         std::map<int, wxString> BusinessNoteListLanguage;               
526         std::map<int, wxString> BusinessNoteListAltID;
527         std::map<int, wxString> BusinessNoteListPID;
528         std::map<int, wxString> BusinessNoteListType;
529         std::map<int, wxString> BusinessNoteListTokens;
530         std::map<int, int> BusinessNoteListPref;                
531         
532         /* Items on the Categories tab */
533         
534         std::map<int, wxString> CategoriesList;
535         std::map<int, wxString> CategoriesListAltID;
536         std::map<int, wxString> CategoriesListPID;
537         std::map<int, wxString> CategoriesListType;
538         std::map<int, wxString> CategoriesListTokens;
539         std::map<int, wxString> CategoriesListLanguage;
540         std::map<int, int> CategoriesListPref;  
541         
542         /* Items on the Groups tab */
543         
544         std::map<int, wxString> GroupsList;
545         std::map<int, wxString> GroupsListAltID;
546         std::map<int, wxString> GroupsListPID;
547         std::map<int, wxString> GroupsListType;
548         std::map<int, wxString> GroupsListMediaType;
549         std::map<int, wxString> GroupsListTokens;
550         std::map<int, int> GroupsListPref;
551         
552         /* Items on the Pictures tab */
553         
554         std::map<int, std::string> PicturesList;
555         std::map<int, wxString> PicturesListAltID;
556         std::map<int, wxString> PicturesListPID;
557         std::map<int, wxString> PicturesListType;
558         std::map<int, wxString> PicturesListPicEncType;
559         std::map<int, wxString> PicturesListPictureType;
560         std::map<int, wxString> PicturesListTokens;
561         std::map<int, wxString> PicturesListMediatype;          
562         std::map<int, int> PicturesListPref;
564         /* Items on the Logos tab */
565         
566         std::map<int, std::string> LogosList;
567         std::map<int, wxString> LogosListAltID;
568         std::map<int, wxString> LogosListPID;
569         std::map<int, wxString> LogosListType;
570         std::map<int, wxString> LogosListPicEncType;            
571         std::map<int, wxString> LogosListPictureType;
572         std::map<int, wxString> LogosListTokens;
573         std::map<int, wxString> LogosListMediatype;             
574         std::map<int, int> LogosListPref;
575         
576         /* Items on the Sounds tab */
577         
578         std::map<int, std::string> SoundsList;
579         std::map<int, wxString> SoundsListAltID;
580         std::map<int, wxString> SoundsListPID;
581         std::map<int, wxString> SoundsListType;
582         std::map<int, wxString> SoundsListAudioEncType;         
583         std::map<int, wxString> SoundsListAudioType;            
584         std::map<int, wxString> SoundsListTokens;
585         std::map<int, wxString> SoundsListMediatype;
586         std::map<int, wxString> SoundsListLanguage;     
587         std::map<int, int> SoundsListPref;      
588         
589         /* Items on the Calendaring tab */
590         
591         std::map<int, wxString> CalendarList;
592         std::map<int, wxString> CalendarListAltID;
593         std::map<int, wxString> CalendarListPID;
594         std::map<int, wxString> CalendarListType;
595         std::map<int, wxString> CalendarListTokens;
596         std::map<int, wxString> CalendarListMediatype;          
597         std::map<int, int> CalendarListPref;
598         
599         std::map<int, wxString> CalendarRequestList;
600         std::map<int, wxString> CalendarRequestListAltID;
601         std::map<int, wxString> CalendarRequestListPID;
602         std::map<int, wxString> CalendarRequestListType;
603         std::map<int, wxString> CalendarRequestListTokens;
604         std::map<int, wxString> CalendarRequestListMediatype;           
605         std::map<int, int> CalendarRequestListPref;             
606                         
607         std::map<int, wxString> FreeBusyList;
608         std::map<int, wxString> FreeBusyListAltID;
609         std::map<int, wxString> FreeBusyListPID;
610         std::map<int, wxString> FreeBusyListType;
611         std::map<int, wxString> FreeBusyListTokens;
612         std::map<int, wxString> FreeBusyListMediatype;          
613         std::map<int, int> FreeBusyListPref;
614         
615         /* Items on the Security tab */
616         
617         std::map<int, wxString> KeyList;
618         std::map<int, wxString> KeyListAltID;
619         std::map<int, wxString> KeyListPID;
620         std::map<int, bool> KeyListKeyType;             
621         std::map<int, wxString> KeyListDataType;                
622         std::map<int, wxString> KeyListDataEncType;
623         std::map<int, wxString> KeyListType;
624         std::map<int, wxString> KeyListTokens;
625         std::map<int, int> KeyListPref;
626         
627         /* Items on the Other tab */
628                 
629         std::map<int, wxString> VendorList;
630         std::map<int, wxString> VendorListPEN;
631         std::map<int, wxString> VendorListElement;
632                 
633         std::map<int, wxString> XTokenList;             
634         std::map<int, wxString> XTokenListTokens;       
636         // Subroutines.
637         
638         ContactLoadStatus LoadFile(wxString Filename);
639         ContactSaveStatus SaveFile(wxString Filename);
640         ContactSaveStatus SaveString(wxString *Data);
641         void ClearData();
643 };
645 void SplitValues(wxString *PropertyLine, 
646         std::map<int,int> *SplitPoints, 
647         std::map<int,int> *SplitLength, 
648         int intSize);
649         
650 void CheckType(wxString *PropertySeg1, 
651         std::map<int,int> *SplitPoints, 
652         std::map<int,int> *SplitLength, 
653         int *intPrevValue, 
654         PropertyType *intType);
656 void ProcessNameValue(wxString *PropertyData, 
657         wxString *PropertyName, 
658         wxString *PropertyValue);
660 void ProcessTokens(wxString *PropertyName,
661         wxString *PropertyValue,
662         wxString *PropertyTokens,
663         bool *FirstToken);
665 void ProcessIntegerValue(wxString *PropertyName,
666         wxString PropertyNameMatch,
667         std::map<int,int> *PrefPtr, 
668         wxString *PropertyValue, 
669         int *ItemCount,
670         bool *PropertyMatched);
672 void ProcessStringValue(wxString *PropertyName,
673         wxString PropertyNameMatch,
674         std::map<int,wxString> *MapPtr,
675         wxString *PropertyValue,
676         int *ItemCount,
677         bool *PropertyMatched);
679 #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