Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Export: Cleanup export.h and add export.h to export.cpp
[xestiaab/.git] / source / export / export.cpp
index 88d8b28..25d5c23 100644 (file)
@@ -1,20 +1,40 @@
+// export.cpp - Export subroutines.
+//
+// (c) 2012-2015 Xestia Software Development.
+//
+// This file is part of Xestia Address Book.
+//
+// Xestia Address Book is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Address Book is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+
 #include <wx/filedlg.h>
 #include <wx/arrstr.h>
 #include <csignal>
 
+#include "export.h"
 #include "../frmMain.h"
 #include "export-vcard3.h"
 #include "export-vcard4.h"
 
 void ExportRun(frmMain *frmMainPtrInc, wxArrayString *FileListInc){
 
+       // Run the export function. Bring up the export file save
+       // dialog and run the required export functions as needed.
+       
        frmMainPtrInc->PauseAllTimers();
 
        wxString FileTypes;
        
        bool DirMode = FALSE;
-       long ContactsExported = 0;
-       long ContactsCollected = 0;
        int ExportType = 0;
        int ExportCount = 0;
        wxString FinalFilename;
@@ -82,7 +102,6 @@ void ExportRun(frmMain *frmMainPtrInc, wxArrayString *FileListInc){
        // were exported.
        
        wxMessageBox(wxString::Format(_("%i contacts exported."), ExportCount), _("Contacts exported"));
-       //wxMessageBox(_("Selected contacts have been exported."), _("Contacts exported"));
        
        frmMainPtrInc->ResumeAllTimers();
 
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