source: eviacam/trunk/fuentes/src/checkupdates_manager.h

Last change on this file was 567, checked in by mabarracus, 4 years ago

updated sources to version 2.0.3

File size: 1.6 KB
Line 
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
27class wxWindow;
28class CheckUpdatesUI;
29
30namespace eviacam {
31
32class CheckUpdatesManager : public wxEvtHandler
33{
34public:
35        CheckUpdatesManager(wxWindow* parent= NULL);
36        virtual ~CheckUpdatesManager();
37
38        void LaunchBackground();
39        void LaunchForeground();
40
41private:
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
Note: See TracBrowser for help on using the repository browser.