Wt examples  3.3.0
AttachmentEdit.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
4  *
5  * See the LICENSE file for terms of use.
6  */
7 #ifndef ATTACHMENT_EDIT_H_
8 #define ATTACHMENT_EDIT_H_
9 
10 #include <Wt/WContainerWidget>
11 
12 namespace Wt {
13  class WFileUpload;
14  class WText;
15  class WCheckBox;
16 }
17 
18 class Attachment;
19 class Composer;
20 class Option;
21 
22 using namespace Wt;
23 
28 
38 {
39 public:
42  AttachmentEdit(Composer *composer, WContainerWidget *parent = 0);
43 
50  bool uploadNow();
51 
54  bool uploadFailed() const { return uploadFailed_; }
55 
58  std::vector<Attachment> attachments();
59 
63  Signal<void>& uploadDone() { return uploadDone_; }
64 
65 private:
67 
69 
72 
74  {
75  public:
76  UploadInfo(const Http::UploadedFile& f, WContainerWidget *parent = 0);
77 
79 
82 
85  };
86 
87  std::vector<UploadInfo *> uploadInfo_;
88 
91 
94 
97 
99  void uploaded();
100 
102  void fileTooLarge(::int64_t size);
103 
105  void remove();
106 };
107 
110 #endif // ATTACHMENT_EDIT_H_

Generated on Fri May 31 2013 for the C++ Web Toolkit (Wt) by doxygen 1.8.3.1