]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/dialogs/updatevlc.hpp
src/*, include/* : update core functions. (Should make it relatively easy
[vlc] / modules / gui / wxwidgets / dialogs / updatevlc.hpp
index 3d4e0fc9105c4f7b79b708052102ff216785a3e6..70262b87f58e12b501597d6561b009762d87cdb2 100644 (file)
 #ifndef _WXVLC_UPDATEVLC_H_
 #define _WXVLC_UPDATEVLC_H_
 
+#include <vlc_update.h>
+
 #include "wxwidgets.hpp"
 #include <wx/treectrl.h>
-#include <list>
 
 class wxTreeCtrl;
 
@@ -35,60 +36,19 @@ namespace wxvlc
     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 );
+        void OnChooseItem( wxListEvent& event );
 
         DECLARE_EVENT_TABLE();
 
         intf_thread_t *p_intf;
-        wxTreeCtrl *updates_tree;
-
-        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<update_file_t> m_files;
-        };
-
-        std::list<update_version_t> m_versions;
-
-        struct update_mirror_t
-        {
-            wxString name;
-            wxString location;
-            wxString type;
-            wxString base_url;
-        };
-
-        std::list<update_mirror_t> m_mirrors;
+        update_t *p_u;
     };
 };