Commit 335c285f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Set response

parent 9ec80926
Pipeline #212185 passed with stage
in 8 minutes and 32 seconds
......@@ -1188,18 +1188,22 @@ void KMMainWidget::createWidgets()
void KMMainWidget::slotSendMdnResponse(MessageViewer::MDNWarningWidget::ResponseType type)
{
MailCommon::MDNWarningJob::ResponseMDN response = MailCommon::MDNWarningJob::ResponseMDN::Unknown;
switch (type) {
case MessageViewer::MDNWarningWidget::ResponseType::Ignore:
response = MailCommon::MDNWarningJob::ResponseMDN::MDNIgnore;
break;
case MessageViewer::MDNWarningWidget::ResponseType::Send:
response = MailCommon::MDNWarningJob::ResponseMDN::Send;
break;
case MessageViewer::MDNWarningWidget::ResponseType::SendDeny:
response = MailCommon::MDNWarningJob::ResponseMDN::Denied;
break;
}
auto job = new MailCommon::MDNWarningJob(KMKernel::self(), this);
job->setItem(mMessagePane->currentItem());
// TODO job->setResponse(...);
job->setResponse(response);
job->start();
connect(job, &MDNWarningJob::finished, this, [this]() {
// TODO hide widget ?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment