Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
c167f0c864236a27bf742871857b475563741d3f
[xestiaab/.git] / source / frmSearch.h
1 #ifndef __frmSearch__
2 #define __frmSearch__
4 /**
5 @file
6 Subclass of frmSearchADT, which is generated by wxFormBuilder.
7 */
9 #include "AppXestiaAddrBk.h"
10 #include "vcard/vcard.h"
12 #include <map>
15 //// end generated include
17 DECLARE_EVENT_TYPE(SE_ADDSEARCHSETTING, wxID_ANY)
18 DECLARE_EVENT_TYPE(SE_REMOVESEARCHSETTING, wxID_ANY)
19 DECLARE_EVENT_TYPE(SE_RELOADACCOUNTS, wxID_ANY)
20 DECLARE_EVENT_TYPE(SE_ADDRESULT, wxID_ANY)
21 DECLARE_EVENT_TYPE(SE_SBUPDATE, wxID_ANY)
22 DECLARE_EVENT_TYPE(SE_SEARCHFINISHED, wxID_ANY)
23 DECLARE_EVENT_TYPE(SE_UPDATERESULT, wxID_ANY)
24 DECLARE_EVENT_TYPE(SE_DELETERESULT, wxID_ANY)
26 struct SRNotif{
27         vCardName ContactName;
28         wxString ContactNickname;
29         wxString ContactAccount;
30         wxString ContactAccountName;
31         wxString ContactFullFilename;
32         long SearchResultID;
33 };
35 /** Implementing frmSearchADT */
36 class frmSearch : public frmSearchADT
37 {
38         private:
39                 std::map<int, void*> SearchFrames;
40                 std::map<wxString, bool> SearchAccounts;
41                 std::map<wxString, wxString> SearchAccountsNames;
42                 std::map<wxString, wxString> SearchAccountsPaths;
43                 std::map<long, wxString> SearchResultAccount;
44                 std::map<long, wxString> SearchResultFilename;
45                 std::map<wxString, wxString> SearchModeMemoryFSPtr;
46                 int ScrollGen = 0;
47                 int SearchUID = 0;
48                 bool SearchEnabled = FALSE;
49                 bool StopMode = FALSE;
50                 bool SearchMode = FALSE;
51                 bool CheckDuplicate(wxString Filename, 
52                         wxString Account,
53                         std::map<long,wxString> *SRAcc,
54                         std::map<long,wxString> *SRFN);
55         protected:
56                 // Handlers for frmSearchADT events.
57                 void SelectAccounts( wxCommandEvent& event );
58                 void SearchContacts( wxCommandEvent& event );
59                 void ResetContacts( wxCommandEvent& event );
60                 void AddSearchSetting( wxCommandEvent& event );
61                 void RemoveSearchSetting( wxCommandEvent& event );
62                 void ReloadAccountList( wxCommandEvent& event );
63                 void AddResult( wxCommandEvent& event );
64                 void SearchBarUpdate( wxCommandEvent& event );
65                 void SearchFinished( wxCommandEvent& event );
66                 void SearchContactsThread();
67                 void DisableAllSearchSettings(bool Enable);
68                 void OpenContact( wxCommandEvent& event );
69                 void EditContact( wxCommandEvent& event );
70                 void RevealContact( wxCommandEvent& event );
71                 void CloseWindow( wxCommandEvent& event );
72                 void UpdateResult( wxCommandEvent& event );
73                 void DeleteResult( wxCommandEvent& event );
74                 void CloseWindow( wxCloseEvent& event );
75         public:
76                 /** Constructor */
77                 frmSearch( wxWindow* parent );
78                 void SetUID(int UID);
79                 void SetSearchMode(bool SearchModeIn);
80                 DECLARE_EVENT_TABLE()
81         //// end generated class members
82         
83 };
85 #endif // __frmSearch__
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