Wtx ~ Wt Extension Library
WtxLib
|
An edit field for an email attachment. More...
#include <AttachmentEdit.h>
Public Member Functions | |
AttachmentEdit (Composer *composer) | |
Creates an attachment edit field. | |
bool | uploadNow () |
Updates the file now. More... | |
bool | uploadFailed () const |
Returns whether the upload failed. | |
std::vector< Attachment > | attachments () |
Returns the attachment. | |
Signal & | uploadDone () |
Signal emitted when new attachment(s) have been uploaded (or failed to upload. | |
An edit field for an email attachment.
This widget manages one attachment edit: it shows a file upload control, handles the upload, and gives feed-back on the file uploaded.
This widget is part of the Wt composer example.
Definition at line 37 of file AttachmentEdit.h.
bool AttachmentEdit::uploadNow | ( | ) |
Updates the file now.
Returns whether a new file will be uploaded. If so, the uploadDone signal will be signalled when the file is uploaded (or failed to upload).