Commit 66d74a0e authored by Laurent Montel's avatar Laurent Montel 😁

Start to add plugin

parent da397c15
......@@ -148,8 +148,12 @@ install(TARGETS
########### next target ###############
set(korganizerprivate_plugin_LIB_SRCS
plugininterface/korganizerplugininterface.cpp
)
set(korganizerprivate_LIB_SRCS
${korganizerprivate_plugin_LIB_SRCS}
${korganizer_common_SRCS}
korgmigrateapplication.cpp
collectiongeneralpage.cpp
......
/*
Copyright (c) 2015 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, version 2, as
published by the Free Software Foundation.
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; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "korganizerplugininterface.h"
#include <KActionCollection>
KOrganizerPluginInterface::KOrganizerPluginInterface(KActionCollection *ac, QObject *parent)
: PimCommon::PluginInterface(ac, parent)
{
setPluginName(QStringLiteral("korganizer"));
setServiceTypeName(QStringLiteral("KOrganizer/MainViewPlugin"));
initializePlugins();
}
KOrganizerPluginInterface::~KOrganizerPluginInterface()
{
}
/*
Copyright (c) 2015 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, version 2, as
published by the Free Software Foundation.
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; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef KORGANIZERPLUGININTERFACE_H
#define KORGANIZERPLUGININTERFACE_H
#include <QObject>
#include <pimcommon/plugininterface.h>
class KActionCollection;
class KOrganizerPluginInterface : public PimCommon::PluginInterface
{
Q_OBJECT
public:
explicit KOrganizerPluginInterface(KActionCollection *ac, QObject *parent = Q_NULLPTR);
~KOrganizerPluginInterface();
};
#endif // KORGANIZERPLUGININTERFACE_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