summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-12 11:07:10 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-12 11:07:10 (GMT)
commit0553c178f437c02aba631563e494cc25ff004520 (patch)
treeb55de88983150517320f4b7b4385afe18472c93f
parenta7d68a216b5515d69940e752d9c5e09cd1463c45 (diff)
Add method for importing data
-rw-r--r--CMakeLists.txt2
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp10
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h3
3 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59d5930..8af1ce2 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.54")
+set(PIM_VERSION "5.3.55")
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 3c2bcf2..91a6b69 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
@@ -94,3 +94,13 @@ void KAddressBookImportExportPluginInterface::importFile(const QUrl &url)
{
Q_UNUSED(url);
}
+
+bool KAddressBookImportExportPluginInterface::canImportData() const
+{
+ return false;
+}
+
+void KAddressBookImportExportPluginInterface::importData(const QByteArray &data)
+{
+ Q_UNUSED(data);
+}
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
index db4fc63..000d103 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
@@ -59,6 +59,9 @@ public:
virtual bool canImportFileType(const QUrl &url);
virtual void importFile(const QUrl &url);
+ virtual bool canImportData() const;
+ virtual void importData(const QByteArray &data);
+
protected:
QList<QAction *> mImportActions;
QList<QAction *> mExportActions;