Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Move INSTALL, LICENSE, README, THANKS and TODO into root directory
[xestiaab/.git] / source / import / frmImportContacts.h
1 // frmImportContacts.h - frmImportContacts form header.
2 //
3 // (c) 2012-2015 Xestia Software Development.
4 //
5 // This file is part of Xestia Address Book.
6 //
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.
10 //
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.
15 //
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__
22 /**
23 @file
24 Subclass of frmImportContactsADT, which is generated by wxFormBuilder.
25 */
27 #include <map>
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
37 {
38         private:
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;
47                 int AccountID;
48                 int AccountNetID;
49                 int AccountGrpID;
50                 bool DialogResult;
51         protected:
52                 // Handlers for frmImportContactsADT events.
53                 void CloseWindow( wxCommandEvent& event );
54                 void ImportContacts( wxCommandEvent& event );
55                 void GetResult();
56                 void GetContacts();
57         public:
58                 /** Constructor */
59                 frmImportContacts( wxWindow* parent );
60                 ~frmImportContacts();
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
68         
69 };
71 #endif // __frmImportContacts__
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