#include "frmSearch.h"
#include "frmSSLCertificate.h"
#include "frmUpdate.h"
+#include "import/frmImportResults.h"
#include "bitmaps.h"
#include "common/preferences.h"
DEFINE_EVENT_TYPE(INVALIDSSLCERT);
DEFINE_EVENT_TYPE(GETSELECTEDLIST);
DEFINE_EVENT_TYPE(SYNCACCOUNT);
+DEFINE_EVENT_TYPE(IMPORT_RESULTSSHOW);
BEGIN_EVENT_TABLE(frmMain, wxFrame)
EVT_COMMAND(wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, frmMain::ConflictResolution)
EVT_COMMAND(wxID_ANY, INVALIDSSLCERT, frmMain::InvalidSSLCertificate)
EVT_COMMAND(wxID_ANY, GETSELECTEDLIST, frmMain::GetSelectedList)
EVT_COMMAND(wxID_ANY, SYNCACCOUNT, frmMain::SyncAccount)
+EVT_COMMAND(wxID_ANY, IMPORT_RESULTSSHOW, frmMain::ShowImportResults)
END_EVENT_TABLE()
frmMain::frmMain( wxWindow* parent )
#endif
+}
+
+void frmMain::ShowImportResults( wxCommandEvent &event ){
+
+ std::map<int,wxString> *ResultData = (std::map<int,wxString>*)event.GetClientData();
+
+ frmImportResults *frmIR = new frmImportResults(this);
+ frmIR->LoadData(ResultData, event.GetInt(), (int)event.GetExtraLong());
+ frmIR->ShowModal();
+
+ delete frmIR;
+ frmIR = NULL;
+
+ delete ResultData;
+ ResultData = NULL;
+
}
\ No newline at end of file
DECLARE_EVENT_TYPE(INVALIDSSLCERT, wxID_ANY);
DECLARE_EVENT_TYPE(GETSELECTEDLIST, wxID_ANY);
DECLARE_EVENT_TYPE(SYNCACCOUNT, wxID_ANY);
+DECLARE_EVENT_TYPE(IMPORT_RESULTSSHOW, wxID_ANY);
struct UCNotif{
wxString ContactAccount;
void ResumeAllTimers();
void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SSLCertCollection SSLCertInc);
void GetListControl(wxListCtrl *lstContactsPtr, wxArrayString *ContactsFileIndexPtr);
+ void ShowImportResults( wxCommandEvent& event );
XABViewMode GetViewMode();
DECLARE_EVENT_TABLE()