2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-10-29 23:47:08 +00:00
|
|
|
#ifndef FACEBOOK_INTEGRATION_H
|
|
|
|
#define FACEBOOK_INTEGRATION_H
|
|
|
|
|
2016-04-05 05:02:03 +00:00
|
|
|
#include "core/isocialnetworkintegration.h"
|
2015-10-29 23:47:08 +00:00
|
|
|
#include <QString>
|
|
|
|
|
2015-11-08 13:50:04 +00:00
|
|
|
class FacebookConnectWidget;
|
|
|
|
class SocialNetworkDialog;
|
|
|
|
class FacebookManager;
|
|
|
|
|
2015-11-09 20:14:20 +00:00
|
|
|
class FacebookPlugin : public ISocialNetworkIntegration {
|
2015-11-08 13:50:04 +00:00
|
|
|
Q_OBJECT
|
2015-10-29 23:47:08 +00:00
|
|
|
public:
|
2015-11-08 13:50:04 +00:00
|
|
|
explicit FacebookPlugin(QObject* parent = 0);
|
2018-09-29 20:13:44 +00:00
|
|
|
bool isConnected() override;
|
|
|
|
void requestLogin() override;
|
|
|
|
void requestLogoff() override;
|
|
|
|
QString socialNetworkIcon() const override;
|
|
|
|
QString socialNetworkName() const override;
|
|
|
|
void requestUpload() override;
|
2015-11-08 13:50:04 +00:00
|
|
|
private:
|
|
|
|
FacebookConnectWidget *fbConnectWidget;
|
2015-10-29 23:47:08 +00:00
|
|
|
};
|
|
|
|
|
2016-04-05 05:02:03 +00:00
|
|
|
#endif
|