summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-07 05:23:12 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-07 05:23:12 (GMT)
commit98c9858814ca5e3eed2a82322ed61d1609d1afa6 (patch)
treec3ec6a676ce96e5b8d17c50c9621a01ddf3f3754
parent8eeeb0d48015db1c0184bbb7e46dcf4a8e4b1169 (diff)
Add manager
-rw-r--r--kaddressbookimportexport/src/CMakeLists.txt2
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.cpp34
-rw-r--r--kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.h38
3 files changed, 74 insertions, 0 deletions
diff --git a/kaddressbookimportexport/src/CMakeLists.txt b/kaddressbookimportexport/src/CMakeLists.txt
index e244343..281bd68 100644
--- a/kaddressbookimportexport/src/CMakeLists.txt
+++ b/kaddressbookimportexport/src/CMakeLists.txt
@@ -5,6 +5,7 @@ add_definitions(-DTRANSLATION_DOMAIN=\"libkaddressbookimportexport\")
set(kaddressbook_importexport_LIB_SRCS
kaddressbookimportexportplugin.cpp
kaddressbookimportexportplugininterface.cpp
+ kaddressbookimportexportpluginmanager.cpp
)
add_library(KF5KaddressbookImportExport ${kaddressbook_importexport_LIB_SRCS})
@@ -42,6 +43,7 @@ ecm_generate_headers(KaddressbookImportExport_CamelCase_HEADERS
HEADER_NAMES
KAddressBookImportExportPluginInterface
KAddressBookImportExportPlugin
+ KAddressBookImportExportPluginManager
REQUIRED_HEADERS KaddressbookImportExport_HEADERS
PREFIX KaddressbookImportExport
)
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.cpp b/kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.cpp
new file mode 100644
index 0000000..e452adc
--- /dev/null
+++ b/kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.cpp
@@ -0,0 +1,34 @@
+/*
+ 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 "kaddressbookimportexportpluginmanager.h"
+
+using namespace KAddressBookImportExport;
+
+KAddressBookImportExportPluginManager::KAddressBookImportExportPluginManager(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+KAddressBookImportExportPluginManager::~KAddressBookImportExportPluginManager()
+{
+
+}
diff --git a/kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.h b/kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.h
new file mode 100644
index 0000000..93708d4
--- /dev/null
+++ b/kaddressbookimportexport/src/kaddressbookimportexportpluginmanager.h
@@ -0,0 +1,38 @@
+/*
+ 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 KADDRESSBOOKIMPORTEXPORTPLUGINMANAGER_H
+#define KADDRESSBOOKIMPORTEXPORTPLUGINMANAGER_H
+
+#include <QObject>
+#include "kaddressbook_importexport_export.h"
+
+namespace KAddressBookImportExport
+{
+class KADDRESSBOOK_IMPORTEXPORT_EXPORT KAddressBookImportExportPluginManager : public QObject
+{
+ Q_OBJECT
+public:
+ explicit KAddressBookImportExportPluginManager(QObject *parent = Q_NULLPTR);
+ ~KAddressBookImportExportPluginManager();
+};
+}
+
+#endif // KADDRESSBOOKIMPORTEXPORTPLUGINMANAGER_H