54{
55 WContainerWidget *
feedback = this->addWidget(std::make_unique<WContainerWidget>());
57
58 WContainerWidget *
horiz =
feedback->addWidget(std::make_unique<WContainerWidget>());
59 horiz->addWidget(std::make_unique<WText>(
U"<p>We could have, but did not send the following email:</p>"));
60
63 horiz =
feedback->addWidget(std::make_unique<WContainerWidget>());
65 horiz->addWidget(std::make_unique<WText>(
U"To: \"" +
contacts[
i].name +
U"\" <"
66 +
contacts[
i].email +
U">", TextFormat::Plain));
67 horiz->addWidget(std::make_unique<WBreak>());
68 }
69
72 horiz =
feedback->addWidget(std::make_unique<WContainerWidget>());
74 horiz->addWidget(std::make_unique<WText>(
U"Cc: \"" +
contacts[
i].name +
U"\" <"
75 +
contacts[
i].email +
U">", TextFormat::Plain));
76 horiz->addWidget(std::make_unique<WBreak>());
77 }
78
81 horiz =
feedback->addWidget(std::make_unique<WContainerWidget>());
83 horiz->addWidget(std::make_unique<WText>(
U"Bcc: \"" +
contacts[
i].name +
U"\" <"
84 +
contacts[
i].email +
U">", TextFormat::Plain));
85 horiz->addWidget(std::make_unique<WBreak>());
86 }
87
88 horiz =
feedback->addWidget(std::make_unique<WContainerWidget>());
89 horiz->addWidget(std::make_unique<WText>(
"Subject: \"" +
composer_->
subject() +
"\"", TextFormat::Plain));
90
92 if (!attachments.empty())
93 horiz =
feedback->addWidget(std::make_unique<WContainerWidget>());
94 for (
unsigned i = 0;
i < attachments.size(); ++
i) {
95 horiz->addWidget(std::make_unique<WText>(
U"Attachment: \""
96 + attachments[
i].fileName
97 +
U"\" (" + attachments[
i].contentDescription
98 +
U")", TextFormat::Plain));
99
100 unlink(attachments[
i].spoolFileName.c_str());
101
102 horiz->addWidget(std::make_unique<WText>(
", was in spool file: "
103 + attachments[
i].spoolFileName));
104 horiz->addWidget(std::make_unique<WBreak>());
105 }
106
108
109 horiz =
feedback->addWidget(std::make_unique<WContainerWidget>());
110 horiz->addWidget(std::make_unique<WText>(
"Message body: "));
111 horiz->addWidget(std::make_unique<WBreak>());
112
113 if (!message.empty()) {
114 horiz->addWidget(std::make_unique<WText>(message, TextFormat::Plain));
115 } else
116 horiz->addWidget(std::make_unique<WText>(
"<i>(empty)</i>"));
117
122
124}
std::vector< Contact > bcc() const
Get the Bc: contacts.
const WString & message() const
Get the message.
std::vector< Contact > to() const
Get the To: contacts.
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.