16#include <Wt/WContainerWidget>
18#include <Wt/WLineEdit>
19#include <Wt/WPushButton>
22#include <Wt/WTableCell>
23#include <Wt/WStringUtil>
80 std::vector<Attachment> toadd =
attachments_[i]->attachments();
269 std::vector<AttachmentEdit *>::iterator i
314 for (
unsigned i = 0; i <
attachments_.size() - 1; ++i) {
354 bool attachmentsFailed =
false;
357 attachmentsFailed =
true;
361 if (attachmentsFailed) {
369 strftime(buffer, 100,
"%H:%M", &td);
371 char buffer[] =
"server";
An edit field for an email addressee.
std::vector< Contact > addressees() const
Get a list of addressees.
void setAddressees(const std::vector< Contact > &contacts)
Set a list of addressees.
An edit field for an email attachment.
WPushButton * botSaveNowButton_
void sendIt()
Slot attached to the Send button.
Composer(WContainerWidget *parent=0)
Construct a new Composer.
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_
std::vector< Contact > bcc() const
Get the Bc: contacts.
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.
Wt::Signal< void > send
The message is ready to be sent...
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.
Option * attachFile_
Option for attaching a file.
WPushButton * botDiscardButton_
Wt::Signal< void > discard
The message must be discarded.
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.
friend class AttachmentEdit
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 '|'.
void add(Option *option)
Add an Option to the list.
void update()
Updates the stateless implementations after an Option has been hidden or shown.
WInteractWidget * item()
Returns the clickable part.
void emit(A1 a1=NoClass::none, A2 a2=NoClass::none, A3 a3=NoClass::none, A4 a4=NoClass::none, A5 a5=NoClass::none, A6 a6=NoClass::none) const
const WString & text() const
virtual void setText(const WString &text)
WTableCell * elementAt(int row, int column)
virtual void setText(const WString &text)
const WString & text() const
void setColumns(int cols)
bool setText(const WString &text)