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-08-01 11:01:26 +02:00
|
|
|
bool isConnected();
|
|
|
|
void requestLogin();
|
|
|
|
void requestLogoff();
|
|
|
|
QString socialNetworkIcon() const;
|
|
|
|
QString socialNetworkName() const;
|
|
|
|
void requestUpload();
|
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
|