7#ifndef ATTACHMENT_EDIT_H_
8#define ATTACHMENT_EDIT_H_
10#include <Wt/WContainerWidget.h>
WCheckBox * keep_
The check box to keep or discard the uploaded file.
WAnchor * downloadLink_
Anchor referencing the file.
UploadInfo(const Http::UploadedFile &f)
bool uploadNow()
Updates the file now.
void remove()
Slot triggered when the users wishes to remove this attachment edit.
WText * error_
The text box to display an error (empty or too big file)
bool uploadFailed() const
Returns whether the upload failed.
Option * remove_
The option to cancel the file upload.
bool uploadFailed_
The state of the last upload process.
void uploaded()
Slot triggered when the WFileUpload completed an upload.
std::vector< Attachment > attachments()
Returns the attachment.
WFileUpload * upload_
The WFileUpload control.
Signal & uploadDone()
Signal emitted when new attachment(s) have been uploaded (or failed to upload.
std::vector< UploadInfo * > uploadInfo_
AttachmentEdit(Composer *composer)
Creates an attachment edit field.
void fileTooLarge(::int64_t size)
Slot triggered when the WFileUpload received an oversized file.
An E-mail composer widget.