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;
47 bool SearchEnabled = FALSE;
48 bool StopMode = FALSE;
49 bool CheckDuplicate(wxString Filename,
51 std::map<long,wxString> *SRAcc,
52 std::map<long,wxString> *SRFN);
54 // Handlers for frmSearchADT events.
55 void SelectAccounts( wxCommandEvent& event );
56 void SearchContacts( wxCommandEvent& event );
57 void ResetContacts( wxCommandEvent& event );
58 void AddSearchSetting( wxCommandEvent& event );
59 void RemoveSearchSetting( wxCommandEvent& event );
60 void ReloadAccountList( wxCommandEvent& event );
61 void AddResult( wxCommandEvent& event );
62 void SearchBarUpdate( wxCommandEvent& event );
63 void SearchFinished( wxCommandEvent& event );
64 void SearchContactsThread();
65 void DisableAllSearchSettings(bool Enable);
66 void OpenContact( wxCommandEvent& event );
67 void EditContact( wxCommandEvent& event );
68 void RevealContact( wxCommandEvent& event );
69 void CloseWindow( wxCommandEvent& event );
70 void UpdateResult( wxCommandEvent& event );
71 void DeleteResult( wxCommandEvent& event );
72 void CloseWindow( wxCloseEvent& event );
75 frmSearch( wxWindow* parent );
78 //// end generated class members
82 #endif // __frmSearch__