X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fwxwindows%2Fwxwindows.h;h=58150834cb81c2319bd34cc11686d1be49c0998e;hb=e34daedfae3bc4f23ddef242c3d3a41eb3655c29;hp=5936b3ddf36c445b8132ac8fa0a590675af129ae;hpb=5bbb474823d50199337b9b090b62e69d048be8f7;p=vlc diff --git a/modules/gui/wxwindows/wxwindows.h b/modules/gui/wxwindows/wxwindows.h index 5936b3ddf3..58150834cb 100644 --- a/modules/gui/wxwindows/wxwindows.h +++ b/modules/gui/wxwindows/wxwindows.h @@ -29,6 +29,8 @@ /* Let vlc take care of the i18n stuff */ #define WXINTL_NO_GETTEXT_MACRO +#include + #include #include @@ -1047,6 +1049,67 @@ private: }; +/* Update VLC */ +class UpdateVLC: public wxFrame +{ +public: + /* Constructor */ + UpdateVLC( intf_thread_t *p_intf, wxWindow *p_parent ); + virtual ~UpdateVLC(); + +private: + void OnButtonClose( wxCommandEvent& event ); + void OnClose( wxCloseEvent& WXUNUSED(event) ); + void GetData(); + void OnCheckForUpdate( wxCommandEvent& event ); + void OnMirrorChoice( wxCommandEvent& event ); + void UpdateUpdatesTree(); + void UpdateMirrorsChoice(); + void OnUpdatesTreeActivate( wxTreeEvent& event ); + void DownloadFile( wxString url, wxString dst ); + + DECLARE_EVENT_TABLE(); + + intf_thread_t *p_intf; + wxTreeCtrl *updates_tree; + wxTreeItemId updates_root; + + wxChoice *mirrors_choice; + + wxString release_type; /* could be "stable", "test", "nightly" ... */ + + struct update_file_t + { + wxString type; + wxString md5; + wxString size; + wxString url; + wxString description; + }; + + struct update_version_t + { + wxString type; + wxString major; + wxString minor; + wxString revision; + wxString extra; + std::list m_files; + }; + + std::list m_versions; + + struct update_mirror_t + { + wxString name; + wxString location; + wxString type; + wxString base_url; + }; + + std::list m_mirrors; +}; + #if wxUSE_DRAG_AND_DROP /* Drag and Drop class */ class DragAndDrop: public wxFileDropTarget