Wtx ~ Wt Extension Library
WtxLib
AttachmentEditor.h
1 
2 #ifndef __ATTACHMENTEDITOR_H___
3 #define __ATTACHMENTEDITOR_H___
4 
5 #include <Wt/WContainerWidget.h>
6 #include <Wt/WFileUpload.h>
7 
8 namespace Wtx {
9  namespace Eml {
10 
12 : public Wt::WContainerWidget
13 {
14  public:
15 
16  AttachmentEditor( int count );
17  AttachmentEditor( const std::string & fileName );
18 
19  Wt::Signal<> & attached();
20  Wt::Signal<> & removed();
21 
22  private:
23 
24  void do_upload();
25  void do_uploaded();
26  void do_fileTooLarge();
27  void do_removed();
28 
29  Wt::WFileUpload * m_fileUpload;
30 
31  Wt::Signal<> m_attached;
32  Wt::Signal<> m_removed;
33 
34 }; // endclass AttachmentEditor
35 
36  } // endnamespace Eml {
37 } // endnamespace Wtx {
38 
39 #endif // __ATTACHMENTEDITOR_H___
40 
41 
witty extension library
Definition: Activity.h:51