mailtransport
28 #include "sendmailconfigwidget.h"
29 #include "transportconfigwidget_p.h"
30 #include "ui_sendmailsettings.h"
32 #include <KStandardDirs>
35 using namespace MailTransport;
40 ::Ui::SendmailSettings ui;
44 SendmailConfigWidget::SendmailConfigWidget(
Transport *transport,
QWidget *parent )
50 SendmailConfigWidget::SendmailConfigWidget( SendmailConfigWidgetPrivate &dd,
57 void SendmailConfigWidget::init()
61 d->ui.setupUi(
this );
62 d->ui.kcfg_host->setMode( KFile::File|KFile::ExistingOnly|KFile::LocalOnly );
63 d->ui.kcfg_host->setFocus();
64 d->manager->addWidget(
this );
65 d->manager->updateWidgets();
67 if ( d->ui.kcfg_host->url().isEmpty() ) {
71 d->ui.kcfg_host->setText( KStandardDirs::findExe(
QLatin1String(
"sendmail" ) ) );
73 connect( d->ui.kcfg_host->lineEdit(), SIGNAL(textChanged(
QString)),
74 SLOT(slotTextChanged(
QString)) );
75 slotTextChanged( d->ui.kcfg_host->text() );
78 void SendmailConfigWidget::slotTextChanged(
const QString &text )
80 Q_EMIT enableButtonOk( !text.
isEmpty() );
83 bool SendmailConfigWidget::pathIsEmpty()
const
86 return d->ui.kcfg_host->text().isEmpty();
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents the settings of a specific mail transport.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:48 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.