00001
00002 #ifndef __FILE_TRANS_PROG_H
00003 #define __FILE_TRANS_PROG_H
00004
00005 #include "GProgressStatusPane.h"
00006
00007
00008 #define _STATUS_THROTTLE 0
00009 #define _STATUS_HISTORY 1
00010 #define _STATUS_INFO 2
00011 #define _STATUS_POSITION 3
00012 #define _STATUS_PROGRESS 4
00013 #define _STATUS_RATE 5
00014 #define _STATUS_TIME_LEFT 6
00015 #define _STATUS_MAX 7
00016
00017
00018 #define PARM_START_VALUE 10
00019
00020
00021 #define OPT_Throttle "Throttle" // (int)
00022 #define OPT_PipeSize "PipeSize" // (int)
00023
00024
00025 class FileTransferProgress : public Progress
00026 {
00027 int64 StartTime;
00028 int64 StartPos;
00029 GProgressStatusPane *ProgressPane;
00030 GArray<GStatusPane*> StatusInfo;
00031 DoEvery Timer;
00032
00033 public:
00034 FileTransferProgress(GDom *App, GStatusBar *Status, bool Limit = false);
00035
00036 void SetLimits(int64 l, int64 h);
00037 void Value(int64 v);
00038 void SetParameter(int Which, int What);
00039 };
00040
00041 #endif