Commit 8992766d authored by Laurent Montel's avatar Laurent Montel 😁

Add import/export action

parent 8ae8e607
......@@ -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;
}
......@@ -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
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