wxString FileTypes;
- long ContactsExported = 0;
+ long ContactsImported = 0;
long ContactsCollected = 0;
- int ExportType = 0;
- int ExportCount = 0;
+ int ImportType = 0;
wxString FinalFilename;
wxArrayString SelectedFileList;
wxString SelectedFileDirectory;
FileTypes.Append(wxT("vCard 3.0 Contact(s) (*.vcf)"));
FileTypes.Append(wxT("|*.vcf"));
- // Open up the dialog to export file data.
+ // Open up the dialog to import file data.
- wxFileDialog ExportDlg(frmMainPtrInc, wxT("Import Contacts"), wxT(""), wxT(""),
+ wxFileDialog ImportDlg(frmMainPtrInc, wxT("Import Contacts"), wxT(""), wxT(""),
FileTypes, wxFD_OPEN|wxFD_MULTIPLE);
- if (ExportDlg.ShowModal() == wxID_CANCEL){
+ if (ImportDlg.ShowModal() == wxID_CANCEL){
frmMainPtrInc->ResumeAllTimers();
return;
// Get the list of filenames.
- ExportDlg.GetPaths(SelectedFileList);
+ ImportDlg.GetPaths(SelectedFileList);
// Find which data type is being used.
- ExportType = ExportDlg.GetFilterIndex();
+ ImportType = ImportDlg.GetFilterIndex();
std::map<int, ImportDataContact> ContactData;
- if (ExportType == 0){
+ if (ImportType == 0){
ContactData = ImportVCard4(&SelectedFileList);
}
- // vCard 3.0 export
+ // vCard 3.0 import
- if (ExportType == 1){
+ if (ImportType == 1){
ContactData = ImportVCard3(&SelectedFileList);
delete frmIC;
frmIC = NULL;
- // Import the contacts into the selected account.
+ // Import the contacts into the selected account.
int ImportCount = 0;
int ImportSeek = 0;