source: trunk/gsinstaller/fileCopier.h@ 1406

Last change on this file since 1406 was 1397, checked in by cs025, 24 years ago

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1#ifndef _FILECOPIER_H_
2#include "file.h"
3#include "filePath.h"
4#include "copyProgress.h"
5#include "diskSpace.h"
6
7class fileCopySet
8{ private:
9 FileVector fileList;
10 FilePath sourceDir;
11 unsigned long dataSize;
12 public:
13 FilePath destDir;
14 fileCopySet();
15 fileCopySet(FileVector files, FilePath &from, FilePath &to);
16 char *destination(File *file);
17 unsigned long getOriginalSize();
18 unsigned long getCopiedSize(DiskSpace &space);
19 bool copyFile(File *file, copyProgressBar &progressBar);
20 void copy(File *file, copyProgressBar &progressBar);
21 void copy(copyProgressBar &progressBar);
22};
23
24typedef vector<fileCopySet> fileCopySetList;
25
26class fileCopier
27{ private:
28 fileCopySetList list;
29 unsigned long dataSize;
30 unsigned long copied;
31 copyProgressBar progressBar;
32 protected:
33 public:
34 fileCopier::fileCopier(fileCopySetList &list);
35 fileCopier::fileCopier();
36 void fileCopier::addSet(fileCopySet &set) { this->list.push_back(set); }
37 bool checkSpace();
38 void copy();
39};
40#define _FILECOPIER_H_
41#endif
Note: See TracBrowser for help on using the repository browser.