mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 22:46:16 +00:00
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>
This commit is contained in:
parent
53a5f6d7a4
commit
1d3bf5f407
1 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,8 @@
|
||||||
#ifndef ISOCIALNETWORKINTEGRATION_H
|
#ifndef ISOCIALNETWORKINTEGRATION_H
|
||||||
#define ISOCIALNETWORKINTEGRATION_H
|
#define ISOCIALNETWORKINTEGRATION_H
|
||||||
|
|
||||||
|
#include <QtPlugin>
|
||||||
|
|
||||||
/* This Interface represents a Plugin for Social Network integration,
|
/* This Interface represents a Plugin for Social Network integration,
|
||||||
* with it you may be able to create plugins for facebook, instagram,
|
* with it you may be able to create plugins for facebook, instagram,
|
||||||
* twitpic, google plus and any other thing you may imagine.
|
* 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
|
* 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.
|
* between connected/disconnected, and also submit stuff to it.
|
||||||
*/
|
*/
|
||||||
QString socialNetworkName() const = 0;
|
virtual QString socialNetworkName() const = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @name socialNetworkIcon
|
* @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
|
* The icon of this social network will be used to populate the menu, and can also be
|
||||||
* used on a toolbar if requested.
|
* used on a toolbar if requested.
|
||||||
*/
|
*/
|
||||||
QIcon socialNetworkIcon() const = 0;
|
virtual QString socialNetworkIcon() const = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @name isConnected
|
* @name isConnected
|
||||||
* @brief returns true if connected to this social network, false otherwise
|
* @brief returns true if connected to this social network, false otherwise
|
||||||
* @return 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
|
* @name requestLogin
|
||||||
|
@ -43,7 +45,7 @@ class ISocialNetworkIntegration {
|
||||||
* Try to login on this social network. All widget implementation that
|
* Try to login on this social network. All widget implementation that
|
||||||
* manages login should be done inside this function.
|
* manages login should be done inside this function.
|
||||||
*/
|
*/
|
||||||
void requestLogin() = 0;
|
virtual void requestLogin() = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @name requestLogoff
|
* @name requestLogoff
|
||||||
|
@ -51,7 +53,7 @@ class ISocialNetworkIntegration {
|
||||||
*
|
*
|
||||||
* Try to logoff from this social network.
|
* Try to logoff from this social network.
|
||||||
*/
|
*/
|
||||||
void requestLogoff() = 0;
|
virtual void requestLogoff() = 0;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @name uploadCurrentDive
|
* @name uploadCurrentDive
|
||||||
|
@ -61,7 +63,9 @@ class ISocialNetworkIntegration {
|
||||||
* to update to the social network. All widget stuff related to sendint
|
* to update to the social network. All widget stuff related to sendint
|
||||||
* dive information should be executed inside this function.
|
* dive information should be executed inside this function.
|
||||||
*/
|
*/
|
||||||
void uploadCurrentDive() = 0;
|
virtual void uploadCurrentDive() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_INTERFACE(ISocialNetworkIntegration, "org.subsurface.ISocialNetworkIntegration.v1")
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Add table
Reference in a new issue