Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
b7c4e02ff9df370946f2d22cfd8c2447b8b865ad
[xestiaab/.git] / source / vcard / vcard.h
1 #include <iostream>
2 #include <wx/wx.h>
3 #include <wx/arrstr.h>
4 #include <map>
6 #ifndef VCARD_H
7 #define VCARD_H
9 struct ArrayvCardOutData {
10         wxArrayString PropData;
11         wxArrayString PropValues;
12         int PropCount = 0;
13 };
15 struct vCardName{
16         wxString Forename;
17         wxString Surname;
18         wxString OtherNames;
19         wxString Title;
20         wxString Suffix;
21 };
23 class vCard{
24 private:
25     wxArrayString SettingNames;
26     wxArrayString SettingValues;
27     int SettingCount;
28     bool vCardBegin;
29     bool vCardEnd;
30     bool vCardFN;
31     float vCardVersion;
32     wxString vCardFilename;
33     std::map<int,wxString> Cards;
34     void ProcessString(wxString *ContactData);
35 public:
36     vCard();
37     void Add(wxString SettingName, wxString SettingValue, bool ReplaceMode);
38     void AddRaw(wxString SettingName, wxString SettingValue);    
39     wxString Get(wxString SettingName);
40     vCardName GetName();
41     wxString GetById(int id);
42     ArrayvCardOutData GetByPartial(wxString SettingName);
43     int WriteFile(wxString WriteFilename);
44     int LoadFile(wxString LoadFilename);
45     int LoadString(wxString ContactData);
46     wxString WriteString();
47     bool MeetBaseSpecification();
48     wxString Convert(wxString SettingValue, bool ReplaceMode);
49     wxString GetFilename();
50     std::map<int,wxString>* GetAllCards();
51 };
53 #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