summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-09 06:47:53 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-09 06:47:53 (GMT)
commit57d21f7388bd9e4b370b8a4a466267f37b4598e4 (patch)
tree7e492b7f705fc754b7481a588da76207de77422b
parent29a78f0734b78553212dffded360031ae42bb0a6 (diff)
add enum about current action
-rw-r--r--CMakeLists.txt2
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp13
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h9
3 files changed, 22 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fade07..b4bea47 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.45")
+set(PIM_VERSION "5.3.46")
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 39eb1d9..373edaf 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
@@ -22,7 +22,8 @@
using namespace KAddressBookImportExport;
KAddressBookImportExportPluginInterface::KAddressBookImportExportPluginInterface(QObject *parent)
- : PimCommon::AbstractGenericPluginInterface(parent)
+ : PimCommon::AbstractGenericPluginInterface(parent),
+ mImportExportAction(Import)
{
}
@@ -51,3 +52,13 @@ void KAddressBookImportExportPluginInterface::setExportActions(const QList<QActi
{
mExportActions = exportAction;
}
+
+KAddressBookImportExportPluginInterface::ImportExportAction KAddressBookImportExportPluginInterface::importExportAction() const
+{
+ return mImportExportAction;
+}
+
+void KAddressBookImportExportPluginInterface::setImportExportAction(const ImportExportAction &importExportAction)
+{
+ mImportExportAction = importExportAction;
+}
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
index 5c08eb5..0fddf89 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
@@ -33,15 +33,24 @@ public:
explicit KAddressBookImportExportPluginInterface(QObject *parent = Q_NULLPTR);
~KAddressBookImportExportPluginInterface();
+ enum ImportExportAction {
+ Import = 0,
+ Export = 1
+ };
+
QList<QAction *> importActions() const;
void setImportActions(const QList<QAction *> &importAction);
QList<QAction *> exportActions() const;
void setExportActions(const QList<QAction *> &exportAction);
+ ImportExportAction importExportAction() const;
+ void setImportExportAction(const ImportExportAction &importExportAction);
+
protected:
QList<QAction *> mImportActions;
QList<QAction *> mExportActions;
+ ImportExportAction mImportExportAction;
};
}
#endif // KADDRESSBOOKIMPORTEXPORTPLUGININTERFACE_H