diff options
Diffstat (limited to 'desktop-widgets/plugins/facebook/facebook_integration.cpp')
-rw-r--r-- | desktop-widgets/plugins/facebook/facebook_integration.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/desktop-widgets/plugins/facebook/facebook_integration.cpp b/desktop-widgets/plugins/facebook/facebook_integration.cpp deleted file mode 100644 index 30fa83610..000000000 --- a/desktop-widgets/plugins/facebook/facebook_integration.cpp +++ /dev/null @@ -1,43 +0,0 @@ -// 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(); -} |