Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4056 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/gui_update.cc


Ignore:
Timestamp:
May 5, 2005, 1:43:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: naming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/gui_update.cc

    r4054 r4056  
    3535   \brief Creates an Update-Frame
    3636*/
    37 OrxonoxGuiUpdate::OrxonoxGuiUpdate(void)
     37GuiUpdate::GuiUpdate(void)
    3838{
    3939  this->tmpDir = NULL;
     
    7373   \brief Destructs the Update-stuff
    7474*/
    75 OrxonoxGuiUpdate::~OrxonoxGuiUpdate(void)
     75GuiUpdate::~GuiUpdate(void)
    7676{
    7777
     
    8181    \brief Look what info we can get from this system
    8282*/
    83 bool OrxonoxGuiUpdate::getSystemInfo(void)
     83bool GuiUpdate::getSystemInfo(void)
    8484{
    8585  PRINTF(3)("Grabbing system information\n");
     
    107107
    108108#ifdef HAVE_CURL
    109 bool* OrxonoxGuiUpdate::checkForUpdates(void)
     109bool* GuiUpdate::checkForUpdates(void)
    110110{
    111111  PRINTF(3)("checking for new version of orxonox\n");
     
    122122   \brief Creates a window, and all it contains for the Data-update.
    123123*/
    124 void OrxonoxGuiUpdate::updateDataWindowCreate(void)
     124void GuiUpdate::updateDataWindowCreate(void)
    125125{
    126126  this->updateDataWindow = new Window("update orxonox::Data");   
     
    161161   \returns A Pointer to the Button of the UpdaterDataWindow
    162162*/
    163 Button* OrxonoxGuiUpdate::updateDataWindowGetButton(void)
     163Button* GuiUpdate::updateDataWindowGetButton(void)
    164164{
    165165  return this->updateDataWindowButton;
     
    169169   \brief Creates a window, and all it contains for the Source-update.
    170170*/
    171 void OrxonoxGuiUpdate::updateSourceWindowCreate(void)
     171void GuiUpdate::updateSourceWindowCreate(void)
    172172{
    173173  // the button, that opens this Window.
     
    200200   \returns A Pointer to the Button of the UpdaterSourceWindow
    201201*/
    202 Button* OrxonoxGuiUpdate::updateSourceWindowGetButton(void)
     202Button* GuiUpdate::updateSourceWindowGetButton(void)
    203203{
    204204  return this->updateSourceWindowButton;
     
    213213   \param button The Button, that triggered this event.
    214214*/
    215 gint OrxonoxGuiUpdate::updateDataFunc(GtkWidget* w, GdkEventKey* event, void* info)
     215gint GuiUpdate::updateDataFunc(GtkWidget* w, GdkEventKey* event, void* info)
    216216{
    217217  FileInfo* dataInfo =(FileInfo*)info;
     
    230230   \param button The Button, that triggered this event.
    231231*/
    232 gint OrxonoxGuiUpdate::updateSourceFunc(GtkWidget* w, GdkEventKey* event, void* bar)
     232gint GuiUpdate::updateSourceFunc(GtkWidget* w, GdkEventKey* event, void* bar)
    233233{
    234234  ProgressBar* tmpBar = static_cast<ProgressBar*>(bar);
     
    245245   \param stream Filehandler to write to.
    246246*/
    247 size_t OrxonoxGuiUpdate::curlWriteFunc(void* ptr, size_t size, size_t nmemb, FILE* stream)
     247size_t GuiUpdate::curlWriteFunc(void* ptr, size_t size, size_t nmemb, FILE* stream)
    248248{
    249249  return fwrite(ptr, size, nmemb, stream);
     
    257257   \param stream Filehandler to get data from.
    258258*/
    259 size_t OrxonoxGuiUpdate::curlReadFunc(void* ptr, size_t size, size_t nmemb, FILE* stream)
     259size_t GuiUpdate::curlReadFunc(void* ptr, size_t size, size_t nmemb, FILE* stream)
    260260{
    261261  return fread(ptr, size, nmemb, stream);
     
    271271   \param upProgress not needed
    272272*/
    273 int OrxonoxGuiUpdate::curlProgressFunc(ProgressBar* bar, double totalSize, double progress, double upTotal, double upProgress)
     273int GuiUpdate::curlProgressFunc(ProgressBar* bar, double totalSize, double progress, double upTotal, double upProgress)
    274274{
    275275  bar->setProgress(progress);
     
    286286   \brief The Curl handle for only one CURL(static).
    287287*/
    288 CURL* OrxonoxGuiUpdate::curlHandle = NULL;
     288CURL* GuiUpdate::curlHandle = NULL;
    289289
    290290#ifdef HAVE_PTHREAD_H
    291291/** \brief The download Thread ID */
    292 pthread_t* OrxonoxGuiUpdate::downloadThreadID = new pthread_t;
     292pthread_t* GuiUpdate::downloadThreadID = new pthread_t;
    293293/**   \brief The download Thread ID*/
    294 pthread_t* OrxonoxGuiUpdate::downloadThreadFinishID = new pthread_t;
     294pthread_t* GuiUpdate::downloadThreadFinishID = new pthread_t;
    295295#endif /* HAVE_PTHREAD_H */
    296296/**
    297297   \brief A bool parameter that shows if we are downloading.
    298298*/
    299 bool OrxonoxGuiUpdate::isDownloading = false;
     299bool GuiUpdate::isDownloading = false;
    300300
    301301
     
    306306   !! BE AWARE THIS WILL NOT BE THREADED. !!
    307307*/
    308 bool OrxonoxGuiUpdate::download(void* fileInfo)
     308bool GuiUpdate::download(void* fileInfo)
    309309{
    310310  if(isDownloading)
     
    354354   Downloading with a Button that gets a different Name while downloading, and a Bar, that gets to be updated. More to be followed
    355355*/
    356 bool OrxonoxGuiUpdate::downloadWithStyle(void* fileInfo)
     356bool GuiUpdate::downloadWithStyle(void* fileInfo)
    357357{
    358358  if(isDownloading)
     
    426426   \todo Threads get locked, if the cancel button is pressed in to small intervals.
    427427*/
    428 void* OrxonoxGuiUpdate::downloadThread(void* fileInfo)
     428void* GuiUpdate::downloadThread(void* fileInfo)
    429429{
    430430  isDownloading = true;
     
    436436   \param fileInfo the FileInfo.
    437437*/
    438 void* OrxonoxGuiUpdate::downloadThreadFinished(void* fileInfo)
     438void* GuiUpdate::downloadThreadFinished(void* fileInfo)
    439439{
    440440  FileInfo* info =(FileInfo*)fileInfo;
     
    477477   \todo canceling a session in non-threaded mode.
    478478*/
    479 gint OrxonoxGuiUpdate::cancelDownload(GtkWidget* w, GdkEventKey* event, void* bar)
     479gint GuiUpdate::cancelDownload(GtkWidget* w, GdkEventKey* event, void* bar)
    480480{
    481481#ifdef HAVE_PTHREAD_H
Note: See TracChangeset for help on using the changeset viewer.