mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 06:00:20 +00:00
2b84482787
C++ permits use of parameters without name, which signals unused Signed-off-by: Jan Iversen <jani@apache.org>
43 lines
803 B
C++
43 lines
803 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "facebook_integration.h"
|
|
#include "facebookconnectwidget.h"
|
|
|
|
#include <QDebug>
|
|
|
|
FacebookPlugin::FacebookPlugin(QObject*) :
|
|
fbConnectWidget(new FacebookConnectWidget())
|
|
{
|
|
}
|
|
|
|
bool FacebookPlugin::isConnected()
|
|
{
|
|
FacebookManager *instance = FacebookManager::instance();
|
|
return instance->loggedIn();
|
|
}
|
|
|
|
void FacebookPlugin::requestLogin()
|
|
{
|
|
fbConnectWidget->exec();
|
|
}
|
|
|
|
void FacebookPlugin::requestLogoff()
|
|
{
|
|
FacebookManager::instance()->logout();
|
|
}
|
|
|
|
QString FacebookPlugin::socialNetworkIcon() const
|
|
{
|
|
return QString();
|
|
}
|
|
|
|
QString FacebookPlugin::socialNetworkName() const
|
|
{
|
|
return tr("Facebook");
|
|
}
|
|
|
|
void FacebookPlugin::requestUpload()
|
|
{
|
|
FacebookManager *instance = FacebookManager::instance();
|
|
if (instance->loggedIn())
|
|
instance->sendDiveInit();
|
|
}
|