Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
e916b8ad6155192dd616afa7279defe7c89a1fe8
[xestiaab/.git] / source / vcard / vcard34conv.h
1 #include <iostream>
2 #include <wx/wx.h>
3 #include <wx/arrstr.h>
4 #include <map>
5 #include "vcard.h"
7 #ifndef VCARD34CONV_H
8 #define VCARD34CONV_H
10 class vCard34Conv{
11 private:
12     wxArrayString SettingNames;
13     wxArrayString SettingValues;
14     int SettingCount;
15     bool vCardBegin;
16     bool vCardEnd;
17     bool vCardFN;
18     float vCardVersion;
19 public:
20     vCard34Conv();
21     bool ConvertToV3(wxString Filename, wxString *wxSData);
22     bool ConvertToV4(wxString *wxSData, vCard *vCardOut);
23 private:
24     void SplitValues(wxString *PropertyLine, 
25         std::map<int,int> *SplitPoints, 
26         std::map<int,int> *SplitLength, 
27         int intSize);
28     void SplitValuesData(wxString *PropertyLine, 
29         std::map<int,int> *SplitPoints, 
30         std::map<int,int> *SplitLength, 
31         int intSize,
32         std::map<wxString, wxString> *SplitData);
33     void ConvertV4PropertyProc(wxString *wxSPropertyName, 
34         wxString *wxSPropertySeg1Ptr, wxString *wxSPropertySeg2Ptr, 
35         wxString *wxSPropertyPropValuesOut, wxString *wxSPropertyDataOut, 
36         wxString *wxSPropertyXVCard4Value, wxString *wxSPropertyDataNameOut,
37         std::map<wxString, wxString> *PropertyData, 
38         std::map<wxString, bool> *PropertyLock,
39         bool ProcessItemData, bool *VCardV3Value, bool *XVCardV4Value);
40         void ProcessCaptureStringsB () {} ;     
41         void ProcessCaptureStringsProc(wxString *strCapture);
42         
43         template<typename StringCapture, typename... Args>
44         void ProcessCaptureStringsB(StringCapture *string, Args*... args) {
46                 ProcessCaptureStringsProc(string);
47                 ProcessCaptureStringsB(args...);
49         }
50                 
51         template<typename... Args>
52         void ProcessCaptureStrings(Args*... args) {
54                 //int intSeekSelectedData = 0;
56                 ProcessCaptureStringsB(args...);
57         
58         }
59 };
61 #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