10#include <Wt/WCompositeWidget.h>
49 void setTo(
const std::vector<Contact>&
to);
65 std::vector<Contact>
to()
const;
69 std::vector<Contact>
cc()
const;
73 std::vector<Contact>
bcc()
const;
192 void setStatus(
const WString& text,
const WString& style);
An edit field for an email addressee.
An edit field for an email attachment.
An E-mail composer widget.
WPushButton * botSaveNowButton_
void sendIt()
Slot attached to the Send button.
Option * attachOtherFile_
Option for attaching another file.
void setMessage(const WString &message)
Set the message.
void saved()
All attachments have been processed, determine the result of saving the message.
WTextArea * message_
WTextArea for the main message.
WPushButton * topSaveNowButton_
Wt::Signal send
The message is ready to be sent...
std::vector< Contact > bcc() const
Get the Bc: contacts.
Wt::Signal discard
The message must be discarded.
const WString & message() const
Get the message.
WPushButton * topSendButton_
void setStatus(const WString &text, const WString &style)
Set the status, and apply the given style.
AddresseeEdit * toEdit_
To: Addressees edit.
void discardIt()
Slot attached to the Discard button.
std::vector< Contact > to() const
Get the To: contacts.
void attachMore()
Add an attachment edit.
void saveNow()
Slot attached to the Save now button.
WPushButton * botSendButton_
bool saving_
state when waiting asyncrhonously for attachments to be uploaded
WLineEdit * subject_
The subject line edit.
WPushButton * topDiscardButton_
int attachmentsPending_
number of attachments waiting to be uploaded during saving
void setTo(const std::vector< Contact > &to)
Set message To: contacts.
ContactSuggestions * contactSuggestions_
The suggestions popup for the addressee edits.
Composer()
Construct a new Composer.
Option * attachFile_
Option for attaching a file.
WPushButton * botDiscardButton_
std::vector< AttachmentEdit * > attachments_
Array which holds all the attachments, including one extra invisible one.
Option * addbcc_
Option for editing Bcc:
AddresseeEdit * ccEdit_
Cc: Addressees edit.
void attachmentDone()
Slotcalled when an attachment has been uploaded.
WContainerWidget * layout_
void setSubject(const WString &subject)
Set subject.
void removeAttachment(AttachmentEdit *attachment)
Remove the given attachment edit.
const WString & subject() const
Get the subject.
Option * addcc_
Option for editing Cc:
void setAddressBook(const std::vector< Contact > &addressBook)
Set the address book, for autocomplete suggestions.
std::vector< Contact > cc() const
Get the Cc: contacts.
AddresseeEdit * bccEdit_
Bcc: Addressees edit.
OptionList * options_
OptionsList for editing Cc or Bcc.
std::vector< Attachment > attachments() const
Get the list of attachments.
A list of options, separated by '|'.