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