Commit 86623cc7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more plugins

parent 157be4b5
......@@ -63,7 +63,7 @@ set(GRANTLEETHEME_LIB_VERSION "5.3.40")
set(CALENDARSUPPORT_LIB_VERSION "5.3.40")
set(EVENTVIEW_LIB_VERSION "5.3.40")
set(LIBKDEPIM_LIB_VERSION "5.3.40")
set(KDEPIM_APPS_LIB_VERSION "5.3.42")
set(KDEPIM_APPS_LIB_VERSION "5.3.45")
set(LIBKLEO_LIB_VERSION "5.3.40")
set(AKONADI_LIB_VERSION "5.3.45")
set(INCIDENCEEDITOR_LIB_VERSION "5.3.40")
......
add_subdirectory(vcards)
add_subdirectory(csv)
add_subdirectory(gmx)
add_subdirectory(ldap)
add_subdirectory(ldif)
set(kaddressbook_importexport_csv_SRCS
csvimportexportplugin.cpp
csvimportexportplugininterface.cpp
)
kcoreaddons_add_plugin(kaddressbook_importexportcsvplugin JSON kaddressbook_importexportcsvplugin.json SOURCES
${kaddressbook_importexport_csv_SRCS} INSTALL_NAMESPACE kaddressbook)
target_link_libraries(kaddressbook_importexportcsvplugin KF5::KaddressbookImportExport
KF5::PimCommon
KF5::I18n
KF5::XmlGui
KF5::Contacts
)
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "csvimportexportplugin.h"
#include "csvimportexportplugininterface.h"
CSVImportExportPlugin::CSVImportExportPlugin(QObject *parent)
: KAddressBookImportExport::KAddressBookImportExportPlugin(parent)
{
}
CSVImportExportPlugin::~CSVImportExportPlugin()
{
}
PimCommon::AbstractGenericPluginInterface *CSVImportExportPlugin::createInterface(KActionCollection *ac, QObject *parent)
{
CSVImportExportPluginInterface *interface = new CSVImportExportPluginInterface(parent);
interface->createAction(ac);
return interface;
}
bool CSVImportExportPlugin::hasPopupMenuSupport() const
{
return true;
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef CSVIMPORTEXPORTPLUGIN_H
#define CSVIMPORTEXPORTPLUGIN_H
#include <KAddressBookImportExport/KAddressBookImportExportPlugin>
class CSVImportExportPlugin : public KAddressBookImportExport::KAddressBookImportExportPlugin
{
Q_OBJECT
public:
explicit CSVImportExportPlugin(QObject *parent = Q_NULLPTR);
~CSVImportExportPlugin();
PimCommon::AbstractGenericPluginInterface *createInterface(KActionCollection *ac, QObject *parent) Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
};
#endif // CSVIMPORTEXPORTPLUGIN_H
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "csvimportexportplugininterface.h"
#include <KLocalizedString>
#include <KActionCollection>
#include <QAction>
CSVImportExportPluginInterface::CSVImportExportPluginInterface(QObject *parent)
: KAddressBookImportExport::KAddressBookImportExportPluginInterface(parent)
{
}
CSVImportExportPluginInterface::~CSVImportExportPluginInterface()
{
}
void CSVImportExportPluginInterface::createAction(KActionCollection *ac)
{
#if 0
QAction *action = ac->addAction(QStringLiteral("file_import_csv"));
action->setText(i18n("Import CSV..."));
action->setWhatsThis(i18n("Import contacts from a CSV file."));
setImportActions(QList<QAction *>() << action);
QList<QAction *> exportActionList;
action = ac->addAction(QStringLiteral("file_import_csv"));
action->setText(i18n("Import CSV..."));
action->setWhatsThis(i18n("Import contacts from a CSV file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_csv40"));
action->setWhatsThis(i18n("Export contacts to a CSV 4.0 file."));
action->setText(i18n("Export CSV 4.0..."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_csv30"));
action->setText(i18n("Export CSV 3.0..."));
action->setWhatsThis(i18n("Export contacts to a CSV 3.0 file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_csv21"));
action->setText(i18n("Export CSV 2.1..."));
action->setWhatsThis(i18n("Export contacts to a CSV 2.1 file."));
exportActionList << action;
setExportActions(exportActionList);
#endif
}
void CSVImportExportPluginInterface::exec()
{
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef CSVIMPORTEXPORTPLUGININTERFACE_H
#define CSVIMPORTEXPORTPLUGININTERFACE_H
#include <KAddressBookImportExport/KAddressBookImportExportPluginInterface>
class CSVImportExportPluginInterface : public KAddressBookImportExport::KAddressBookImportExportPluginInterface
{
Q_OBJECT
public:
explicit CSVImportExportPluginInterface(QObject *parent = Q_NULLPTR);
~CSVImportExportPluginInterface();
void createAction(KActionCollection *ac) Q_DECL_OVERRIDE;
void exec() Q_DECL_OVERRIDE;
};
#endif // CSVIMPORTEXPORTPLUGININTERFACE_H
{
"KPlugin": {
"Description": "This plugin allows you to import export csv.",
"EnabledByDefault": "true",
"Id": "kaddressbookimportexportcsv",
"Name": "Import Export CSV",
"ServiceTypes": [
"KAddressBook/ImportExportPlugin"
],
"Version": "1.0"
}
}
set(kaddressbook_importexport_gmx_SRCS
gmximportexportplugin.cpp
gmximportexportplugininterface.cpp
)
kcoreaddons_add_plugin(kaddressbook_importexportgmxplugin JSON kaddressbook_importexportgmxplugin.json SOURCES
${kaddressbook_importexport_gmx_SRCS} INSTALL_NAMESPACE kaddressbook)
target_link_libraries(kaddressbook_importexportgmxplugin KF5::KaddressbookImportExport
KF5::PimCommon
KF5::I18n
KF5::XmlGui
KF5::Contacts
)
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "gmximportexportplugin.h"
#include "gmximportexportplugininterface.h"
GMXImportExportPlugin::GMXImportExportPlugin(QObject *parent)
: KAddressBookImportExport::KAddressBookImportExportPlugin(parent)
{
}
GMXImportExportPlugin::~GMXImportExportPlugin()
{
}
PimCommon::AbstractGenericPluginInterface *GMXImportExportPlugin::createInterface(KActionCollection *ac, QObject *parent)
{
GMXImportExportPluginInterface *interface = new GMXImportExportPluginInterface(parent);
interface->createAction(ac);
return interface;
}
bool GMXImportExportPlugin::hasPopupMenuSupport() const
{
return true;
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef GMXIMPORTEXPORTPLUGIN_H
#define GMXIMPORTEXPORTPLUGIN_H
#include <KAddressBookImportExport/KAddressBookImportExportPlugin>
class GMXImportExportPlugin : public KAddressBookImportExport::KAddressBookImportExportPlugin
{
Q_OBJECT
public:
explicit GMXImportExportPlugin(QObject *parent = Q_NULLPTR);
~GMXImportExportPlugin();
PimCommon::AbstractGenericPluginInterface *createInterface(KActionCollection *ac, QObject *parent) Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
};
#endif // GMXIMPORTEXPORTPLUGIN_H
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "gmximportexportplugininterface.h"
#include <KLocalizedString>
#include <KActionCollection>
#include <QAction>
GMXImportExportPluginInterface::GMXImportExportPluginInterface(QObject *parent)
: KAddressBookImportExport::KAddressBookImportExportPluginInterface(parent)
{
}
GMXImportExportPluginInterface::~GMXImportExportPluginInterface()
{
}
void GMXImportExportPluginInterface::createAction(KActionCollection *ac)
{
#if 0
QAction *action = ac->addAction(QStringLiteral("file_import_gmx"));
action->setText(i18n("Import GMX..."));
action->setWhatsThis(i18n("Import contacts from a GMX file."));
setImportActions(QList<QAction *>() << action);
QList<QAction *> exportActionList;
action = ac->addAction(QStringLiteral("file_import_gmx"));
action->setText(i18n("Import GMX..."));
action->setWhatsThis(i18n("Import contacts from a GMX file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_gmx40"));
action->setWhatsThis(i18n("Export contacts to a GMX 4.0 file."));
action->setText(i18n("Export GMX 4.0..."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_gmx30"));
action->setText(i18n("Export GMX 3.0..."));
action->setWhatsThis(i18n("Export contacts to a GMX 3.0 file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_gmx21"));
action->setText(i18n("Export GMX 2.1..."));
action->setWhatsThis(i18n("Export contacts to a GMX 2.1 file."));
exportActionList << action;
setExportActions(exportActionList);
#endif
}
void GMXImportExportPluginInterface::exec()
{
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef GMXIMPORTEXPORTPLUGININTERFACE_H
#define GMXIMPORTEXPORTPLUGININTERFACE_H
#include <KAddressBookImportExport/KAddressBookImportExportPluginInterface>
class GMXImportExportPluginInterface : public KAddressBookImportExport::KAddressBookImportExportPluginInterface
{
Q_OBJECT
public:
explicit GMXImportExportPluginInterface(QObject *parent = Q_NULLPTR);
~GMXImportExportPluginInterface();
void createAction(KActionCollection *ac) Q_DECL_OVERRIDE;
void exec() Q_DECL_OVERRIDE;
};
#endif // GMXIMPORTEXPORTPLUGININTERFACE_H
{
"KPlugin": {
"Description": "This plugin allows you to import export gmx.",
"EnabledByDefault": "true",
"Id": "kaddressbookimportexportgmx",
"Name": "Import Export Gmx",
"ServiceTypes": [
"KAddressBook/ImportExportPlugin"
],
"Version": "1.0"
}
}
set(kaddressbook_importexport_ldif_SRCS
ldifimportexportplugin.cpp
ldifimportexportplugininterface.cpp
)
kcoreaddons_add_plugin(kaddressbook_importexportldifplugin JSON kaddressbook_importexportldifplugin.json SOURCES
${kaddressbook_importexport_ldif_SRCS} INSTALL_NAMESPACE kaddressbook)
target_link_libraries(kaddressbook_importexportldifplugin KF5::KaddressbookImportExport
KF5::PimCommon
KF5::I18n
KF5::XmlGui
KF5::Contacts
)
{
"KPlugin": {
"Description": "This plugin allows you to import export ldif.",
"EnabledByDefault": "true",
"Id": "kaddressbookimportexportldif",
"Name": "Import Export Ldif",
"ServiceTypes": [
"KAddressBook/ImportExportPlugin"
],
"Version": "1.0"
}
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "ldifimportexportplugin.h"
#include "ldifimportexportplugininterface.h"
LDifImportExportPlugin::LDifImportExportPlugin(QObject *parent)
: KAddressBookImportExport::KAddressBookImportExportPlugin(parent)
{
}
LDifImportExportPlugin::~LDifImportExportPlugin()
{
}
PimCommon::AbstractGenericPluginInterface *LDifImportExportPlugin::createInterface(KActionCollection *ac, QObject *parent)
{
LDifImportExportPluginInterface *interface = new LDifImportExportPluginInterface(parent);
interface->createAction(ac);
return interface;
}
bool LDifImportExportPlugin::hasPopupMenuSupport() const
{
return true;
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef LDIFIMPORTEXPORTPLUGIN_H
#define LDIFIMPORTEXPORTPLUGIN_H
#include <KAddressBookImportExport/KAddressBookImportExportPlugin>
class LDifImportExportPlugin : public KAddressBookImportExport::KAddressBookImportExportPlugin
{
Q_OBJECT
public:
explicit LDifImportExportPlugin(QObject *parent = Q_NULLPTR);
~LDifImportExportPlugin();
PimCommon::AbstractGenericPluginInterface *createInterface(KActionCollection *ac, QObject *parent) Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
};
#endif // LDIFIMPORTEXPORTPLUGIN_H
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Gene