summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-07 11:28:16 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-07 11:28:16 (GMT)
commit8992766ded7b2d9fc742dab3b7a4334b6dcf42bf (patch)
tree84854cce02aa87c61c695a682cd930b1b28e26f2
parent8ae8e607e7ad97a8d18247d022407d986b963fa9 (diff)
Add import/export action
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp24
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugin.h11
2 files changed, 33 insertions, 2 deletions
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp b/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp
index ab207ba..733e6ad 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp
@@ -22,7 +22,9 @@
using namespace KAddressBookImportExport;
KAddressBookImportExportPlugin::KAddressBookImportExportPlugin(QObject *parent)
- : PimCommon::AbstractGenericPlugin(parent)
+ : PimCommon::AbstractGenericPlugin(parent),
+ mImportAction(Q_NULLPTR),
+ mExportAction(Q_NULLPTR)
{
}
@@ -31,3 +33,23 @@ KAddressBookImportExportPlugin::~KAddressBookImportExportPlugin()
{
}
+
+QAction *KAddressBookImportExportPlugin::importAction() const
+{
+ return mImportAction;
+}
+
+void KAddressBookImportExportPlugin::setImportAction(QAction *importAction)
+{
+ mImportAction = importAction;
+}
+
+QAction *KAddressBookImportExportPlugin::exportAction() const
+{
+ return mExportAction;
+}
+
+void KAddressBookImportExportPlugin::setExportAction(QAction *exportAction)
+{
+ mExportAction = exportAction;
+}
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugin.h b/kaddressbookimportexport/src/kaddressbookimportexportplugin.h
index 78633ce..d4628cf 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugin.h
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugin.h
@@ -23,7 +23,7 @@
#include <PimCommon/AbstractGenericPlugin>
#include "kaddressbook_importexport_export.h"
-
+class QAction;
namespace KAddressBookImportExport
{
class KADDRESSBOOK_IMPORTEXPORT_EXPORT KAddressBookImportExportPlugin : public PimCommon::AbstractGenericPlugin
@@ -32,6 +32,15 @@ class KADDRESSBOOK_IMPORTEXPORT_EXPORT KAddressBookImportExportPlugin : public P
public:
explicit KAddressBookImportExportPlugin(QObject *parent = Q_NULLPTR);
~KAddressBookImportExportPlugin();
+ QAction *importAction() const;
+ void setImportAction(QAction *importAction);
+
+ QAction *exportAction() const;
+ void setExportAction(QAction *exportAction);
+
+private:
+ QAction *mImportAction;
+ QAction *mExportAction;
};
}
#endif // KADDRESSBOOKIMPORTEXPORTPLUGIN_H