summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-11 11:28:31 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-11 11:28:31 (GMT)
commita1e94cdfd833d41455e55ff5fdad2fcf76eb6e9b (patch)
tree7a3a69317ba31ee468cdc3e3fd4a1939db097c0b
parentcbc69bfe28983b4cd7ef5a3a31247b48bda977a1 (diff)
Allow to set KAddressBookImportExportContactList
-rw-r--r--CMakeLists.txt2
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp10
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h5
3 files changed, 16 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 42629b1..3412b93 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
-set(PIM_VERSION "5.3.50")
+set(PIM_VERSION "5.3.51")
set(KDEPIM_APPS_LIB_VERSION ${PIM_VERSION})
set(QT_REQUIRED_VERSION "5.6.0")
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
index 06beebe..38325c5 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
@@ -72,3 +72,13 @@ void KAddressBookImportExportPluginInterface::setDefaultCollection(const Akonadi
{
mDefaultCollection = defaultCollection;
}
+
+KAddressBookImportExport::KAddressBookImportExportContactList KAddressBookImportExportPluginInterface::addressBookImportExportList() const
+{
+ return mAddressBookImportExportList;
+}
+
+void KAddressBookImportExportPluginInterface::setAddressBookImportExportList(const KAddressBookImportExport::KAddressBookImportExportContactList &addressBookImportExportList)
+{
+ mAddressBookImportExportList = addressBookImportExportList;
+}
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
index 6bae9df..5ae10a2 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
@@ -24,6 +24,7 @@
#include <PimCommon/AbstractGenericPluginInterface>
#include <QList>
#include <AkonadiCore/Collection>
+#include <KAddressBookImportExport/KAddressBookImportExportContactList>
namespace KAddressBookImportExport
{
@@ -51,7 +52,11 @@ public:
Akonadi::Collection defaultCollection() const;
void setDefaultCollection(const Akonadi::Collection &defaultCollection);
+ KAddressBookImportExport::KAddressBookImportExportContactList addressBookImportExportList() const;
+ void setAddressBookImportExportList(const KAddressBookImportExport::KAddressBookImportExportContactList &addressBookImportExportList);
+
protected:
+ KAddressBookImportExport::KAddressBookImportExportContactList mAddressBookImportExportList;
QList<QAction *> mImportActions;
QList<QAction *> mExportActions;
ImportExportAction mImportExportAction;