summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-10-14 08:17:08 +0200
committerMontel Laurent <[email protected]>2015-10-14 08:17:08 +0200
commite3cc36228922d8f60d1358d974c83dee24b2cf14 (patch)
tree32dab39fdd531afcf6054eed1b331fbfd0383f96
parent6fd6efa5be318e45435e1caa400cd512d4183c1b (diff)
Add hubic
-rw-r--r--pimcommon/src/storageservice/CMakeLists.txt1
-rw-r--r--pimcommon/src/storageservice/hubicplugin/CMakeLists.txt13
-rw-r--r--pimcommon/src/storageservice/hubicplugin/hubicinterface.cpp32
-rw-r--r--pimcommon/src/storageservice/hubicplugin/hubicinterface.h33
-rw-r--r--pimcommon/src/storageservice/hubicplugin/hubicplugin.cpp39
-rw-r--r--pimcommon/src/storageservice/hubicplugin/hubicplugin.h38
-rw-r--r--pimcommon/src/storageservice/hubicplugin/pimcommon_hubicplugin.desktop5
7 files changed, 161 insertions, 0 deletions
diff --git a/pimcommon/src/storageservice/CMakeLists.txt b/pimcommon/src/storageservice/CMakeLists.txt
index 982c1e3..251acbb 100644
--- a/pimcommon/src/storageservice/CMakeLists.txt
+++ b/pimcommon/src/storageservice/CMakeLists.txt
@@ -1,3 +1,4 @@
add_subdirectory(yousenditplugin)
add_subdirectory(dropboxplugin)
add_subdirectory(boxplugin)
+add_subdirectory(hubicplugin)
diff --git a/pimcommon/src/storageservice/hubicplugin/CMakeLists.txt b/pimcommon/src/storageservice/hubicplugin/CMakeLists.txt
new file mode 100644
index 0000000..8a26afa
--- /dev/null
+++ b/pimcommon/src/storageservice/hubicplugin/CMakeLists.txt
@@ -0,0 +1,13 @@
+set(pimcommon_hubicplugin_SRCS
+ hubicplugin.cpp
+ hubicinterface.cpp
+)
+
+add_library(pimcommon_hubicplugin MODULE ${pimcommon_hubicplugin_SRCS} )
+
+target_link_libraries(pimcommon_hubicplugin
+ KF5::PimCommon
+)
+
+install(TARGETS pimcommon_hubicplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon)
+kcoreaddons_desktop_to_json(pimcommon_hubicplugin pimcommon_hubicplugin.desktop)
diff --git a/pimcommon/src/storageservice/hubicplugin/hubicinterface.cpp b/pimcommon/src/storageservice/hubicplugin/hubicinterface.cpp
new file mode 100644
index 0000000..84b260b
--- /dev/null
+++ b/pimcommon/src/storageservice/hubicplugin/hubicinterface.cpp
@@ -0,0 +1,32 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "hubicinterface.h"
+
+using namespace PimCommon;
+
+HubicInterface::HubicInterface(QObject *parent)
+ : PimCommon::StorageServiceInterface(parent)
+{
+
+}
+
+HubicInterface::~HubicInterface()
+{
+
+}
+
diff --git a/pimcommon/src/storageservice/hubicplugin/hubicinterface.h b/pimcommon/src/storageservice/hubicplugin/hubicinterface.h
new file mode 100644
index 0000000..6fb102f
--- /dev/null
+++ b/pimcommon/src/storageservice/hubicplugin/hubicinterface.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 HUBICINTERFACE_H
+#define HUBICINTERFACE_H
+
+#include <storageservice/storageserviceinterface.h>
+
+namespace PimCommon
+{
+class HubicInterface : public PimCommon::StorageServiceInterface
+{
+ Q_OBJECT
+public:
+ explicit HubicInterface(QObject *parent = Q_NULLPTR);
+ ~HubicInterface();
+};
+}
+#endif // HUBICINTERFACE_H
diff --git a/pimcommon/src/storageservice/hubicplugin/hubicplugin.cpp b/pimcommon/src/storageservice/hubicplugin/hubicplugin.cpp
new file mode 100644
index 0000000..ead1025
--- /dev/null
+++ b/pimcommon/src/storageservice/hubicplugin/hubicplugin.cpp
@@ -0,0 +1,39 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 "hubicplugin.h"
+#include <kpluginfactory.h>
+
+using namespace PimCommon;
+K_PLUGIN_FACTORY_WITH_JSON(PimCommonHubicPluginFactory, "pimcommon_hubicplugin.json", registerPlugin<HubicPlugin>();)
+
+HubicPlugin::HubicPlugin(QObject *parent, const QList<QVariant> &)
+ : PimCommon::StorageServicePlugin(parent)
+{
+
+}
+
+HubicPlugin::~HubicPlugin()
+{
+
+}
+
+QString HubicPlugin::storageServiceName() const
+{
+ return QStringLiteral("hubic");
+}
+#include "hubicplugin.moc"
diff --git a/pimcommon/src/storageservice/hubicplugin/hubicplugin.h b/pimcommon/src/storageservice/hubicplugin/hubicplugin.h
new file mode 100644
index 0000000..89e3a0c
--- /dev/null
+++ b/pimcommon/src/storageservice/hubicplugin/hubicplugin.h
@@ -0,0 +1,38 @@
+/*
+ Copyright (c) 2015 Montel Laurent <[email protected]>
+
+ 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 HUBICPLUGIN_H
+#define HUBICPLUGIN_H
+
+#include <storageservice/storageserviceplugin.h>
+
+#include <QVariant>
+
+
+namespace PimCommon
+{
+class HubicPlugin : public PimCommon::StorageServicePlugin
+{
+ Q_OBJECT
+public:
+ explicit HubicPlugin(QObject *parent = Q_NULLPTR, const QList<QVariant> & = QList<QVariant>());
+ ~HubicPlugin();
+
+ QString storageServiceName() const Q_DECL_OVERRIDE;
+};
+}
+#endif // HUBICPLUGIN_H
diff --git a/pimcommon/src/storageservice/hubicplugin/pimcommon_hubicplugin.desktop b/pimcommon/src/storageservice/hubicplugin/pimcommon_hubicplugin.desktop
new file mode 100644
index 0000000..9f7e01b
--- /dev/null
+++ b/pimcommon/src/storageservice/hubicplugin/pimcommon_hubicplugin.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Type=Service
+ServiceTypes=PimCommonStorageService/Plugin
+X-KDE-Library=pimcommon_hubicplugin
+Name=Hubic