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

Adapt to new api

parent 585a7848
Pipeline #23511 failed with stage
in 40 minutes and 6 seconds
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.14.43")
set(PIM_VERSION "5.14.44")
project(mailcommon VERSION ${PIM_VERSION})
......@@ -30,6 +30,7 @@ set(QT_REQUIRED_VERSION "5.13.0")
set(MAILCOMMON_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.14.43")
set(AKONADICONTACT_LIB_VERSION "5.14.41")
set(MESSAGELIB_LIB_VERSION "5.14.46")
set(KMIME_LIB_VERSION "5.14.40")
set(KMAILTRANSPORT_LIB_VERSION "5.14.40")
......@@ -71,6 +72,7 @@ find_package(KF5Mime ${KMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5PimCommonAkonadi ${PIMCOMMON_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5TemplateParser ${MESSAGELIB_LIB_VERSION} CONFIG REQUIRED)
find_package(Phonon4Qt5 ${PHONON_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiContact ${AKONADICONTACT_LIB_VERSION} CONFIG REQUIRED)
option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON)
add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer")
......
......@@ -19,7 +19,7 @@
#include "filteractionaddtoaddressbook.h"
#include <LibkdepimAkonadi/AddContactJob>
#include <Akonadi/Contact/AddContactJob>
#include <AkonadiWidgets/TagSelectionDialog>
#include <AkonadiWidgets/TagWidget>
......@@ -99,7 +99,7 @@ FilterAction::ReturnCode FilterActionAddToAddressBook::process(ItemContext &cont
contact.setCategories(mCategory.split(QLatin1Char(';')));
}
KPIM::AddContactJob *job = new KPIM::AddContactJob(contact, Akonadi::Collection(mCollectionId));
Akonadi::AddContactJob *job = new Akonadi::AddContactJob(contact, Akonadi::Collection(mCollectionId));
job->showMessageBox(false);
job->start();
}
......
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