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