| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 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 |