1 // frmImportContacts.h - frmImportContacts form header.
3 // (c) 2012-2015 Xestia Software Development.
5 // This file is part of Xestia Address Book.
7 // Xestia Address Book is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
11 // Xestia Address Book is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
19 #ifndef __frmImportContacts__
20 #define __frmImportContacts__
24 Subclass of frmImportContactsADT, which is generated by wxFormBuilder.
29 #include "../AppXestiaAddrBk.h"
30 #include "../widgets/XABAccountView.h"
31 #include "import-struct.h"
33 //// end generated include
35 /** Implementing frmImportContactsADT */
36 class frmImportContacts : public frmImportContactsADT
39 wxComboCtrl* AccControl = new wxComboCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxCB_READONLY|wxEXPAND);
40 XABAccountView* treAccounts = new XABAccountView();
41 wxImageList *AccImgList = new wxImageList(16,16,true);
42 //wxComboCtrl* AccControl;
43 //XABAccountView* treAccounts;
44 std::map<int, wxString> AccountAccDirList;
45 std::map<int, wxString> AccountAccTypeList;
46 //wxImageList *AccImgList;
52 // Handlers for frmImportContactsADT events.
53 void CloseWindow( wxCommandEvent& event );
54 void ImportContacts( wxCommandEvent& event );
59 frmImportContacts( wxWindow* parent );
61 void SetupList(std::map<int,ImportDataContact>* ContactDataInc);
62 void GetResults(std::map<int,ImportDataContact>* ContactDataInc);
63 bool GetDialogResult();
64 wxString GetAccount();
65 wxString GetAccountType();
66 wxString GetAccountDirName();
67 //// end generated class members
71 #endif // __frmImportContacts__