Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 24, 2004, 1:15:38 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: now the Data-bar downloads something, and the Progress is displayed. (not very nice, but it works).

NOT THREAD SAVE <<

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui_update.h

    r3261 r3263  
    2424  Box* updateDataBox;          //!< A Box for the Window for the Data-update.
    2525  ProgressBar* updateDataBar;  //!< A Bar to display the progress of the download.
    26 
     26  Button* updateDataBegin;     //!< A Button to start the process.
    2727
    2828  Button* updateSourceWindowButton;//!< A Button to update the Source of orxonox. \todo tricky
     
    3838#endif /* HAVE_GTK2 */
    3939
     40#ifdef HAVE_CURL
     41  struct FileInfo
     42  {
     43    char* fileOnNet;
     44    char* fileOnDisk;
     45    ProgressBar* Bar;
     46  };
     47
     48  static size_t curlWriteFunc (void* ptr, size_t size, size_t nmemb, FILE* stream);
     49  static size_t curlReadFunc (void* ptr, size_t size, size_t nmemb, FILE* stream);
     50  static int curlProgressFunc (ProgressBar* Bar, double totalSize, double progress, double upTotal, double upProgress);
     51
     52  static void* downloadThread (void* fileInfo);
     53 
     54#endif /* HAVE_CURL */
    4055
    4156 public:
Note: See TracChangeset for help on using the changeset viewer.