summaryrefslogtreecommitdiff
path: root/include/CopyJob.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/CopyJob.h')
-rw-r--r--include/CopyJob.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/CopyJob.h b/include/CopyJob.h
index 69eb088..3c88100 100644
--- a/include/CopyJob.h
+++ b/include/CopyJob.h
@@ -5,13 +5,19 @@
#include <Task.h>
#include <Handle.h>
+#define COPY_BUFSIZ 4096
+
class CopyJob : public Task {
public:
- CopyJob(Handle &, Handle &);
+ CopyJob(Handle *, Handle *, ssize_t = -1);
virtual ~CopyJob();
virtual int Do();
+ virtual String GetName();
private:
- Handle s, d;
+ Handle * s, * d;
+ ssize_t siz, cursiz;
+ char buffer[COPY_BUFSIZ];
+ int current;
};
#else