6 Subclass of frmSearchADT, which is generated by wxFormBuilder.
9 #include "AppXestiaAddrBk.h"
10 #include "vcard/vcard.h"
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)
27 vCardName ContactName;
28 wxString ContactNickname;
29 wxString ContactAccount;
30 wxString ContactAccountName;
31 wxString ContactFullFilename;
35 /** Implementing frmSearchADT */
36 class frmSearch : public frmSearchADT
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;
48 bool SearchEnabled = FALSE;
49 bool StopMode = FALSE;
50 bool SearchMode = FALSE;
51 bool CheckDuplicate(wxString Filename,
53 std::map<long,wxString> *SRAcc,
54 std::map<long,wxString> *SRFN);
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 );
77 frmSearch( wxWindow* parent );
79 void SetSearchMode(bool SearchModeIn);
81 //// end generated class members
85 #endif // __frmSearch__