summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook/facebook_integration.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/plugins/facebook/facebook_integration.h')
-rw-r--r--desktop-widgets/plugins/facebook/facebook_integration.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/desktop-widgets/plugins/facebook/facebook_integration.h b/desktop-widgets/plugins/facebook/facebook_integration.h
index e69de29bb..a9d212e7e 100644
--- a/desktop-widgets/plugins/facebook/facebook_integration.h
+++ b/desktop-widgets/plugins/facebook/facebook_integration.h
@@ -0,0 +1,21 @@
+#ifndef FACEBOOK_INTEGRATION_H
+#define FACEBOOK_INTEGRATION_H
+
+#include "subsurface-core/isocialnetworkintegration.h"
+#include <QString>
+
+class FacebookPlugin : public QObject, public ISocialNetworkIntegration {
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.subsurface.plugins.ISocialNetworkIntegration")
+ Q_INTERFACES(ISocialNetworkIntegration)
+public:
+ explicit FacebookPlugin(QObject* parent = 0);
+ virtual bool isConnected();
+ virtual void requestLogin();
+ virtual void requestLogoff();
+ virtual QString socialNetworkIcon() const;
+ virtual QString socialNetworkName() const;
+ virtual void uploadCurrentDive();
+};
+
+#endif \ No newline at end of file