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);
|
|
|
|
virtual bool isConnected();
|
|
|
|
virtual void requestLogin();
|
|
|
|
virtual void requestLogoff();
|
|
|
|
virtual QString socialNetworkIcon() const;
|
|
|
|
virtual QString socialNetworkName() const;
|
|
|
|
virtual void requestUpload();
|
|
|
|
private:
|
|
|
|
FacebookConnectWidget *fbConnectWidget;
|
|
|
|
SocialNetworkDialog *fbUploadDialog;
|
2015-10-29 23:47:08 +00:00
|
|
|
};
|
|
|
|
|
2016-04-05 05:02:03 +00:00
|
|
|
#endif
|