Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Removed lines which shouldn't print to console.
[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                 int ScrollGen = 0;
46                 int SearchUID = 0;
47                 bool SearchEnabled = FALSE;
48                 bool StopMode = FALSE;
49                 bool CheckDuplicate(wxString Filename, 
50                         wxString Account,
51                         std::map<long,wxString> *SRAcc,
52                         std::map<long,wxString> *SRFN);
53         protected:
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 );
73         public:
74                 /** Constructor */
75                 frmSearch( wxWindow* parent );
76                 void SetUID(int UID);
77                 DECLARE_EVENT_TABLE()
78         //// end generated class members
79         
80 };
82 #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