16 #include <Wt/WContainerWidget> 18 #include <Wt/WLineEdit> 19 #include <Wt/WLocalDateTime> 20 #include <Wt/WPushButton> 23 #include <Wt/WTableCell> 24 #include <Wt/WStringUtil> 81 std::vector<Attachment> toadd =
attachments_[i]->attachments();
83 attachments.insert(attachments.end(), toadd.begin(), toadd.end());
166 subject_->
resize(
WLength(99, WLength::Percentage), WLength::Auto);
188 attachOtherFile_->
hide();
270 std::vector<AttachmentEdit *>::iterator i
315 for (
unsigned i = 0; i <
attachments_.size() - 1; ++i) {
355 bool attachmentsFailed =
false;
358 attachmentsFailed =
true;
362 if (attachmentsFailed) {
const WString & subject() const
Get the subject.
std::vector< Contact > cc() const
Get the Cc: contacts.
std::vector< Attachment > attachments() const
Get the list of attachments.
AddresseeEdit * bccEdit_
Bcc: Addressees edit.
virtual void setText(const WString &text)
const WString & text() const
WInteractWidget * item()
Returns the clickable part.
AddresseeEdit * toEdit_
To: Addressees edit.
const WString & message() const
Get the message.
void discardIt()
Slot attached to the Discard button.
WContainerWidget * layout_
Option * attachOtherFile_
Option for attaching another file.
Option * addbcc_
Option for editing Bcc:
An edit field for an email attachment.
Composer(WContainerWidget *parent=0)
Construct a new Composer.
void saved()
All attachments have been processed, determine the result of saving the message.
WPushButton * botSaveNowButton_
std::vector< AttachmentEdit * > attachments_
Array which holds all the attachments, including one extra invisible one.
WTextArea * message_
WTextArea for the main message.
Wt::Signal< void > send
The message is ready to be sent...
void emit(A... args) const
Wt::Signal< void > discard
The message must be discarded.
void setSubject(const WString &subject)
Set subject.
void removeAttachment(AttachmentEdit *attachment)
Remove the given attachment edit.
bool setText(const WString &text)
void saveNow()
Slot attached to the Save now button.
void update()
Updates the stateless implementations after an Option has been hidden or shown.
WTableCell * elementAt(int row, int column)
WPushButton * botSendButton_
WPushButton * topDiscardButton_
void sendIt()
Slot attached to the Send button.
A list of options, separated by '|'.
void setAddressBook(const std::vector< Contact > &addressBook)
Set the address book, for autocomplete suggestions.
void setAddressees(const std::vector< Contact > &contacts)
Set a list of addressees.
void setColumns(int cols)
virtual void setText(const WString &text)
An edit field for an email addressee.
WPushButton * botDiscardButton_
std::vector< Contact > bcc() const
Get the Bc: contacts.
static WLocalDateTime currentDateTime(const WLocale &locale=WLocale::currentLocale())
bool saving_
state when waiting asyncrhonously for attachments to be uploaded
Option * attachFile_
Option for attaching a file.
std::vector< Contact > to() const
Get the To: contacts.
WPushButton * topSaveNowButton_
friend class AttachmentEdit
WLineEdit * subject_
The subject line edit.
WPushButton * topSendButton_
const WString & text() const
std::vector< Contact > addressees() const
Get a list of addressees.
void attachmentDone()
Slotcalled when an attachment has been uploaded.
Option * addcc_
Option for editing Cc:
ContactSuggestions * contactSuggestions_
The suggestions popup for the addressee edits.
void setMessage(const WString &message)
Set the message.
void setTo(const std::vector< Contact > &to)
Set message To: contacts.
void attachMore()
Add an attachment edit.
AddresseeEdit * ccEdit_
Cc: Addressees edit.
int attachmentsPending_
number of attachments waiting to be uploaded during saving
OptionList * options_
OptionsList for editing Cc or Bcc.
void add(Option *option)
Add an Option to the list.
void setStatus(const WString &text, const WString &style)
Set the status, and apply the given style.