diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index cc1d1261..91eb05fd 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,8 +1,7 @@ add_subdirectory(customtoolsplugins) add_subdirectory(messageviewerplugins) add_subdirectory(messageviewerheaderplugins) -add_subdirectory(storageservices) add_subdirectory(messageviewer) add_subdirectory(plasma) add_subdirectory(webengineurlinterceptor) diff --git a/plugins/storageservices/CMakeLists.txt b/plugins/storageservices/CMakeLists.txt deleted file mode 100644 index 4607848a..00000000 --- a/plugins/storageservices/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ -add_definitions(-DTRANSLATION_DOMAIN=\"storageservices\") -add_subdirectory(boxplugin) -add_subdirectory(dropboxplugin) -add_subdirectory(hubicplugin) -add_subdirectory(webdavplugin) -add_subdirectory(yousenditplugin) -if( KF5GAPI_FOUND ) - add_subdirectory(gdriveplugin) -endif() - diff --git a/plugins/storageservices/Messages.sh b/plugins/storageservices/Messages.sh deleted file mode 100644 index 8e90603d..00000000 --- a/plugins/storageservices/Messages.sh +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/sh -$XGETTEXT `find . -name '*.cpp' -o -name '*.h' | grep -v '/tests/' | grep -v '/autotests/'` -o $podir/storageservices.pot diff --git a/plugins/storageservices/boxplugin/CMakeLists.txt b/plugins/storageservices/boxplugin/CMakeLists.txt deleted file mode 100644 index 75abcfbc..00000000 --- a/plugins/storageservices/boxplugin/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -set(pimcommon_boxplugin_SRCS - boxplugin.cpp - boxinterface.cpp -) - -add_library(pimcommon_boxplugin MODULE ${pimcommon_boxplugin_SRCS} ) - -target_link_libraries(pimcommon_boxplugin - KF5::PimCommon KF5::I18n -) - -install(TARGETS pimcommon_boxplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon) diff --git a/plugins/storageservices/boxplugin/boxinterface.cpp b/plugins/storageservices/boxplugin/boxinterface.cpp deleted file mode 100644 index dcce7777..00000000 --- a/plugins/storageservices/boxplugin/boxinterface.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "boxinterface.h" - -using namespace PimCommon; - -BoxInterface::BoxInterface(BoxPlugin *plugin, QObject *parent) - : PimCommon::StorageServiceInterface(parent), - mPlugin(plugin) -{ - -} - -BoxInterface::~BoxInterface() -{ - -} - -void BoxInterface::shutdownService() -{ - -} - -bool BoxInterface::isConfigurated() const -{ - //TODO - return true; -} - -void BoxInterface::downloadFile(const QString &name, const QString &fileId, const QString &destination) -{ - -} - -void BoxInterface::uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) -{ - -} - -void BoxInterface::accountInfo() -{ - -} - -void BoxInterface::createFolder(const QString &foldername, const QString &destination) -{ - -} - -void BoxInterface::listFolder(const QString &folder) -{ - -} - -void BoxInterface::authentication() -{ - -} - -void BoxInterface::shareLink(const QString &root, const QString &path) -{ - -} - -void BoxInterface::createServiceFolder() -{ - -} - -void BoxInterface::deleteFile(const QString &filename) -{ - -} - -void BoxInterface::deleteFolder(const QString &foldername) -{ - -} - -void BoxInterface::renameFolder(const QString &source, const QString &destination) -{ - -} - -void BoxInterface::renameFile(const QString &source, const QString &destination) -{ - -} - -void BoxInterface::moveFile(const QString &source, const QString &destination) -{ - -} - -void BoxInterface::moveFolder(const QString &source, const QString &destination) -{ - -} - -void BoxInterface::copyFile(const QString &source, const QString &destination) -{ - -} - -void BoxInterface::copyFolder(const QString &source, const QString &destination) -{ - -} - -void BoxInterface::removeConfig() -{ - -} diff --git a/plugins/storageservices/boxplugin/boxinterface.h b/plugins/storageservices/boxplugin/boxinterface.h deleted file mode 100644 index f8e25f08..00000000 --- a/plugins/storageservices/boxplugin/boxinterface.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef BOXINTERFACE_H -#define BOXINTERFACE_H - -#include - -namespace PimCommon -{ -class BoxPlugin; -class BoxInterface : public PimCommon::StorageServiceInterface -{ - Q_OBJECT -public: - explicit BoxInterface(BoxPlugin *plugin, QObject *parent = nullptr); - ~BoxInterface(); - void shutdownService() Q_DECL_OVERRIDE; - bool isConfigurated() const Q_DECL_OVERRIDE; - void downloadFile(const QString &name, const QString &fileId, const QString &destination) Q_DECL_OVERRIDE; - void uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) Q_DECL_OVERRIDE; - void accountInfo() Q_DECL_OVERRIDE; - void createFolder(const QString &foldername, const QString &destination) Q_DECL_OVERRIDE; - void listFolder(const QString &folder) Q_DECL_OVERRIDE; - void authentication() Q_DECL_OVERRIDE; - void shareLink(const QString &root, const QString &path) Q_DECL_OVERRIDE; - void createServiceFolder() Q_DECL_OVERRIDE; - void deleteFile(const QString &filename) Q_DECL_OVERRIDE; - void deleteFolder(const QString &foldername) Q_DECL_OVERRIDE; - void renameFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void renameFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void removeConfig() Q_DECL_OVERRIDE; - -private: - BoxPlugin *mPlugin; -}; -} -#endif // BOXINTERFACE_H diff --git a/plugins/storageservices/boxplugin/boxplugin.cpp b/plugins/storageservices/boxplugin/boxplugin.cpp deleted file mode 100644 index 890cd754..00000000 --- a/plugins/storageservices/boxplugin/boxplugin.cpp +++ /dev/null @@ -1,108 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "boxplugin.h" -#include -#include -#include - -using namespace PimCommon; -K_PLUGIN_FACTORY_WITH_JSON(PimCommonBoxPluginFactory, "pimcommon_boxplugin.json", registerPlugin();) - -BoxPlugin::BoxPlugin(QObject *parent, const QList &) - : PimCommon::StorageServicePlugin(parent) -{ - -} - -BoxPlugin::~BoxPlugin() -{ - -} - -QString BoxPlugin::boxClientId() const -{ - //TODO - return QString(); -} - -QString BoxPlugin::boxClientSecret() const -{ - //TODO - return QString(); -} - -QString BoxPlugin::oauth2RedirectUrl() const -{ - //TODO - return QString(); -} - -PimCommon::StorageServiceInterface *BoxPlugin::createStorageService(const QString &identifier) -{ - //TODO - return nullptr; -} - -QString BoxPlugin::storageServiceName() const -{ - return QStringLiteral("box"); -} - -StorageServicePlugin::Capabilities BoxPlugin::capabilities() const -{ - StorageServicePlugin::Capabilities cap; - cap |= AccountInfoCapability; - //cap |= UploadFileCapability; - cap |= DownloadFileCapability; - cap |= CreateFolderCapability; - cap |= DeleteFolderCapability; - cap |= ListFolderCapability; - cap |= DeleteFileCapability; - cap |= ShareLinkCapability; - cap |= RenameFolderCapability; - cap |= RenameFileCapabilitity; - cap |= MoveFileCapability; - cap |= MoveFolderCapability; - cap |= CopyFileCapability; - cap |= CopyFolderCapability; - return cap; -} - -QString BoxPlugin::description() const -{ - return i18n("Box.com is a file hosting that offers cloud storage, file synchronization, and client software."); -} - -QUrl BoxPlugin::serviceUrl() const -{ - return QUrl(QStringLiteral("https://app.box.com/")); -} - -QString BoxPlugin::disallowedSymbols() const -{ - return QLatin1String("[/:?*\\|]"); -} - -QString BoxPlugin::disallowedSymbolsStr() const -{ - return QStringLiteral("\\ / : ? * < > |"); -} - -#include "boxplugin.moc" diff --git a/plugins/storageservices/boxplugin/boxplugin.h b/plugins/storageservices/boxplugin/boxplugin.h deleted file mode 100644 index 3ae7f7a6..00000000 --- a/plugins/storageservices/boxplugin/boxplugin.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef BOXPLUGIN_H -#define BOXPLUGIN_H - -#include - -#include - -namespace PimCommon -{ -class BoxPlugin : public PimCommon::StorageServicePlugin -{ - Q_OBJECT -public: - explicit BoxPlugin(QObject *parent = nullptr, const QList & = QList()); - ~BoxPlugin(); - - QString storageServiceName() const Q_DECL_OVERRIDE; - StorageServicePlugin::Capabilities capabilities() const Q_DECL_OVERRIDE; - QString description() const Q_DECL_OVERRIDE; - QUrl serviceUrl() const Q_DECL_OVERRIDE; - QString disallowedSymbols() const Q_DECL_OVERRIDE; - QString disallowedSymbolsStr() const Q_DECL_OVERRIDE; - - QString boxClientId() const; - QString boxClientSecret() const; - QString oauth2RedirectUrl() const; - - PimCommon::StorageServiceInterface *createStorageService(const QString &identifier) Q_DECL_OVERRIDE; -}; -} -#endif // BOXPLUGIN_H diff --git a/plugins/storageservices/boxplugin/pimcommon_boxplugin.json b/plugins/storageservices/boxplugin/pimcommon_boxplugin.json deleted file mode 100644 index 8530dbf4..00000000 --- a/plugins/storageservices/boxplugin/pimcommon_boxplugin.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "KPlugin": { - "Name": "box", - "Name[de]": "Box", - "Name[es]": "caja", - "Name[pl]": "pudełko", - "Name[pt]": "Box", - "Name[pt_BR]": "Box", - "Name[ru]": "Box", - "Name[sr@ijekavian]": "Бокс", - "Name[sr@ijekavianlatin]": "Box", - "Name[sr@latin]": "Box", - "Name[sr]": "Бокс", - "Name[sv]": "låda", - "Name[x-test]": "xxboxxx", - "ServiceTypes": [ - "PimCommonStorageService/Plugin" - ] - } -} diff --git a/plugins/storageservices/dropboxplugin/CMakeLists.txt b/plugins/storageservices/dropboxplugin/CMakeLists.txt deleted file mode 100644 index e6d03522..00000000 --- a/plugins/storageservices/dropboxplugin/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -set(pimcommon_dropboxplugin_SRCS - dropboxplugin.cpp - dropboxinterface.cpp -) - -add_library(pimcommon_dropboxplugin MODULE ${pimcommon_dropboxplugin_SRCS} ) - -target_link_libraries(pimcommon_dropboxplugin - KF5::PimCommon - KF5::I18n -) - -install(TARGETS pimcommon_dropboxplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon) diff --git a/plugins/storageservices/dropboxplugin/dropboxinterface.cpp b/plugins/storageservices/dropboxplugin/dropboxinterface.cpp deleted file mode 100644 index c1adb7a5..00000000 --- a/plugins/storageservices/dropboxplugin/dropboxinterface.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "dropboxinterface.h" - -using namespace PimCommon; - -DropBoxInterface::DropBoxInterface(DropBoxPlugin *plugin, QObject *parent) - : PimCommon::StorageServiceInterface(parent), - mPlugin(plugin) -{ - -} - -DropBoxInterface::~DropBoxInterface() -{ - -} - -void DropBoxInterface::shutdownService() -{ - -} - -bool DropBoxInterface::isConfigurated() const -{ - //TODO - return true; -} - -void DropBoxInterface::downloadFile(const QString &name, const QString &fileId, const QString &destination) -{ - -} - -void DropBoxInterface::uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) -{ - -} - -void DropBoxInterface::accountInfo() -{ - -} - -void DropBoxInterface::createFolder(const QString &foldername, const QString &destination) -{ - -} - -void DropBoxInterface::listFolder(const QString &folder) -{ - -} - -void DropBoxInterface::authentication() -{ - -} - -void DropBoxInterface::shareLink(const QString &root, const QString &path) -{ - -} - -void DropBoxInterface::createServiceFolder() -{ - -} - -void DropBoxInterface::deleteFile(const QString &filename) -{ - -} - -void DropBoxInterface::deleteFolder(const QString &foldername) -{ - -} - -void DropBoxInterface::renameFolder(const QString &source, const QString &destination) -{ - -} - -void DropBoxInterface::renameFile(const QString &source, const QString &destination) -{ - -} - -void DropBoxInterface::moveFile(const QString &source, const QString &destination) -{ - -} - -void DropBoxInterface::moveFolder(const QString &source, const QString &destination) -{ - -} - -void DropBoxInterface::copyFile(const QString &source, const QString &destination) -{ - -} - -void DropBoxInterface::copyFolder(const QString &source, const QString &destination) -{ - -} - -void DropBoxInterface::removeConfig() -{ - -} diff --git a/plugins/storageservices/dropboxplugin/dropboxinterface.h b/plugins/storageservices/dropboxplugin/dropboxinterface.h deleted file mode 100644 index ec4813c2..00000000 --- a/plugins/storageservices/dropboxplugin/dropboxinterface.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef DROPBOXINTERFACE_H -#define DROPBOXINTERFACE_H - -#include - -namespace PimCommon -{ -class DropBoxPlugin; -class DropBoxInterface : public PimCommon::StorageServiceInterface -{ - Q_OBJECT -public: - explicit DropBoxInterface(DropBoxPlugin *plugin, QObject *parent = nullptr); - ~DropBoxInterface(); - void shutdownService() Q_DECL_OVERRIDE; - bool isConfigurated() const Q_DECL_OVERRIDE; - void downloadFile(const QString &name, const QString &fileId, const QString &destination) Q_DECL_OVERRIDE; - void uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) Q_DECL_OVERRIDE; - void accountInfo() Q_DECL_OVERRIDE; - void createFolder(const QString &foldername, const QString &destination) Q_DECL_OVERRIDE; - void listFolder(const QString &folder) Q_DECL_OVERRIDE; - void authentication() Q_DECL_OVERRIDE; - void shareLink(const QString &root, const QString &path) Q_DECL_OVERRIDE; - void createServiceFolder() Q_DECL_OVERRIDE; - void deleteFile(const QString &filename) Q_DECL_OVERRIDE; - void deleteFolder(const QString &foldername) Q_DECL_OVERRIDE; - void renameFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void renameFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void removeConfig() Q_DECL_OVERRIDE; - -private: - DropBoxPlugin *mPlugin; -}; -} -#endif // DROPBOXINTERFACE_H diff --git a/plugins/storageservices/dropboxplugin/dropboxplugin.cpp b/plugins/storageservices/dropboxplugin/dropboxplugin.cpp deleted file mode 100644 index 6ab9a411..00000000 --- a/plugins/storageservices/dropboxplugin/dropboxplugin.cpp +++ /dev/null @@ -1,120 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "dropboxplugin.h" -#include -#include -#include -#include - -using namespace PimCommon; -K_PLUGIN_FACTORY_WITH_JSON(PimCommonDropBoxPluginFactory, "pimcommon_dropboxplugin.json", registerPlugin();) - -DropBoxPlugin::DropBoxPlugin(QObject *parent, const QList &) - : PimCommon::StorageServicePlugin(parent) -{ - -} - -DropBoxPlugin::~DropBoxPlugin() -{ - -} - -QString DropBoxPlugin::dropboxOauthConsumerKey() const -{ - //TODO - return QString(); -} - -QString DropBoxPlugin::dropboxOauthSignature() const -{ - //TODO - return QString(); -} - -QString DropBoxPlugin::dropboxRootPath() const -{ - //TODO - return QString(); -} - -QString DropBoxPlugin::storageServiceName() const -{ - return QStringLiteral("dropbox"); -} - -StorageServicePlugin::Capabilities DropBoxPlugin::capabilities() const -{ - StorageServicePlugin::Capabilities cap; - cap |= AccountInfoCapability; - cap |= UploadFileCapability; - cap |= DownloadFileCapability; - cap |= CreateFolderCapability; - cap |= DeleteFolderCapability; - cap |= DeleteFileCapability; - cap |= ListFolderCapability; - cap |= ShareLinkCapability; - cap |= RenameFolderCapability; - cap |= RenameFileCapabilitity; - cap |= MoveFileCapability; - cap |= MoveFolderCapability; - cap |= CopyFileCapability; - cap |= CopyFolderCapability; - - return cap; -} - -QString DropBoxPlugin::description() const -{ - return i18n("Dropbox is a file hosting service operated by Dropbox, Inc. that offers cloud storage, file synchronization, and client software."); -} - -QUrl DropBoxPlugin::serviceUrl() const -{ - return QUrl(QStringLiteral("https://www.dropbox.com/")); -} - -QString DropBoxPlugin::disallowedSymbols() const -{ - return QStringLiteral("[/:?*<>\"|]"); -} - -QString DropBoxPlugin::disallowedSymbolsStr() const -{ - return QStringLiteral("\\ / : ? * < > \" |"); -} - -qlonglong DropBoxPlugin::maximumUploadFileSize() const -{ - return 150000000; -} - -QIcon DropBoxPlugin::icon() const -{ - return QIcon::fromTheme(QStringLiteral("kdepim-dropbox")); -} - -PimCommon::StorageServiceInterface *DropBoxPlugin::createStorageService(const QString &identifier) -{ - //TODO - return nullptr; -} - -#include "dropboxplugin.moc" diff --git a/plugins/storageservices/dropboxplugin/dropboxplugin.h b/plugins/storageservices/dropboxplugin/dropboxplugin.h deleted file mode 100644 index 83e8561b..00000000 --- a/plugins/storageservices/dropboxplugin/dropboxplugin.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef DROPBOXPLUGIN_H -#define DROPBOXPLUGIN_H - -#include - -#include - -namespace PimCommon -{ -class DropBoxPlugin : public PimCommon::StorageServicePlugin -{ - Q_OBJECT -public: - explicit DropBoxPlugin(QObject *parent = nullptr, const QList & = QList()); - ~DropBoxPlugin(); - - QString storageServiceName() const Q_DECL_OVERRIDE; - - StorageServicePlugin::Capabilities capabilities() const Q_DECL_OVERRIDE; - QString description() const Q_DECL_OVERRIDE; - QUrl serviceUrl() const Q_DECL_OVERRIDE; - - QString dropboxOauthConsumerKey() const; - QString dropboxOauthSignature() const; - QString dropboxRootPath() const; - QString disallowedSymbols() const Q_DECL_OVERRIDE; - QString disallowedSymbolsStr() const Q_DECL_OVERRIDE; - qlonglong maximumUploadFileSize() const Q_DECL_OVERRIDE; - - QIcon icon() const Q_DECL_OVERRIDE; - PimCommon::StorageServiceInterface *createStorageService(const QString &identifier) Q_DECL_OVERRIDE; -}; -} -#endif // DROPBOXPLUGIN_H diff --git a/plugins/storageservices/dropboxplugin/pimcommon_dropboxplugin.json b/plugins/storageservices/dropboxplugin/pimcommon_dropboxplugin.json deleted file mode 100644 index e7802491..00000000 --- a/plugins/storageservices/dropboxplugin/pimcommon_dropboxplugin.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "KPlugin": { - "Name": "DropBox", - "Name[ru]": "Dropbox", - "Name[sk]": "Dropbox", - "Name[sr@ijekavian]": "Дропбокс", - "Name[sr@ijekavianlatin]": "Dropbox", - "Name[sr@latin]": "Dropbox", - "Name[sr]": "Дропбокс", - "Name[sv]": "Dropbox", - "Name[x-test]": "xxDropBoxxx", - "ServiceTypes": [ - "PimCommonStorageService/Plugin" - ] - } -} diff --git a/plugins/storageservices/gdriveplugin/CMakeLists.txt b/plugins/storageservices/gdriveplugin/CMakeLists.txt deleted file mode 100644 index 380df24f..00000000 --- a/plugins/storageservices/gdriveplugin/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -set(pimcommon_gdriveplugin_SRCS - gdriveplugin.cpp - gdriveinterface.cpp -) - -add_library(pimcommon_gdriveplugin MODULE ${pimcommon_gdriveplugin_SRCS} ) - -target_link_libraries(pimcommon_gdriveplugin - KF5::PimCommon - KF5::I18n -) - -install(TARGETS pimcommon_gdriveplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon) diff --git a/plugins/storageservices/gdriveplugin/gdriveinterface.cpp b/plugins/storageservices/gdriveplugin/gdriveinterface.cpp deleted file mode 100644 index 3d3c5801..00000000 --- a/plugins/storageservices/gdriveplugin/gdriveinterface.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "gdriveinterface.h" - -using namespace PimCommon; - -GDriveInterface::GDriveInterface(GDrivePlugin *plugin, QObject *parent) - : PimCommon::StorageServiceInterface(parent), - mPlugin(plugin) -{ - -} - -GDriveInterface::~GDriveInterface() -{ - -} - -void GDriveInterface::shutdownService() -{ - -} - -bool GDriveInterface::isConfigurated() const -{ - //TODO - return true; -} - -void GDriveInterface::downloadFile(const QString &name, const QString &fileId, const QString &destination) -{ - -} - -void GDriveInterface::uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) -{ - -} - -void GDriveInterface::accountInfo() -{ - -} - -void GDriveInterface::createFolder(const QString &foldername, const QString &destination) -{ - -} - -void GDriveInterface::listFolder(const QString &folder) -{ - -} - -void GDriveInterface::authentication() -{ - -} - -void GDriveInterface::shareLink(const QString &root, const QString &path) -{ - -} - -void GDriveInterface::createServiceFolder() -{ - -} - -void GDriveInterface::deleteFile(const QString &filename) -{ - -} - -void GDriveInterface::deleteFolder(const QString &foldername) -{ - -} - -void GDriveInterface::renameFolder(const QString &source, const QString &destination) -{ - -} - -void GDriveInterface::renameFile(const QString &source, const QString &destination) -{ - -} - -void GDriveInterface::moveFile(const QString &source, const QString &destination) -{ - -} - -void GDriveInterface::moveFolder(const QString &source, const QString &destination) -{ - -} - -void GDriveInterface::copyFile(const QString &source, const QString &destination) -{ - -} - -void GDriveInterface::copyFolder(const QString &source, const QString &destination) -{ - -} - -void GDriveInterface::removeConfig() -{ - -} diff --git a/plugins/storageservices/gdriveplugin/gdriveinterface.h b/plugins/storageservices/gdriveplugin/gdriveinterface.h deleted file mode 100644 index 6e236a70..00000000 --- a/plugins/storageservices/gdriveplugin/gdriveinterface.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef GDRIVEINTERFACE_H -#define GDRIVEINTERFACE_H - -#include - -namespace PimCommon -{ -class GDrivePlugin; -class GDriveInterface : public PimCommon::StorageServiceInterface -{ - Q_OBJECT -public: - explicit GDriveInterface(GDrivePlugin *plugin, QObject *parent = nullptr); - ~GDriveInterface(); - void shutdownService() Q_DECL_OVERRIDE; - bool isConfigurated() const Q_DECL_OVERRIDE; - void downloadFile(const QString &name, const QString &fileId, const QString &destination) Q_DECL_OVERRIDE; - void uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) Q_DECL_OVERRIDE; - void accountInfo() Q_DECL_OVERRIDE; - void createFolder(const QString &foldername, const QString &destination) Q_DECL_OVERRIDE; - void listFolder(const QString &folder) Q_DECL_OVERRIDE; - void authentication() Q_DECL_OVERRIDE; - void shareLink(const QString &root, const QString &path) Q_DECL_OVERRIDE; - void createServiceFolder() Q_DECL_OVERRIDE; - void deleteFile(const QString &filename) Q_DECL_OVERRIDE; - void deleteFolder(const QString &foldername) Q_DECL_OVERRIDE; - void renameFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void renameFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void removeConfig() Q_DECL_OVERRIDE; - -private: - GDrivePlugin *mPlugin; -}; -} -#endif // GDRIVEINTERFACE_H diff --git a/plugins/storageservices/gdriveplugin/gdriveplugin.cpp b/plugins/storageservices/gdriveplugin/gdriveplugin.cpp deleted file mode 100644 index 6f44b6b6..00000000 --- a/plugins/storageservices/gdriveplugin/gdriveplugin.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "gdriveplugin.h" -#include -#include -#include -#include - -using namespace PimCommon; -K_PLUGIN_FACTORY_WITH_JSON(PimCommonGDrivePluginFactory, "pimcommon_gdriveplugin.json", registerPlugin();) - -GDrivePlugin::GDrivePlugin(QObject *parent, const QList &) - : PimCommon::StorageServicePlugin(parent) -{ - -} - -GDrivePlugin::~GDrivePlugin() -{ - -} - -QString GDrivePlugin::storageServiceName() const -{ - return QStringLiteral("googledrive"); -} - -QIcon GDrivePlugin::icon() const -{ - return QIcon::fromTheme(QStringLiteral("kdepim-googledrive")); -} - -StorageServicePlugin::Capabilities GDrivePlugin::capabilities() const -{ - StorageServicePlugin::Capabilities cap; - cap |= AccountInfoCapability; - cap |= UploadFileCapability; - //cap |= DownloadFileCapability; - cap |= CreateFolderCapability; - cap |= DeleteFolderCapability; - cap |= ListFolderCapability; - cap |= DeleteFileCapability; - //cap |= ShareLinkCapability; - cap |= RenameFolderCapability; - cap |= RenameFileCapabilitity; - //cap |= MoveFileCapability; - //cap |= MoveFolderCapability; - cap |= CopyFileCapability; - //cap |= CopyFolderCapability; - return cap; -} - -QString GDrivePlugin::description() const -{ - return i18n("Googledrive is a file hosting that offers cloud storage, file synchronization, and client software."); -} - -QUrl GDrivePlugin::serviceUrl() const -{ - return QUrl(QStringLiteral("http://www.google.com/drive")); -} - -PimCommon::StorageServiceInterface *GDrivePlugin::createStorageService(const QString &identifier) -{ - //TODO - return nullptr; -} - -#include "gdriveplugin.moc" diff --git a/plugins/storageservices/gdriveplugin/gdriveplugin.h b/plugins/storageservices/gdriveplugin/gdriveplugin.h deleted file mode 100644 index 389ca6a2..00000000 --- a/plugins/storageservices/gdriveplugin/gdriveplugin.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef GDRIVEPLUGIN_H -#define GDRIVEPLUGIN_H - -#include - -#include - -namespace PimCommon -{ -class GDrivePlugin : public PimCommon::StorageServicePlugin -{ - Q_OBJECT -public: - explicit GDrivePlugin(QObject *parent = nullptr, const QList & = QList()); - ~GDrivePlugin(); - - QString storageServiceName() const Q_DECL_OVERRIDE; - StorageServicePlugin::Capabilities capabilities() const Q_DECL_OVERRIDE; - QString description() const Q_DECL_OVERRIDE; - QUrl serviceUrl() const Q_DECL_OVERRIDE; - QIcon icon() const Q_DECL_OVERRIDE; - PimCommon::StorageServiceInterface *createStorageService(const QString &identifier) Q_DECL_OVERRIDE; -}; -} -#endif // HUBICPLUGIN_H diff --git a/plugins/storageservices/gdriveplugin/pimcommon_gdriveplugin.json b/plugins/storageservices/gdriveplugin/pimcommon_gdriveplugin.json deleted file mode 100644 index 43f1dafb..00000000 --- a/plugins/storageservices/gdriveplugin/pimcommon_gdriveplugin.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "KPlugin": { - "Name": "GDrive", - "Name[ru]": "Google Диск", - "Name[sr@ijekavian]": "Гугл‑драјв", - "Name[sr@ijekavianlatin]": "Google Drive", - "Name[sr@latin]": "Google Drive", - "Name[sr]": "Гугл‑драјв", - "Name[x-test]": "xxGDrivexx", - "ServiceTypes": [ - "PimCommonStorageService/Plugin" - ] - } -} diff --git a/plugins/storageservices/hubicplugin/CMakeLists.txt b/plugins/storageservices/hubicplugin/CMakeLists.txt deleted file mode 100644 index debcce06..00000000 --- a/plugins/storageservices/hubicplugin/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -set(pimcommon_hubicplugin_SRCS - hubicplugin.cpp - hubicinterface.cpp -) - -add_library(pimcommon_hubicplugin MODULE ${pimcommon_hubicplugin_SRCS} ) - -target_link_libraries(pimcommon_hubicplugin - KF5::PimCommon - KF5::I18n -) - -install(TARGETS pimcommon_hubicplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon) diff --git a/plugins/storageservices/hubicplugin/hubicinterface.cpp b/plugins/storageservices/hubicplugin/hubicinterface.cpp deleted file mode 100644 index d560bd95..00000000 --- a/plugins/storageservices/hubicplugin/hubicinterface.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. 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(HubicPlugin *plugin, QObject *parent) - : PimCommon::StorageServiceInterface(parent), - mPlugin(plugin) -{ - -} - -HubicInterface::~HubicInterface() -{ - -} - -void HubicInterface::shutdownService() -{ - -} - -bool HubicInterface::isConfigurated() const -{ - //TODO - return true; -} - -void HubicInterface::downloadFile(const QString &name, const QString &fileId, const QString &destination) -{ - -} - -void HubicInterface::uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) -{ - -} - -void HubicInterface::accountInfo() -{ - -} - -void HubicInterface::createFolder(const QString &foldername, const QString &destination) -{ - -} - -void HubicInterface::listFolder(const QString &folder) -{ - -} - -void HubicInterface::authentication() -{ - -} - -void HubicInterface::shareLink(const QString &root, const QString &path) -{ - -} - -void HubicInterface::createServiceFolder() -{ - -} - -void HubicInterface::deleteFile(const QString &filename) -{ - -} - -void HubicInterface::deleteFolder(const QString &foldername) -{ - -} - -void HubicInterface::renameFolder(const QString &source, const QString &destination) -{ - -} - -void HubicInterface::renameFile(const QString &source, const QString &destination) -{ - -} - -void HubicInterface::moveFile(const QString &source, const QString &destination) -{ - -} - -void HubicInterface::moveFolder(const QString &source, const QString &destination) -{ - -} - -void HubicInterface::copyFile(const QString &source, const QString &destination) -{ - -} - -void HubicInterface::copyFolder(const QString &source, const QString &destination) -{ - -} - -void HubicInterface::removeConfig() -{ - -} diff --git a/plugins/storageservices/hubicplugin/hubicinterface.h b/plugins/storageservices/hubicplugin/hubicinterface.h deleted file mode 100644 index 14019b52..00000000 --- a/plugins/storageservices/hubicplugin/hubicinterface.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. 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 - -namespace PimCommon -{ -class HubicPlugin; -class HubicInterface : public PimCommon::StorageServiceInterface -{ - Q_OBJECT -public: - explicit HubicInterface(HubicPlugin *plugin, QObject *parent = nullptr); - ~HubicInterface(); - void shutdownService() Q_DECL_OVERRIDE; - bool isConfigurated() const Q_DECL_OVERRIDE; - void downloadFile(const QString &name, const QString &fileId, const QString &destination) Q_DECL_OVERRIDE; - void uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) Q_DECL_OVERRIDE; - void accountInfo() Q_DECL_OVERRIDE; - void createFolder(const QString &foldername, const QString &destination) Q_DECL_OVERRIDE; - void listFolder(const QString &folder) Q_DECL_OVERRIDE; - void authentication() Q_DECL_OVERRIDE; - void shareLink(const QString &root, const QString &path) Q_DECL_OVERRIDE; - void createServiceFolder() Q_DECL_OVERRIDE; - void deleteFile(const QString &filename) Q_DECL_OVERRIDE; - void deleteFolder(const QString &foldername) Q_DECL_OVERRIDE; - void renameFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void renameFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void removeConfig() Q_DECL_OVERRIDE; - -private: - HubicPlugin *mPlugin; -}; -} -#endif // HUBICINTERFACE_H diff --git a/plugins/storageservices/hubicplugin/hubicplugin.cpp b/plugins/storageservices/hubicplugin/hubicplugin.cpp deleted file mode 100644 index 21add4be..00000000 --- a/plugins/storageservices/hubicplugin/hubicplugin.cpp +++ /dev/null @@ -1,101 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "hubicplugin.h" -#include -#include -#include - -using namespace PimCommon; -K_PLUGIN_FACTORY_WITH_JSON(PimCommonHubicPluginFactory, "pimcommon_hubicplugin.json", registerPlugin();) - -HubicPlugin::HubicPlugin(QObject *parent, const QList &) - : PimCommon::StorageServicePlugin(parent) -{ - -} - -HubicPlugin::~HubicPlugin() -{ - -} - -QString HubicPlugin::hubicClientId() const -{ - //TODO - return QString(); -} - -QString HubicPlugin::hubicClientSecret() const -{ - //TODO - return QString(); -} - -QString HubicPlugin::oauth2RedirectUrl() const -{ - //TODO - return QString(); -} - -QString HubicPlugin::storageServiceName() const -{ - return QStringLiteral("hubic"); -} - -StorageServicePlugin::Capabilities HubicPlugin::capabilities() const -{ - StorageServicePlugin::Capabilities cap; -#if 0 //Disable for the moment - cap |= AccountInfoCapability; - //cap |= UploadFileCapability; - //cap |= DownloadFileCapability; - cap |= CreateFolderCapability; - cap |= DeleteFolderCapability; - cap |= ListFolderCapability; - //cap |= ShareLinkCapability; - cap |= DeleteFileCapability; - //cap |= RenameFolderCapability; - //cap |= RenameFileCapabilitity; - //cap |= MoveFileCapability; - //cap |= MoveFolderCapability; - //cap |= CopyFileCapability; - //cap |= CopyFolderCapability; -#endif - - return cap; -} - -QString HubicPlugin::description() const -{ - return i18n("Hubic is a file hosting service operated by Ovh, Inc. that offers cloud storage, file synchronization, and client software."); -} - -QUrl HubicPlugin::serviceUrl() const -{ - return QUrl(QStringLiteral("https://hubic.com")); -} - -PimCommon::StorageServiceInterface *HubicPlugin::createStorageService(const QString &identifier) -{ - //TODO - return nullptr; -} - -#include "hubicplugin.moc" diff --git a/plugins/storageservices/hubicplugin/hubicplugin.h b/plugins/storageservices/hubicplugin/hubicplugin.h deleted file mode 100644 index 1539703d..00000000 --- a/plugins/storageservices/hubicplugin/hubicplugin.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. 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 - -#include - -namespace PimCommon -{ -class HubicPlugin : public PimCommon::StorageServicePlugin -{ - Q_OBJECT -public: - explicit HubicPlugin(QObject *parent = nullptr, const QList & = QList()); - ~HubicPlugin(); - - QString storageServiceName() const Q_DECL_OVERRIDE; - StorageServicePlugin::Capabilities capabilities() const Q_DECL_OVERRIDE; - QString description() const Q_DECL_OVERRIDE; - QUrl serviceUrl() const Q_DECL_OVERRIDE; - QString hubicClientId() const; - QString hubicClientSecret() const; - QString oauth2RedirectUrl() const; - PimCommon::StorageServiceInterface *createStorageService(const QString &identifier) Q_DECL_OVERRIDE; - -}; -} -#endif // HUBICPLUGIN_H diff --git a/plugins/storageservices/hubicplugin/pimcommon_hubicplugin.json b/plugins/storageservices/hubicplugin/pimcommon_hubicplugin.json deleted file mode 100644 index 829f3961..00000000 --- a/plugins/storageservices/hubicplugin/pimcommon_hubicplugin.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "KPlugin": { - "Name": "Hubic", - "Name[ru]": "hubiC", - "Name[sr@ijekavian]": "Хјубик", - "Name[sr@ijekavianlatin]": "hubiC", - "Name[sr@latin]": "hubiC", - "Name[sr]": "Хјубик", - "Name[uk]": "hubiC", - "Name[x-test]": "xxHubicxx", - "ServiceTypes": [ - "PimCommonStorageService/Plugin" - ] - } -} diff --git a/plugins/storageservices/webdavplugin/CMakeLists.txt b/plugins/storageservices/webdavplugin/CMakeLists.txt deleted file mode 100644 index 0af47ec8..00000000 --- a/plugins/storageservices/webdavplugin/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -set(pimcommon_webdavplugin_SRCS - webdavplugin.cpp - webdavinterface.cpp -) - -add_library(pimcommon_webdavplugin MODULE ${pimcommon_webdavplugin_SRCS} ) - -target_link_libraries(pimcommon_webdavplugin - KF5::PimCommon - KF5::I18n -) - -install(TARGETS pimcommon_webdavplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon) diff --git a/plugins/storageservices/webdavplugin/pimcommon_webdavplugin.json b/plugins/storageservices/webdavplugin/pimcommon_webdavplugin.json deleted file mode 100644 index 03ce3a92..00000000 --- a/plugins/storageservices/webdavplugin/pimcommon_webdavplugin.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "KPlugin": { - "Name": "Webdav", - "Name[cs]": "WebDav", - "Name[de]": "WebDAV", - "Name[pt]": "WebDAV", - "Name[ru]": "WebDAV", - "Name[sr@ijekavian]": "вебДАВ", - "Name[sr@ijekavianlatin]": "WebDAV", - "Name[sr@latin]": "WebDAV", - "Name[sr]": "вебДАВ", - "Name[sv]": "WebDAV", - "Name[x-test]": "xxWebdavxx", - "ServiceTypes": [ - "PimCommonStorageService/Plugin" - ] - } -} diff --git a/plugins/storageservices/webdavplugin/webdavinterface.cpp b/plugins/storageservices/webdavplugin/webdavinterface.cpp deleted file mode 100644 index 2a93b104..00000000 --- a/plugins/storageservices/webdavplugin/webdavinterface.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "webdavinterface.h" - -using namespace PimCommon; - -WebDavInterface::WebDavInterface(WebDavPlugin *plugin, QObject *parent) - : PimCommon::StorageServiceInterface(parent), - mPlugin(plugin) -{ - -} - -WebDavInterface::~WebDavInterface() -{ - -} - -void WebDavInterface::shutdownService() -{ - -} - -bool WebDavInterface::isConfigurated() const -{ - //TODO - return true; -} - -void WebDavInterface::downloadFile(const QString &name, const QString &fileId, const QString &destination) -{ - -} - -void WebDavInterface::uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) -{ - -} - -void WebDavInterface::accountInfo() -{ - -} - -void WebDavInterface::createFolder(const QString &foldername, const QString &destination) -{ - -} - -void WebDavInterface::listFolder(const QString &folder) -{ - -} - -void WebDavInterface::authentication() -{ - -} - -void WebDavInterface::shareLink(const QString &root, const QString &path) -{ - -} - -void WebDavInterface::createServiceFolder() -{ - -} - -void WebDavInterface::deleteFile(const QString &filename) -{ - -} - -void WebDavInterface::deleteFolder(const QString &foldername) -{ - -} - -void WebDavInterface::renameFolder(const QString &source, const QString &destination) -{ - -} - -void WebDavInterface::renameFile(const QString &source, const QString &destination) -{ - -} - -void WebDavInterface::moveFile(const QString &source, const QString &destination) -{ - -} - -void WebDavInterface::moveFolder(const QString &source, const QString &destination) -{ - -} - -void WebDavInterface::copyFile(const QString &source, const QString &destination) -{ - -} - -void WebDavInterface::copyFolder(const QString &source, const QString &destination) -{ - -} - -void WebDavInterface::removeConfig() -{ - -} diff --git a/plugins/storageservices/webdavplugin/webdavinterface.h b/plugins/storageservices/webdavplugin/webdavinterface.h deleted file mode 100644 index c04d904c..00000000 --- a/plugins/storageservices/webdavplugin/webdavinterface.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef WEBDAVINTERFACE_H -#define WEBDAVINTERFACE_H - -#include - -namespace PimCommon -{ -class WebDavPlugin; -class WebDavInterface : public PimCommon::StorageServiceInterface -{ - Q_OBJECT -public: - explicit WebDavInterface(WebDavPlugin *plugin, QObject *parent = nullptr); - ~WebDavInterface(); - void shutdownService() Q_DECL_OVERRIDE; - bool isConfigurated() const Q_DECL_OVERRIDE; - void downloadFile(const QString &name, const QString &fileId, const QString &destination) Q_DECL_OVERRIDE; - void uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) Q_DECL_OVERRIDE; - void accountInfo() Q_DECL_OVERRIDE; - void createFolder(const QString &foldername, const QString &destination) Q_DECL_OVERRIDE; - void listFolder(const QString &folder) Q_DECL_OVERRIDE; - void authentication() Q_DECL_OVERRIDE; - void shareLink(const QString &root, const QString &path) Q_DECL_OVERRIDE; - void createServiceFolder() Q_DECL_OVERRIDE; - void deleteFile(const QString &filename) Q_DECL_OVERRIDE; - void deleteFolder(const QString &foldername) Q_DECL_OVERRIDE; - void renameFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void renameFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void removeConfig() Q_DECL_OVERRIDE; -private: - WebDavPlugin *mPlugin; -}; -} -#endif // WEBDAVINTERFACE_H diff --git a/plugins/storageservices/webdavplugin/webdavplugin.cpp b/plugins/storageservices/webdavplugin/webdavplugin.cpp deleted file mode 100644 index 448fb087..00000000 --- a/plugins/storageservices/webdavplugin/webdavplugin.cpp +++ /dev/null @@ -1,87 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "webdavplugin.h" -#include -#include -#include -#include - -using namespace PimCommon; -K_PLUGIN_FACTORY_WITH_JSON(PimCommonWebDavPluginFactory, "pimcommon_webdavplugin.json", registerPlugin();) - -WebDavPlugin::WebDavPlugin(QObject *parent, const QList &) - : PimCommon::StorageServicePlugin(parent) -{ - -} - -WebDavPlugin::~WebDavPlugin() -{ - -} - -QString WebDavPlugin::storageServiceName() const -{ - return QStringLiteral("webdav"); -} - -StorageServicePlugin::Capabilities WebDavPlugin::capabilities() const -{ - StorageServicePlugin::Capabilities cap; - cap |= AccountInfoCapability; - cap |= UploadFileCapability; - cap |= DownloadFileCapability; - cap |= CreateFolderCapability; - cap |= DeleteFolderCapability; - cap |= ListFolderCapability; - //cap |= ShareLinkCapability; - cap |= DeleteFileCapability; - cap |= RenameFolderCapability; - cap |= RenameFileCapabilitity; - cap |= MoveFileCapability; - cap |= MoveFolderCapability; - cap |= CopyFileCapability; - cap |= CopyFolderCapability; - - return cap; -} - -QString WebDavPlugin::description() const -{ - return i18n("The WebDAV service allows access to any Web application that uses the WebDAV protocol, such as ownCloud, Kolab, and others."); -} - -QUrl WebDavPlugin::serviceUrl() const -{ - return QUrl(); -} - -QIcon WebDavPlugin::icon() const -{ - return QIcon::fromTheme(QStringLiteral("folder-remote")); -} - -PimCommon::StorageServiceInterface *WebDavPlugin::createStorageService(const QString &identifier) -{ - //TODO - return nullptr; -} - -#include "webdavplugin.moc" diff --git a/plugins/storageservices/webdavplugin/webdavplugin.h b/plugins/storageservices/webdavplugin/webdavplugin.h deleted file mode 100644 index 57829a9c..00000000 --- a/plugins/storageservices/webdavplugin/webdavplugin.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef WEBDAVPLUGIN_H -#define WEBDAVPLUGIN_H - -#include - -#include - -namespace PimCommon -{ -class WebDavPlugin : public PimCommon::StorageServicePlugin -{ - Q_OBJECT -public: - explicit WebDavPlugin(QObject *parent = nullptr, const QList & = QList()); - ~WebDavPlugin(); - - QString storageServiceName() const Q_DECL_OVERRIDE; - StorageServicePlugin::Capabilities capabilities() const Q_DECL_OVERRIDE; - QString description() const Q_DECL_OVERRIDE; - QUrl serviceUrl() const Q_DECL_OVERRIDE; - QIcon icon() const Q_DECL_OVERRIDE; - PimCommon::StorageServiceInterface *createStorageService(const QString &identifier) Q_DECL_OVERRIDE; -}; -} -#endif // WEBDAVPLUGIN_H diff --git a/plugins/storageservices/yousenditplugin/CMakeLists.txt b/plugins/storageservices/yousenditplugin/CMakeLists.txt deleted file mode 100644 index e5aae3ff..00000000 --- a/plugins/storageservices/yousenditplugin/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -set(pimcommon_yousenditplugin_SRCS - yousenditplugin.cpp - yousenditinterface.cpp -) - -add_library(pimcommon_yousenditplugin MODULE ${pimcommon_yousenditplugin_SRCS} ) - -target_link_libraries(pimcommon_yousenditplugin - KF5::PimCommon - KF5::I18n -) - -install(TARGETS pimcommon_yousenditplugin DESTINATION ${PLUGIN_INSTALL_DIR}/pimcommon) diff --git a/plugins/storageservices/yousenditplugin/pimcommon_yousenditplugin.json b/plugins/storageservices/yousenditplugin/pimcommon_yousenditplugin.json deleted file mode 100644 index 653216a1..00000000 --- a/plugins/storageservices/yousenditplugin/pimcommon_yousenditplugin.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "KPlugin": { - "Name": "YouSendIt", - "Name[sr@ijekavian]": "Јусендит", - "Name[sr]": "Јусендит", - "Name[x-test]": "xxYouSendItxx", - "ServiceTypes": [ - "PimCommonStorageService/Plugin" - ] - } -} diff --git a/plugins/storageservices/yousenditplugin/yousenditinterface.cpp b/plugins/storageservices/yousenditplugin/yousenditinterface.cpp deleted file mode 100644 index 2096184e..00000000 --- a/plugins/storageservices/yousenditplugin/yousenditinterface.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "yousenditinterface.h" - -using namespace PimCommon; - -YouSendItInterface::YouSendItInterface(YouSendItPlugin *plugin, QObject *parent) - : PimCommon::StorageServiceInterface(parent), - mPlugin(plugin) -{ - -} - -YouSendItInterface::~YouSendItInterface() -{ - -} - -void YouSendItInterface::downloadFile(const QString &name, const QString &fileId, const QString &destination) -{ - -} - -void YouSendItInterface::uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) -{ - -} - -void YouSendItInterface::accountInfo() -{ - -} - -void YouSendItInterface::createFolder(const QString &foldername, const QString &destination) -{ - -} - -void YouSendItInterface::listFolder(const QString &folder) -{ - -} - -void YouSendItInterface::authentication() -{ - -} - -void YouSendItInterface::shareLink(const QString &root, const QString &path) -{ - -} - -void YouSendItInterface::createServiceFolder() -{ - -} - -void YouSendItInterface::deleteFile(const QString &filename) -{ - -} - -void YouSendItInterface::deleteFolder(const QString &foldername) -{ - -} - -void YouSendItInterface::renameFolder(const QString &source, const QString &destination) -{ - -} - -void YouSendItInterface::renameFile(const QString &source, const QString &destination) -{ - -} - -void YouSendItInterface::moveFile(const QString &source, const QString &destination) -{ - -} - -void YouSendItInterface::moveFolder(const QString &source, const QString &destination) -{ - -} - -void YouSendItInterface::copyFile(const QString &source, const QString &destination) -{ - -} - -void YouSendItInterface::copyFolder(const QString &source, const QString &destination) -{ - -} - -void YouSendItInterface::shutdownService() -{ - -} - -void YouSendItInterface::removeConfig() -{ - -} - -bool YouSendItInterface::isConfigurated() const -{ - //TODO - return true; -} diff --git a/plugins/storageservices/yousenditplugin/yousenditinterface.h b/plugins/storageservices/yousenditplugin/yousenditinterface.h deleted file mode 100644 index 78c09ece..00000000 --- a/plugins/storageservices/yousenditplugin/yousenditinterface.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef YOUSENDITINTERFACE_H -#define YOUSENDITINTERFACE_H - -#include - -namespace PimCommon -{ -class YouSendItPlugin; -class YouSendItInterface : public PimCommon::StorageServiceInterface -{ - Q_OBJECT -public: - explicit YouSendItInterface(YouSendItPlugin *plugin, QObject *parent = nullptr); - ~YouSendItInterface(); - void shutdownService() Q_DECL_OVERRIDE; - bool isConfigurated() const Q_DECL_OVERRIDE; - void downloadFile(const QString &name, const QString &fileId, const QString &destination) Q_DECL_OVERRIDE; - void uploadFile(const QString &filename, const QString &uploadAsName, const QString &destination) Q_DECL_OVERRIDE; - void accountInfo() Q_DECL_OVERRIDE; - void createFolder(const QString &foldername, const QString &destination) Q_DECL_OVERRIDE; - void listFolder(const QString &folder) Q_DECL_OVERRIDE; - void authentication() Q_DECL_OVERRIDE; - void shareLink(const QString &root, const QString &path) Q_DECL_OVERRIDE; - void createServiceFolder() Q_DECL_OVERRIDE; - void deleteFile(const QString &filename) Q_DECL_OVERRIDE; - void deleteFolder(const QString &foldername) Q_DECL_OVERRIDE; - void renameFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void renameFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void moveFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFile(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void copyFolder(const QString &source, const QString &destination) Q_DECL_OVERRIDE; - void removeConfig() Q_DECL_OVERRIDE; -private: - YouSendItPlugin *mPlugin; -}; -} -#endif // YOUSENDITINTERFACE_H diff --git a/plugins/storageservices/yousenditplugin/yousenditplugin.cpp b/plugins/storageservices/yousenditplugin/yousenditplugin.cpp deleted file mode 100644 index 11788cb8..00000000 --- a/plugins/storageservices/yousenditplugin/yousenditplugin.cpp +++ /dev/null @@ -1,88 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include "yousenditplugin.h" -#include -#include -#include - -using namespace PimCommon; -K_PLUGIN_FACTORY_WITH_JSON(PimCommonYouSendItPluginFactory, "pimcommon_yousenditplugin.json", registerPlugin();) - -YouSendItPlugin::YouSendItPlugin(QObject *parent, const QList &) - : PimCommon::StorageServicePlugin(parent) -{ - -} - -YouSendItPlugin::~YouSendItPlugin() -{ - -} - -QString YouSendItPlugin::youSendItApiKey() const -{ - return QString(); -} - -QString YouSendItPlugin::description() const -{ - return i18n("YouSendIt is a file hosting that offers cloud storage, file synchronization, and client software."); -} - -QUrl YouSendItPlugin::serviceUrl() const -{ - return QUrl(QStringLiteral("https://www.yousendit.com/")); -} - -QString YouSendItPlugin::storageServiceName() const -{ - return QStringLiteral("yousendit"); -} - -StorageServicePlugin::Capabilities YouSendItPlugin::capabilities() const -{ - StorageServicePlugin::Capabilities cap; - cap |= AccountInfoCapability; - cap |= UploadFileCapability; - //cap |= DownloadFileCapability; - cap |= CreateFolderCapability; - cap |= DeleteFolderCapability; - cap |= ListFolderCapability; - //cap |= ShareLinkCapability; - cap |= DeleteFileCapability; - cap |= RenameFolderCapability; - cap |= RenameFileCapabilitity; - cap |= MoveFileCapability; - cap |= MoveFolderCapability; - - //Can not be implemented. - //cap |= CopyFileCapability; - //cap |= CopyFolderCapability; - - return cap; -} - -PimCommon::StorageServiceInterface *YouSendItPlugin::createStorageService(const QString &identifier) -{ - //TODO - return nullptr; -} - -#include "yousenditplugin.moc" diff --git a/plugins/storageservices/yousenditplugin/yousenditplugin.h b/plugins/storageservices/yousenditplugin/yousenditplugin.h deleted file mode 100644 index 1eb88fa4..00000000 --- a/plugins/storageservices/yousenditplugin/yousenditplugin.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - Copyright (c) 2015-2017 Montel Laurent - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library 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 Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#ifndef YOUSENDITPLUGIN_H -#define YOUSENDITPLUGIN_H - -#include - -#include - -namespace PimCommon -{ -class YouSendItPlugin : public PimCommon::StorageServicePlugin -{ - Q_OBJECT -public: - explicit YouSendItPlugin(QObject *parent = nullptr, const QList & = QList()); - ~YouSendItPlugin(); - - QString storageServiceName() const Q_DECL_OVERRIDE; - StorageServicePlugin::Capabilities capabilities() const Q_DECL_OVERRIDE; - QString description() const Q_DECL_OVERRIDE; - QUrl serviceUrl() const Q_DECL_OVERRIDE; - - QString youSendItApiKey() const; - PimCommon::StorageServiceInterface *createStorageService(const QString &identifier) Q_DECL_OVERRIDE; -}; -} -#endif // YOUSENDITPLUGIN_H