summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-07 05:19:54 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-07 05:19:54 (GMT)
commit8eeeb0d48015db1c0184bbb7e46dcf4a8e4b1169 (patch)
tree9f8b6dadbf757fec56b13078458a05b092b90d2b
parent8a323f61f9f9d08cf4b4339825a111d3633323a2 (diff)
Improve lib
-rw-r--r--kaddressbookimportexport/src/CMakeLists.txt2
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp10
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugin.h12
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp33
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h36
5 files changed, 89 insertions, 4 deletions
diff --git a/kaddressbookimportexport/src/CMakeLists.txt b/kaddressbookimportexport/src/CMakeLists.txt
index 7c29a60..e244343 100644
--- a/kaddressbookimportexport/src/CMakeLists.txt
+++ b/kaddressbookimportexport/src/CMakeLists.txt
@@ -4,6 +4,7 @@ add_definitions(-DTRANSLATION_DOMAIN=\"libkaddressbookimportexport\")
set(kaddressbook_importexport_LIB_SRCS
kaddressbookimportexportplugin.cpp
+ kaddressbookimportexportplugininterface.cpp
)
add_library(KF5KaddressbookImportExport ${kaddressbook_importexport_LIB_SRCS})
@@ -39,6 +40,7 @@ install(TARGETS
ecm_generate_headers(KaddressbookImportExport_CamelCase_HEADERS
HEADER_NAMES
+ KAddressBookImportExportPluginInterface
KAddressBookImportExportPlugin
REQUIRED_HEADERS KaddressbookImportExport_HEADERS
PREFIX KaddressbookImportExport
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp b/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp
index 65f6f4e..ab207ba 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugin.cpp
@@ -19,7 +19,15 @@
#include "kaddressbookimportexportplugin.h"
-KAddressBookImportExportPlugin::KAddressBookImportExportPlugin()
+using namespace KAddressBookImportExport;
+
+KAddressBookImportExportPlugin::KAddressBookImportExportPlugin(QObject *parent)
+ : PimCommon::AbstractGenericPlugin(parent)
+{
+
+}
+
+KAddressBookImportExportPlugin::~KAddressBookImportExportPlugin()
{
}
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugin.h b/kaddressbookimportexport/src/kaddressbookimportexportplugin.h
index 035548f..78633ce 100644
--- a/kaddressbookimportexport/src/kaddressbookimportexportplugin.h
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugin.h
@@ -21,11 +21,17 @@
#ifndef KADDRESSBOOKIMPORTEXPORTPLUGIN_H
#define KADDRESSBOOKIMPORTEXPORTPLUGIN_H
+#include <PimCommon/AbstractGenericPlugin>
+#include "kaddressbook_importexport_export.h"
-class KAddressBookImportExportPlugin
+namespace KAddressBookImportExport
{
+class KADDRESSBOOK_IMPORTEXPORT_EXPORT KAddressBookImportExportPlugin : public PimCommon::AbstractGenericPlugin
+{
+ Q_OBJECT
public:
- KAddressBookImportExportPlugin();
+ explicit KAddressBookImportExportPlugin(QObject *parent = Q_NULLPTR);
+ ~KAddressBookImportExportPlugin();
};
-
+}
#endif // KADDRESSBOOKIMPORTEXPORTPLUGIN_H
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
new file mode 100644
index 0000000..a168625
--- /dev/null
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.cpp
@@ -0,0 +1,33 @@
+/*
+ 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 "kaddressbookimportexportplugininterface.h"
+
+using namespace KAddressBookImportExport;
+
+KAddressBookImportExportPluginInterface::KAddressBookImportExportPluginInterface(QObject *parent)
+ : PimCommon::AbstractGenericPluginInterface(parent)
+{
+
+}
+
+KAddressBookImportExportPluginInterface::~KAddressBookImportExportPluginInterface()
+{
+
+}
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
new file mode 100644
index 0000000..d7c0b26
--- /dev/null
+++ b/kaddressbookimportexport/src/kaddressbookimportexportplugininterface.h
@@ -0,0 +1,36 @@
+/*
+ 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 KADDRESSBOOKIMPORTEXPORTPLUGININTERFACE_H
+#define KADDRESSBOOKIMPORTEXPORTPLUGININTERFACE_H
+
+#include "kaddressbook_importexport_export.h"
+#include <PimCommon/AbstractGenericPluginInterface>
+
+namespace KAddressBookImportExport
+{
+class KADDRESSBOOK_IMPORTEXPORT_EXPORT KAddressBookImportExportPluginInterface : public PimCommon::AbstractGenericPluginInterface
+{
+ Q_OBJECT
+public:
+ explicit KAddressBookImportExportPluginInterface(QObject *parent = Q_NULLPTR);
+ ~KAddressBookImportExportPluginInterface();
+};
+}
+#endif // KADDRESSBOOKIMPORTEXPORTPLUGININTERFACE_H