1 #ifndef __BF_GUI_FTPPANEL_TASKS_H__
2 #define __BF_GUI_FTPPANEL_TASKS_H__
3
4 #include "BF_GUI_NodePanel.h"
5 #include "BF_GUI_OperRoster.h"
6 #include "FtpClient.h"
7 #include "BF_GUI_FtpPanel.h"
8
9 class BF_GUI_FtpPanel_UploadTask:public BF_GUI_OperTask{
10 public:
11 BF_GUI_FtpPanel_UploadTask(
12 BL_String & s_PathSrc,
13 BF_GUI_FtpPanel *po_Panel,
14 BF_NodeCollection & lo_Node,
15 bool b_FilesMove
16 );
17 virtual void Run();
18 private:
19 uint64 iOperIndex,iOperCount;
20 BF_Path oPathSrc;
21 BF_NodeList loNode;
22 bool bFilesMove;
23
24 BF_GUI_FtpPanel *poPanel;
25 FtpClient *poFtp;
26 BF_GUI_FtpPanel_Bookmark *poBookmark;
27
28 void Put_File(BF_Node *po_Node);
29 void Put_List(BF_NodeCollection *plo_Node);
30 };
31
32
33
34 class BF_GUI_FtpPanel_DownloadTask:public BF_GUI_OperTask{
35 public:
36 BF_GUI_FtpPanel_DownloadTask(
37 BL_String & s_PathDest,
38 BF_GUI_FtpPanel *po_Panel,
39 BF_NodeCollection & lo_Node,
40 bool b_FilesMove
41 );
42 virtual void Run();
43 private:
44 uint64 iOperIndex,iOperCount;
45 BF_Path oPathDest;
46 BF_NodeList loNode;
47 bool bFilesMove;
48
49 BF_GUI_FtpPanel *poPanel;
50 FtpClient *poFtp;
51 BF_GUI_FtpPanel_Bookmark *poBookmark;
52
53 void Get_File(BF_Node *po_Node);
54 void Get_List(BF_NodeCollection *plo_Node);
55 };
56
57
58
59 class BF_GUI_FtpPanel_DeleteTask:public BF_GUI_OperTask{
60 public:
61 BF_GUI_FtpPanel_DeleteTask(
62 BF_GUI_FtpPanel *po_Panel,
63 BF_NodeCollection & lo_Node
64 );
65 virtual void Run();
66 private:
67 uint64 iOperIndex,iOperCount;
68 BF_NodeList loNode;
69
70 BF_GUI_FtpPanel *poPanel;
71 FtpClient *poFtp;
72 BF_GUI_FtpPanel_Bookmark *poBookmark;
73
74 void Delete_File(BF_Node *po_Node);
75 void Delete_List(BF_NodeCollection *plo_Node);
76 };
77