]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtFileUploader.h
2498 BBTK FeatureNewNormal wt-version PackageWt
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtFileUploader.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4
5 #ifndef __bbwtFileUploader_h_INCLUDED__
6 #define __bbwtFileUploader_h_INCLUDED__
7 #include "bbwt_EXPORT.h"
8 #include "bbtkWtBlackBox.h"
9 #include <Wt/WFileUpload>
10
11 namespace bbwt
12 {
13
14 class bbwt_EXPORT FileUploader
15  : 
16    public bbtk::WtBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(FileUploader,bbtk::WtBlackBox);
19 //===== 
20 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
21 //===== 
22   BBTK_DECLARE_INPUT(Title,std::string);
23   BBTK_DECLARE_INPUT(Path,std::string);
24   BBTK_DECLARE_INPUT(NameFile,std::string);
25   BBTK_DECLARE_INPUT(InName,bool);
26   BBTK_DECLARE_OUTPUT(OutPath,std::string);
27   BBTK_PROCESS(Process);
28   void Process();
29   BBTK_CREATE_WIDGET(CreateWidget);
30   void CreateWidget(Wt::WContainerWidget*);
31   void updatePath(std::string sPath);
32 //===== 
33 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
34 //===== 
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(FileUploader,bbtk::WtBlackBox);
38 BBTK_NAME("FileUploader");
39 BBTK_AUTHOR("gonzalez@creatis.insa-lyon.fr");
40 BBTK_DESCRIPTION("No Description.");
41 BBTK_CATEGORY("__CategoryBlackBox__");
42 BBTK_INPUT(FileUploader,Title,"Title prepended to the FileUploader",std::string,"");
43 BBTK_INPUT(FileUploader,Path,"The destination path of the files",std::string,"");
44 BBTK_INPUT(FileUploader,NameFile,"The destination name of the uploaded file, if it is empty, the file will be named as the original file in the client",std::string,"");
45 BBTK_INPUT(FileUploader,InName,"Defines if the web client will show an in text fiel for rename the file in the upload",bool,"");
46 BBTK_OUTPUT(FileUploader,OutPath,"The complet path of the file loaded, where it was storaged in the server machine",std::string,"");
47 BBTK_END_DESCRIBE_BLACK_BOX(FileUploader);
48 //===== 
49 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
50 //===== 
51 }
52 // EO namespace bbwt
53
54 #endif // __bbwtFileUploader_h_INCLUDED__
55