[29] | 1 | ///////////////////////////////////////////////////////////////////////////// |
---|
| 2 | // Name: checkupdates_listener.h |
---|
| 3 | // Purpose: Listener for chek for updates |
---|
| 4 | // Author: Cesar Mauri Loba (cesar at crea-si dot com) |
---|
| 5 | // Copyright: (C) 2014 Cesar Mauri Loba - CREA Software Systems |
---|
| 6 | // |
---|
| 7 | // This program is free software: you can redistribute it and/or modify |
---|
| 8 | // it under the terms of the GNU General Public License as published by |
---|
| 9 | // the Free Software Foundation, either version 3 of the License, or |
---|
| 10 | // (at your option) any later version. |
---|
| 11 | // |
---|
| 12 | // This program is distributed in the hope that it will be useful, |
---|
| 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | // GNU General Public License for more details. |
---|
| 16 | // |
---|
| 17 | // You should have received a copy of the GNU General Public License |
---|
| 18 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
| 19 | ///////////////////////////////////////////////////////////////////////////// |
---|
| 20 | |
---|
| 21 | #ifndef CHECKUPDATES_LISTENER_H |
---|
| 22 | #define CHECKUPDATES_LISTENER_H |
---|
| 23 | |
---|
| 24 | #include "checkupdates.h" |
---|
| 25 | #include <wx/event.h> |
---|
| 26 | |
---|
| 27 | class wxWindow; |
---|
| 28 | class CheckUpdatesUI; |
---|
| 29 | |
---|
| 30 | namespace eviacam { |
---|
| 31 | |
---|
| 32 | class CheckUpdatesManager : public wxEvtHandler |
---|
| 33 | { |
---|
| 34 | public: |
---|
| 35 | CheckUpdatesManager(wxWindow* parent= NULL); |
---|
| 36 | virtual ~CheckUpdatesManager(); |
---|
| 37 | |
---|
| 38 | void LaunchBackground(); |
---|
| 39 | void LaunchForeground(); |
---|
| 40 | |
---|
| 41 | private: |
---|
| 42 | void OnCheckUpdatesFinished(wxCommandEvent& event); |
---|
| 43 | |
---|
| 44 | CheckUpdates m_checker; |
---|
| 45 | wxWindow* m_parent; |
---|
| 46 | CheckUpdatesUI* m_pCheckUpdatesUI; |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | } // namespace eviacam |
---|
| 50 | |
---|
| 51 | #endif // CHECKUPDATES_LISTENER_H |
---|