//===== // 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) //===== #ifndef __bbwtFileUploader_h_INCLUDED__ #define __bbwtFileUploader_h_INCLUDED__ #include "bbwt_EXPORT.h" #include "bbtkWtBlackBox.h" #include namespace bbwt { class bbwt_EXPORT FileUploader : public bbtk::WtBlackBox { BBTK_BLACK_BOX_INTERFACE(FileUploader,bbtk::WtBlackBox); //===== // 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) //===== BBTK_DECLARE_INPUT(Title,std::string); BBTK_DECLARE_INPUT(Path,std::string); BBTK_DECLARE_INPUT(NameFile,std::string); BBTK_DECLARE_INPUT(InName,bool); BBTK_DECLARE_OUTPUT(OutPath,std::string); BBTK_PROCESS(Process); void Process(); BBTK_CREATE_WIDGET(CreateWidget); void CreateWidget(Wt::WContainerWidget*); void updatePath(std::string sPath); //===== // 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) //===== }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(FileUploader,bbtk::WtBlackBox); BBTK_NAME("FileUploader"); BBTK_AUTHOR("gonzalez@creatis.insa-lyon.fr"); BBTK_DESCRIPTION("No Description."); BBTK_CATEGORY("__CategoryBlackBox__"); BBTK_INPUT(FileUploader,Title,"Title prepended to the FileUploader",std::string,""); BBTK_INPUT(FileUploader,Path,"The destination path of the files",std::string,""); 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,""); BBTK_INPUT(FileUploader,InName,"Defines if the web client will show an in text fiel for rename the file in the upload",bool,""); BBTK_OUTPUT(FileUploader,OutPath,"The complet path of the file loaded, where it was storaged in the server machine",std::string,""); BBTK_END_DESCRIBE_BLACK_BOX(FileUploader); //===== // 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) //===== } // EO namespace bbwt #endif // __bbwtFileUploader_h_INCLUDED__