summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-29 13:58:40 +0200
committerMontel Laurent <[email protected]>2017-06-29 14:07:15 +0200
commit8c1ecba53b23eb42a574dc5eb7491300051acd46 (patch)
tree156e1ae2508b63c2f98f857d5292742a27cae2e2
parent2951f6f78a4aba14ca7b279d3e07a378fd36113c (diff)
Create dialogbox
-rw-r--r--kmailtransport/sendmail/sendmailtransportplugin.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/kmailtransport/sendmail/sendmailtransportplugin.cpp b/kmailtransport/sendmail/sendmailtransportplugin.cpp
index 5ddc682..dfcc81e 100644
--- a/kmailtransport/sendmail/sendmailtransportplugin.cpp
+++ b/kmailtransport/sendmail/sendmailtransportplugin.cpp
@@ -18,8 +18,10 @@
*/
#include "sendmailtransportplugin.h"
+#include "sendmailconfigdialog.h"
#include <kpluginfactory.h>
#include <KLocalizedString>
+#include <QPointer>
K_PLUGIN_FACTORY_WITH_JSON(SendMailTransportPluginFactory, "sendmailtransport.json", registerPlugin<SendMailTransportPlugin>();
)
@@ -44,8 +46,13 @@ QVector<MailTransport::TransportAbstractPluginInfo> SendMailTransportPlugin::nam
bool SendMailTransportPlugin::configureTransport(const QString &identifier, MailTransport::Transport *transport, QWidget *parent)
{
- //TODO
- return false;
+ Q_UNUSED(identifier);
+ QPointer<MailTransport::SendMailConfigDialog> transportConfigDialog
+ = new MailTransport::SendMailConfigDialog(transport, parent);
+ transportConfigDialog->setWindowTitle(i18n("Configure account"));
+ bool okClicked = (transportConfigDialog->exec() == QDialog::Accepted);
+ delete transportConfigDialog;
+ return okClicked;
}
void SendMailTransportPlugin::cleanUp(const QString &identifier)