summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-10-09 19:17:58 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-30 10:36:51 -0700
commit1d3bf5f407ab39987b2274c28493220fb363e13f (patch)
tree1611216bea02257521398e7cf9131b320d26211a /subsurface-core
parent53a5f6d7a46c4bbdddf394f542f20bc1a842c3a0 (diff)
downloadsubsurface-1d3bf5f407ab39987b2274c28493220fb363e13f.tar.gz
Fix the ISocialNetworkIntegration interface
I missed a few virtuals there. :) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/isocialnetworkintegration.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/subsurface-core/isocialnetworkintegration.h b/subsurface-core/isocialnetworkintegration.h
index e20ab646f..9e54c87ab 100644
--- a/subsurface-core/isocialnetworkintegration.h
+++ b/subsurface-core/isocialnetworkintegration.h
@@ -1,6 +1,8 @@
#ifndef ISOCIALNETWORKINTEGRATION_H
#define ISOCIALNETWORKINTEGRATION_H
+#include <QtPlugin>
+
/* This Interface represents a Plugin for Social Network integration,
* with it you may be able to create plugins for facebook, instagram,
* twitpic, google plus and any other thing you may imagine.
@@ -17,7 +19,7 @@ class ISocialNetworkIntegration {
* The name of this social network will be used to populate the Menu to toggle states
* between connected/disconnected, and also submit stuff to it.
*/
- QString socialNetworkName() const = 0;
+ virtual QString socialNetworkName() const = 0;
/*!
* @name socialNetworkIcon
@@ -27,14 +29,14 @@ class ISocialNetworkIntegration {
* The icon of this social network will be used to populate the menu, and can also be
* used on a toolbar if requested.
*/
- QIcon socialNetworkIcon() const = 0;
+ virtual QString socialNetworkIcon() const = 0;
/*!
* @name isConnected
* @brief returns true if connected to this social network, false otherwise
* @return true if connected to this social network, false otherwise
*/
- bool isConnected() = 0;
+ virtual bool isConnected() = 0;
/*!
* @name requestLogin
@@ -43,7 +45,7 @@ class ISocialNetworkIntegration {
* Try to login on this social network. All widget implementation that
* manages login should be done inside this function.
*/
- void requestLogin() = 0;
+ virtual void requestLogin() = 0;
/*!
* @name requestLogoff
@@ -51,7 +53,7 @@ class ISocialNetworkIntegration {
*
* Try to logoff from this social network.
*/
- void requestLogoff() = 0;
+ virtual void requestLogoff() = 0;
/*!
* @name uploadCurrentDive
@@ -61,7 +63,9 @@ class ISocialNetworkIntegration {
* to update to the social network. All widget stuff related to sendint
* dive information should be executed inside this function.
*/
- void uploadCurrentDive() = 0;
+ virtual void uploadCurrentDive() = 0;
};
+Q_DECLARE_INTERFACE(ISocialNetworkIntegration, "org.subsurface.ISocialNetworkIntegration.v1")
+
#endif \ No newline at end of file