Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
90998fd948796b3a302049bc294067314ccbf243
[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"
11 #include "widgets/XABContactMenu.h"
13 #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)
25 DECLARE_EVENT_TYPE(SE_OPENCONTACT, wxID_ANY)
26 DECLARE_EVENT_TYPE(SE_EDITCONTACT, wxID_ANY)
27 DECLARE_EVENT_TYPE(SE_REVEALCONTACT, wxID_ANY)
29 struct SRNotif{
30         vCardName ContactName;
31         wxString ContactNickname;
32         wxString ContactAccount;
33         wxString ContactAccountName;
34         wxString ContactFullFilename;
35         long SearchResultID;
36 };
38 /** Implementing frmSearchADT */
39 class frmSearch : public frmSearchADT
40 {
41         private:
42                 std::map<int, void*> SearchFrames;
43                 std::map<wxString, bool> SearchAccounts;
44                 std::map<wxString, wxString> SearchAccountsNames;
45                 std::map<wxString, wxString> SearchAccountsPaths;
46                 std::map<long, wxString> SearchResultAccount;
47                 std::map<long, wxString> SearchResultFilename;
48                 std::map<wxString, wxString> SearchModeMemoryFSPtr;
49                 int ScrollGen = 0;
50                 int SearchUID = 0;
51                 bool SearchEnabled = FALSE;
52                 bool StopMode = FALSE;
53                 bool SearchMode = FALSE;
54                 bool CheckDuplicate(wxString Filename, 
55                         wxString Account,
56                         std::map<long,wxString> *SRAcc,
57                         std::map<long,wxString> *SRFN);
58                 XABContactMenu *ContactMenu = new XABContactMenu(XABCONTACTMENU_SEARCH);
59         protected:
60                 // Handlers for frmSearchADT events.
61                 void SelectAccounts( wxCommandEvent& event );
62                 void SearchContacts( wxCommandEvent& event );
63                 void ResetContacts( wxCommandEvent& event );
64                 void AddSearchSetting( wxCommandEvent& event );
65                 void RemoveSearchSetting( wxCommandEvent& event );
66                 void ReloadAccountList( wxCommandEvent& event );
67                 void AddResult( wxCommandEvent& event );
68                 void SearchBarUpdate( wxCommandEvent& event );
69                 void SearchFinished( wxCommandEvent& event );
70                 void SearchContactsThread();
71                 void DisableAllSearchSettings(bool Enable);
72                 void OpenContact( wxCommandEvent& event );
73                 void EditContact( wxCommandEvent& event );
74                 void RevealContact( wxCommandEvent& event );
75                 void CloseWindow( wxCommandEvent& event );
76                 void UpdateResult( wxCommandEvent& event );
77                 void DeleteResult( wxCommandEvent& event );
78                 void CloseWindow( wxCloseEvent& event );
79                 void ShowContactMenu( wxMouseEvent& event );
80         public:
81                 /** Constructor */
82                 frmSearch( wxWindow* parent );
83                 void SetUID(int UID);
84                 void SetSearchMode(bool SearchModeIn);
85                 DECLARE_EVENT_TABLE()
86         //// end generated class members
87         
88 };
90 #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