Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/nextcloud/nextcloudplugin.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright 2017 Lim Yuen Hoe <yuenhoe86@gmail.com> | ||||
3 | | ||||
4 | This library is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU Lesser General Public | ||||
6 | License as published by the Free Software Foundation; either | ||||
7 | version 2.1 of the License, or (at your option) any later version. | ||||
8 | | ||||
9 | This library is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | Lesser General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU Lesser General Public | ||||
15 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | */ | ||||
17 | | ||||
18 | #include <purpose/pluginbase.h> | ||||
19 | #include "nextcloudjob.h" | ||||
20 | | ||||
21 | #include <KPluginFactory> | ||||
22 | #include <QUrl> | ||||
23 | | ||||
24 | class NextcloudPlugin : public Purpose::PluginBase | ||||
25 | { | ||||
26 | Q_OBJECT | ||||
27 | public: | ||||
28 | NextcloudPlugin(QObject* parent, const QVariantList& args) | ||||
29 | : Purpose::PluginBase(parent) | ||||
30 | { | ||||
31 | Q_UNUSED(args); | ||||
32 | } | ||||
33 | | ||||
34 | virtual Purpose::Job* createJob() const override | ||||
35 | { | ||||
36 | return new NextcloudJob(nullptr); | ||||
37 | } | ||||
38 | }; | ||||
39 | | ||||
40 | K_PLUGIN_FACTORY_WITH_JSON(NextcloudShare, "nextcloudplugin.json", registerPlugin<NextcloudPlugin>();) | ||||
41 | | ||||
42 | EXPORT_SHARE_VERSION | ||||
43 | | ||||
44 | #include "nextcloudplugin.moc" |