Go to the documentation of this file.
16 #include <Wt/WContainerWidget.h>
17 #include <Wt/WImage.h>
18 #include <Wt/WLineEdit.h>
19 #include <Wt/WLocalDateTime.h>
20 #include <Wt/WPushButton.h>
22 #include <Wt/WTable.h>
23 #include <Wt/WTableCell.h>
24 #include <Wt/WStringUtil.h>
32 std::unique_ptr<WContainerWidget> layout
33 = cpp14::make_unique<WContainerWidget>();
85 std::vector<Attachment> toadd =
attachments_[i]->attachments();
158 std::unique_ptr<Option> addcc(
new Option(
tr(
"msg.addcc")));
160 std::unique_ptr<Option> addbcc(
new Option(
tr(
"msg.addbcc")));
259 std::unique_ptr<AttachmentEdit> edit
260 = cpp14::make_unique<AttachmentEdit>(
this);
276 std::vector<AttachmentEdit *>::iterator i
321 for (
unsigned i = 0; i <
attachments_.size() - 1; ++i) {
361 bool attachmentsFailed =
false;
364 attachmentsFailed =
true;
368 if (attachmentsFailed) {
WPushButton * botSendButton_
Option * attachFile_
Option for attaching a file.
const WString & text() const
void sendIt()
Slot attached to the Send button.
Option * addcc_
Option for editing Cc:
WPushButton * botSaveNowButton_
std::vector< Contact > addressees() const
Get a list of addressees.
void add(std::unique_ptr< Option > option)
Add an Option to the list.
void setMessage(const WString &message)
Set the message.
void setTo(const std::vector< Contact > &to)
Set message To: contacts.
WPushButton * topDiscardButton_
ContactSuggestions * contactSuggestions_
The suggestions popup for the addressee edits.
const WString & text() const
std::vector< Contact > cc() const
Get the Cc: contacts.
void setStatus(const WString &text, const WString &style)
Set the status, and apply the given style.
bool saving_
state when waiting asyncrhonously for attachments to be uploaded
void setAddressees(const std::vector< Contact > &contacts)
Set a list of addressees.
WTextArea * message_
WTextArea for the main message.
void setAddressBook(const std::vector< Contact > &addressBook)
Set the address book, for autocomplete suggestions.
WPushButton * botDiscardButton_
Option * addbcc_
Option for editing Bcc:
void attachmentDone()
Slotcalled when an attachment has been uploaded.
const WString & subject() const
Get the subject.
const WString & message() const
Get the message.
Wt::Signal send
The message is ready to be sent...
AddresseeEdit * ccEdit_
Cc: Addressees edit.
virtual void setText(const WString &text)
void attachMore()
Add an attachment edit.
Composer()
Construct a new Composer.
Option * attachOtherFile_
Option for attaching another file.
void setSubject(const WString &subject)
Set subject.
bool setText(const WString &text)
OptionList * options_
OptionsList for editing Cc or Bcc.
Wt::Signal discard
The message must be discarded.
void setColumns(int cols)
std::vector< Contact > to() const
Get the To: contacts.
static WLocalDateTime currentDateTime(const WLocale &locale=WLocale::currentLocale())
void saved()
All attachments have been processed, determine the result of saving the message.
void saveNow()
Slot attached to the Save now button.
void discardIt()
Slot attached to the Discard button.
WLineEdit * subject_
The subject line edit.
virtual void setText(const WString &text)
int attachmentsPending_
number of attachments waiting to be uploaded during saving
Wt::Signals::connection connect(F function)
std::vector< AttachmentEdit * > attachments_
Array which holds all the attachments, including one extra invisible one.
WPushButton * topSaveNowButton_
AddresseeEdit * toEdit_
To: Addressees edit.
An edit field for an email attachment.
void removeAttachment(AttachmentEdit *attachment)
Remove the given attachment edit.
void update()
Updates the stateless implementations after an Option has been hidden or shown.
std::vector< Attachment > attachments() const
Get the list of attachments.
std::vector< Contact > bcc() const
Get the Bc: contacts.
AddresseeEdit * bccEdit_
Bcc: Addressees edit.
WContainerWidget * layout_
WTableCell * elementAt(int row, int column)
WPushButton * topSendButton_
void emit(A... args) const
WInteractWidget * item()
Returns the clickable part.
Generated on Thu Mar 26 2020 for the
C++ Web Toolkit (Wt) by
1.8.17