mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
Put canSelfAuthenticate in the right place
This commit is contained in:
@@ -60,7 +60,7 @@ public:
|
|||||||
|
|
||||||
QIcon icon() const { return QIcon( ":/twitter-icon.png" ); }
|
QIcon icon() const { return QIcon( ":/twitter-icon.png" ); }
|
||||||
|
|
||||||
bool canSelfAuthenticate() { return false; }
|
bool canSelfAuthenticate() const { return false; }
|
||||||
bool authenticate() { return false; }
|
bool authenticate() { return false; }
|
||||||
bool isAuthenticated() const { return m_isAuthenticated; }
|
bool isAuthenticated() const { return m_isAuthenticated; }
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ public:
|
|||||||
|
|
||||||
QIcon icon() const { return QIcon( ":/xmpp-icon.png" ); }
|
QIcon icon() const { return QIcon( ":/xmpp-icon.png" ); }
|
||||||
|
|
||||||
bool canSelfAuthenticate() { return false; }
|
bool canSelfAuthenticate() const { return false; }
|
||||||
bool authenticate() { return false; }
|
bool authenticate() { return false; }
|
||||||
bool isAuthenticated() const { return m_isAuthenticated; }
|
bool isAuthenticated() const { return m_isAuthenticated; }
|
||||||
|
|
||||||
|
@@ -45,6 +45,13 @@ Account::icon() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
Account::canSelfAuthenticate() const
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Account::authenticate()
|
Account::authenticate()
|
||||||
{
|
{
|
||||||
|
@@ -79,6 +79,7 @@ public:
|
|||||||
|
|
||||||
virtual QIcon icon() const = 0;
|
virtual QIcon icon() const = 0;
|
||||||
|
|
||||||
|
virtual bool canSelfAuthenticate() const = 0;
|
||||||
virtual bool authenticate() = 0; //if none needed, just return true
|
virtual bool authenticate() = 0; //if none needed, just return true
|
||||||
virtual bool isAuthenticated() const = 0;
|
virtual bool isAuthenticated() const = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user