Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit aab9fc8d authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api and fix using correct enum

parent f9a05e45
......@@ -250,8 +250,7 @@ bool ICalImporter::importIntoExistingResource(const QUrl &url, Akonadi::Collecti
} else {
d->m_collection = collection;
KIO::StoredTransferJob *job = KIO::storedGet(url);
connect(job, SIGNAL(data(KIO::Job*,QByteArray)),
d, SLOT(remoteDownloadFinished(KIO::Job*,QByteArray)));
connect(job, QOverload<KIO::Job *, const QByteArray &>::of(&KIO::TransferJob::data), d, [this](KIO::Job *job, const QByteArray &ba) { d->remoteDownloadFinished(job, ba); });
}
d->m_working = true;
......
......@@ -386,8 +386,7 @@ void ITIPHandler::sendAsICalendar(const KCalCore::Incidence::Ptr &originalIncide
const QString messageText = format.createScheduleMessage(incidence, KCalCore::iTIPRequest);
MailClient *mailer = new MailClient(d->m_factory);
d->m_queuedInvitation.incidence = incidence;
connect(mailer, SIGNAL(finished(Akonadi::MailClient::Result,QString)),
d, SLOT(finishSendAsICalendar(Akonadi::MailScheduler::Result,QString)));
connect(mailer, &MailClient::finished, d, [this](Akonadi::MailClient::Result result, const QString &str) { d->finishSendAsICalendar(result,str); });
mailer->mailTo(incidence, KIdentityManagement::IdentityManager::self()->identityForAddress(from), from, bccMe,
recipients, messageText,
......
......@@ -204,10 +204,10 @@ void ITIPHandler::Private::finishPublishInformation(Akonadi::MailScheduler::Resu
}
}
void ITIPHandler::Private::finishSendAsICalendar(Akonadi::MailScheduler::Result result,
void ITIPHandler::Private::finishSendAsICalendar(Akonadi::MailClient::Result result,
const QString &errorMessage)
{
if (result == Scheduler::ResultSuccess) {
if (result == MailClient::ResultSuccess) {
if (m_parentWidget) {
KMessageBox::information(m_parentWidget,
i18n("The item information was successfully sent."),
......
......@@ -86,8 +86,8 @@ public:
bool m_showDialogsOnError = true;
ITIPHandler *const q;
void finishSendAsICalendar(Akonadi::MailClient::Result, const QString &errorMessage);
private:
void finishSendAsICalendar(Akonadi::MailScheduler::Result, const QString &errorMessage);
void onLoadFinished(bool success, const QString &errorMessage);
void onSchedulerFinished(Akonadi::Scheduler::Result, const QString &errorMessage);
void onHelperFinished(Akonadi::ITIPHandlerHelper::SendResult result,
......
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