// frmImportContacts.h - frmImportContacts form header. // // (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 #ifndef __frmImportContacts__ #define __frmImportContacts__ /** @file Subclass of frmImportContactsADT, which is generated by wxFormBuilder. */ #include #include "../AppXestiaAddrBk.h" #include "../widgets/XABAccountView.h" #include "import-struct.h" //// end generated include /** Implementing frmImportContactsADT */ class frmImportContacts : public frmImportContactsADT { private: wxComboCtrl* AccControl = new wxComboCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxCB_READONLY|wxEXPAND); XABAccountView* treAccounts = new XABAccountView(); wxImageList *AccImgList = new wxImageList(16,16,true); //wxComboCtrl* AccControl; //XABAccountView* treAccounts; std::map AccountAccDirList; std::map AccountAccTypeList; //wxImageList *AccImgList; int AccountID; int AccountNetID; int AccountGrpID; bool DialogResult; protected: // Handlers for frmImportContactsADT events. void CloseWindow( wxCommandEvent& event ); void ImportContacts( wxCommandEvent& event ); void GetResult(); void GetContacts(); public: /** Constructor */ frmImportContacts( wxWindow* parent ); ~frmImportContacts(); void SetupList(std::map* ContactDataInc); void GetResults(std::map* ContactDataInc); bool GetDialogResult(); wxString GetAccount(); wxString GetAccountType(); wxString GetAccountDirName(); //// end generated class members }; #endif // __frmImportContacts__