#include <wx/file.h>
#include <map>
#include <wx/tokenzr.h>
+#include <stdexcept>
#include "../../vcard/vcard.h"
#include "../../common/textprocessing.h"
enum ContactSaveStatus{
CONTACTSAVE_UNITTESTFAIL = -1,
- CONTACTSAVE_OK,
+ CONTACTSAVE_OK,
+ CONTACTSAVE_FILEERROR,
+ CONTACTSAVE_WRITEERROR
};
enum ContactKindType{
wxString *SaveData, wxString DataType);
void SaveIMPP(map<int, wxString> *IMList, map<int, wxString> *IMListAltID,
map<int, wxString> *IMListPID, map<int, wxString> *IMListType,
- map<int, wxString> *IMListTypeInfo, map<int, wxString> *IMListMediatype,
+ map<int, wxString> *IMListTypeInfo, map<int, wxString> *IMListDataType,
map<int, int> *IMListPref, map<int, wxString> *IMListTokens,
wxString *SaveData, wxString DataType);
+ void SaveTelephone(map<int, wxString> *TelephoneList, map<int, wxString> *TelephoneListAltID,
+ map<int, wxString> *TelephoneListPID, map<int, wxString> *TelephoneListType,
+ map<int, wxString> *TelephoneListTypeInfo, map<int, wxString> *TelephoneListMediatype,
+ map<int, int> *TelephoneListPref, map<int, wxString> *TelephoneListTokens,
+ wxString *SaveData, wxString DataType);
void SaveLanguage(map<int, wxString> *LanguageList, map<int, wxString> *LanguageListAltID,
map<int, wxString> *LanguageListPID, map<int, wxString> *LanguageListType,
map<int, int> *LangaugeListPref, map<int, wxString> *LanguageListTokens,