Commit 0c2099db authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe MailMergeConfigureDialog

parent a9ef6de2
......@@ -8,6 +8,7 @@
#include "mailmergeagent_debug.h"
#include "mailmergeagentadaptor.h"
#include "mailmergeagentsettings.h"
#include "mailmergeconfiguredialog.h"
#include "mailmergemanager.h"
#include <AgentInstance>
#include <AgentManager>
......@@ -117,23 +118,24 @@ bool MailMergeAgent::enabledAgent() const
void MailMergeAgent::configure(WId windowId)
{
// QPointer<SendLaterConfigureDialog> dialog = new SendLaterConfigureDialog();
// if (windowId) {
// dialog->setAttribute(Qt::WA_NativeWindow, true);
// KWindowSystem::setMainWindow(dialog->windowHandle(), windowId);
// }
// connect(this, &MailMergeAgent::needUpdateConfigDialogBox, dialog.data(), &SendLaterConfigureDialog::slotNeedToReloadConfig);
QPointer<MailMergeConfigureDialog> dialog = new MailMergeConfigureDialog();
if (windowId) {
dialog->setAttribute(Qt::WA_NativeWindow, true);
KWindowSystem::setMainWindow(dialog->windowHandle(), windowId);
}
// connect(this, &MailMergeAgent::needUpdateConfigDialogBox, dialog.data(), &MailMergeConfigureDialog::slotNeedToReloadConfig);
// connect(dialog.data(), &SendLaterConfigureDialog::sendNow, this, &MailMergeAgent::slotSendNow);
// if (dialog->exec()) {
// mManager->load();
// const QVector<Akonadi::Item::Id> listMessage = dialog->messagesToRemove();
// if (!listMessage.isEmpty()) {
// // Will delete in specific job when done.
// auto sendlaterremovejob = new SendLaterRemoveMessageJob(listMessage, this);
// sendlaterremovejob->start();
// }
// }
// delete dialog;
if (dialog->exec()) {
// TODO
// mManager->load();
// const QVector<Akonadi::Item::Id> listMessage = dialog->messagesToRemove();
// if (!listMessage.isEmpty()) {
// // Will delete in specific job when done.
// auto sendlaterremovejob = new SendLaterRemoveMessageJob(listMessage, this);
// sendlaterremovejob->start();
// }
}
delete dialog;
}
void MailMergeAgent::removeItem(qint64 item)
......
Markdown is supported
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