Commit c652b89c authored by Laurent Montel's avatar Laurent Montel 😁

Define default collection

parent 57d21f73
......@@ -17,7 +17,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
set(PIM_VERSION "5.3.46")
set(PIM_VERSION "5.3.47")
set(KDEPIM_APPS_LIB_VERSION ${PIM_VERSION})
set(QT_REQUIRED_VERSION "5.6.0")
......
......@@ -31,4 +31,3 @@ KAddressBookImportExportPlugin::~KAddressBookImportExportPlugin()
{
}
......@@ -62,3 +62,13 @@ void KAddressBookImportExportPluginInterface::setImportExportAction(const Import
{
mImportExportAction = importExportAction;
}
Akonadi::Collection KAddressBookImportExportPluginInterface::defaultCollection() const
{
return mDefaultCollection;
}
void KAddressBookImportExportPluginInterface::setDefaultCollection(const Akonadi::Collection &defaultCollection)
{
mDefaultCollection = defaultCollection;
}
......@@ -23,6 +23,7 @@
#include "kaddressbook_importexport_export.h"
#include <PimCommon/AbstractGenericPluginInterface>
#include <QList>
#include <AkonadiCore/Collection>
namespace KAddressBookImportExport
{
......@@ -47,10 +48,14 @@ public:
ImportExportAction importExportAction() const;
void setImportExportAction(const ImportExportAction &importExportAction);
Akonadi::Collection defaultCollection() const;
void setDefaultCollection(const Akonadi::Collection &defaultCollection);
protected:
QList<QAction *> mImportActions;
QList<QAction *> mExportActions;
ImportExportAction mImportExportAction;
Akonadi::Collection mDefaultCollection;
};
}
#endif // KADDRESSBOOKIMPORTEXPORTPLUGININTERFACE_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