Debian Codegraph @

src/onedrive/onedrive-signon/onedrivesignonplugin.h

raw symbols SCIP
1 /****************************************************************************
2 **
3 ** Copyright (c) 2015 - 2021 Jolla Ltd.
4 **
5 ** This program/library is free software; you can redistribute it and/or
6 ** modify it under the terms of the GNU Lesser General Public License
7 ** version 2.1 as published by the Free Software Foundation.
8 **
9 ** This program/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 program/library; if not, write to the Free
16 ** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17 ** 02110-1301 USA
18 **
19 ****************************************************************************/
20
21 #ifndef ONEDRIVESIGNONPLUGIN_H
22 #define ONEDRIVESIGNONPLUGIN_H
23
24 #include "socialdbuteoplugin.h"
25
26 #include <buteosyncfw5/SyncPluginLoader.h>
27
28 class Q_DECL_EXPORT OneDriveSignonPlugin : public SocialdButeoPlugin
29 {
30 Q_OBJECT
31
32 public:
33 OneDriveSignonPlugin(const QString& pluginName,
34 const Buteo::SyncProfile& profile,
35 Buteo::PluginCbInterface *cbInterface);
36 ~OneDriveSignonPlugin();
37
38 protected:
39 SocialNetworkSyncAdaptor *createSocialNetworkSyncAdaptor() override;
40 };
41
42
43 class OneDriveSignonPluginLoader : public Buteo::SyncPluginLoader
44 {
45 Q_OBJECT
46 Q_PLUGIN_METADATA(IID "org.sailfishos.plugins.sync.OneDriveSignonPluginLoader")
47 Q_INTERFACES(Buteo::SyncPluginLoader)
48
49 public:
50 Buteo::ClientPlugin* createClientPlugin(const QString& pluginName,
51 const Buteo::SyncProfile& profile,
52 Buteo::PluginCbInterface* cbInterface) override;
53 };
54
55 #endif // ONEDRIVESIGNONPLUGIN_H