Changeset 1766 for trunk/gsinstaller


Ignore:
Timestamp:
2000-12-08T04:17:20+13:00 (23 years ago)
Author:
cs025
Message:

No true alterations; any differences should be merely whitespace from
debugging.

Location:
trunk/gsinstaller
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/fileCopier.cpp

    r1545 r1766  
    7373 * Copy a particular file to its destination
    7474 */
    75 bool fileCopySet::copyFile(File *file, fileCopyMonitor *monitor, copyProgressBar &progressBar)
     75bool fileCopySet::copyFile(File *file, fileCopyMonitor *monitor, copyProgressBar *progressBar)
    7676{
    7777  unsigned long copied = 0;
     
    141141 *  destination
    142142 */
    143 void fileCopySet::copy(File *file, fileCopyMonitor *monitor, copyProgressBar &progressBar)
     143void fileCopySet::copy(File *file, fileCopyMonitor *monitor, copyProgressBar *progressBar)
    144144{
    145145  // just skip this file if it doesn't exist
     
    152152  if (file->isDirectory())
    153153    {
     154
    154155      // get destination directory
    155156      char *thisDestDir = this->destination(file);
     
    191192    }
    192193
    193   progressBar.done(file->getRawFileSize());
    194 }
    195 
    196 void fileCopySet::copy(fileCopyMonitor *monitor, copyProgressBar &progressBar)
     194  if (progressBar != NULL)
     195  { progressBar->done(file->getRawFileSize());
     196  }
     197}
     198
     199void fileCopySet::copy(fileCopyMonitor *monitor, copyProgressBar *progressBar)
    197200{
    198201  FileVector::iterator here = fileList.begin();
     
    322325  fileCopySetList::iterator end = list.end();
    323326
     327
    324328  this->progressBar.show();
    325329  while (here != end)
    326330    {
    327       here->copy(this->monitor, this->progressBar);
     331      here->copy(this->monitor, &this->progressBar);
    328332      here ++;
    329333    }
  • trunk/gsinstaller/fileCopier.h

    r1545 r1766  
    2727  unsigned long getCopiedSize(DiskSpace &space);
    2828  bool ensureParent(FilePath &child, fileCopyMonitor *monitor);
    29   bool copyFile(File *file, fileCopyMonitor *monitor, copyProgressBar &progressBar);
    30   void copy(File *file, fileCopyMonitor *monitor, copyProgressBar &progressBar);
    31   void copy(fileCopyMonitor *monitor, copyProgressBar &progressBar);
     29  bool copyFile(File *file, fileCopyMonitor *monitor, copyProgressBar *progressBar);
     30  void copy(File *file, fileCopyMonitor *monitor, copyProgressBar *progressBar);
     31  void copy(fileCopyMonitor *monitor, copyProgressBar *progressBar);
    3232};
    3333
Note: See TracChangeset for help on using the changeset viewer.