1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 06:36:55 +02:00

Put canSelfAuthenticate in the right place

This commit is contained in:
Jeff Mitchell
2011-11-05 20:17:18 -04:00
parent 8b862774c9
commit ccde46447e
4 changed files with 10 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ public:
QIcon icon() const { return QIcon( ":/twitter-icon.png" ); }
bool canSelfAuthenticate() { return false; }
bool canSelfAuthenticate() const { return false; }
bool authenticate() { return false; }
bool isAuthenticated() const { return m_isAuthenticated; }

View File

@@ -60,7 +60,7 @@ public:
QIcon icon() const { return QIcon( ":/xmpp-icon.png" ); }
bool canSelfAuthenticate() { return false; }
bool canSelfAuthenticate() const { return false; }
bool authenticate() { return false; }
bool isAuthenticated() const { return m_isAuthenticated; }

View File

@@ -45,6 +45,13 @@ Account::icon() const
}
bool
Account::canSelfAuthenticate() const
{
return false;
}
bool
Account::authenticate()
{

View File

@@ -79,6 +79,7 @@ public:
virtual QIcon icon() const = 0;
virtual bool canSelfAuthenticate() const = 0;
virtual bool authenticate() = 0; //if none needed, just return true
virtual bool isAuthenticated() const = 0;