Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added SaveTitle function to the ContactDataObject
[xestiaab/.git] / source / contacteditor / cdo / ContactDataObject.h
index ebca7b6..b9bfdf1 100644 (file)
@@ -27,6 +27,8 @@
 #include "../../vcard/vcard.h"
 #include "../../common/textprocessing.h"
 
+using namespace std;
+
 enum ContactLoadStatus{
        CONTACTLOAD_UNITTESTFAIL = -1,
        CONTACTLOAD_OK,
@@ -36,6 +38,11 @@ enum ContactLoadStatus{
        CONTACTLOAD_FILEBASESPECFAIL
 };
 
+enum ContactSaveStatus{
+       CONTACTSAVE_UNITTESTFAIL = -1,
+       CONTACTSAVE_OK, 
+};
+
 enum ContactKindType{
        CONTACTKIND_NONE,
        CONTACTKIND_INDIVIDUAL,
@@ -88,6 +95,13 @@ class ContactDataObject{
        void ProcessCalendarFreeBusy(wxString PropertySeg1, wxString PropertySeg2, int *FreeBusyAddressCount);
        void ProcessKey(wxString PropertySeg1, wxString PropertySeg2, int *KeyCount);
        void ProcessVendor(wxString PropertySeg1, wxString PropertySeg2, int *VendorCount);
+       
+       // Save functions
+       
+       void SaveTitle(map<int, wxString> *TitleList, map<int, wxString> *TitleListLanguage,
+               map<int, wxString> *TitleListAltID, map<int, wxString> *TitleListPID,
+               map<int, wxString> *TitleListType, map<int, int> *TitleListPref,
+               map<int, wxString> *TitleListTokens, wxString *SaveData, wxString DataType);
 
        public:
 
@@ -610,6 +624,8 @@ class ContactDataObject{
        // Subroutines.
        
        ContactLoadStatus LoadFile(wxString Filename);
+       ContactSaveStatus SaveFile(wxString Filename);
+       ContactSaveStatus SaveString(wxString *Data);
        void ClearData();
 
 };
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