Changeset 1766 for trunk/gsinstaller
- Timestamp:
- 2000-12-08T04:17:20+13:00 (23 years ago)
- Location:
- trunk/gsinstaller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/fileCopier.cpp
r1545 r1766 73 73 * Copy a particular file to its destination 74 74 */ 75 bool fileCopySet::copyFile(File *file, fileCopyMonitor *monitor, copyProgressBar &progressBar)75 bool fileCopySet::copyFile(File *file, fileCopyMonitor *monitor, copyProgressBar *progressBar) 76 76 { 77 77 unsigned long copied = 0; … … 141 141 * destination 142 142 */ 143 void fileCopySet::copy(File *file, fileCopyMonitor *monitor, copyProgressBar &progressBar)143 void fileCopySet::copy(File *file, fileCopyMonitor *monitor, copyProgressBar *progressBar) 144 144 { 145 145 // just skip this file if it doesn't exist … … 152 152 if (file->isDirectory()) 153 153 { 154 154 155 // get destination directory 155 156 char *thisDestDir = this->destination(file); … … 191 192 } 192 193 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 199 void fileCopySet::copy(fileCopyMonitor *monitor, copyProgressBar *progressBar) 197 200 { 198 201 FileVector::iterator here = fileList.begin(); … … 322 325 fileCopySetList::iterator end = list.end(); 323 326 327 324 328 this->progressBar.show(); 325 329 while (here != end) 326 330 { 327 here->copy(this->monitor, this->progressBar);331 here->copy(this->monitor, &this->progressBar); 328 332 here ++; 329 333 } -
trunk/gsinstaller/fileCopier.h
r1545 r1766 27 27 unsigned long getCopiedSize(DiskSpace &space); 28 28 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); 32 32 }; 33 33
Note:
See TracChangeset
for help on using the changeset viewer.