Wtx ~ Wt Extension Library
WtxLib
Classes | Public Member Functions | List of all members
AttachmentEdit Class Reference

An edit field for an email attachment. More...

#include <AttachmentEdit.h>

+ Inheritance diagram for AttachmentEdit:

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< Attachmentattachments ()
 Returns the attachment.
 
Signal & uploadDone ()
 Signal emitted when new attachment(s) have been uploaded (or failed to upload.
 

Detailed Description

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.

Member Function Documentation

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).


The documentation for this class was generated from the following file: