mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 11:51:44 +02:00
Replace virtuals with respective overrides
This commit is contained in:
@@ -40,17 +40,17 @@ public:
|
|||||||
ResolverAccountFactory() {}
|
ResolverAccountFactory() {}
|
||||||
virtual ~ResolverAccountFactory() {}
|
virtual ~ResolverAccountFactory() {}
|
||||||
|
|
||||||
virtual Account* createAccount( const QString& accountId = QString() );
|
Account* createAccount( const QString& accountId = QString() ) override;
|
||||||
virtual QString factoryId() const { return "resolveraccount"; }
|
QString factoryId() const override { return "resolveraccount"; }
|
||||||
virtual QString description() const { return QString(); }
|
QString description() const override { return QString(); }
|
||||||
virtual QString prettyName() const { return QString(); } // Internal, not displayed
|
QString prettyName() const override { return QString(); } // Internal, not displayed
|
||||||
AccountTypes types() const { return AccountTypes( ResolverType ); }
|
AccountTypes types() const override { return AccountTypes( ResolverType ); }
|
||||||
virtual bool allowUserCreation() const { return false; }
|
bool allowUserCreation() const override { return false; }
|
||||||
|
|
||||||
// Used to create a new resolver from a script on disk, either chosen by
|
// Used to create a new resolver from a script on disk, either chosen by
|
||||||
// the user, or installed from synchrotron
|
// the user, or installed from synchrotron
|
||||||
virtual bool acceptsPath( const QString& ) const { return true; } // This is the catch-all filesystem account
|
bool acceptsPath( const QString& ) const override { return true; } // This is the catch-all filesystem account
|
||||||
virtual Account* createFromPath( const QString& path );
|
Account* createFromPath( const QString& path ) override;
|
||||||
|
|
||||||
// Internal use
|
// Internal use
|
||||||
static Account* createFromPath( const QString& path, const QString& factoryId, bool isAttica );
|
static Account* createFromPath( const QString& path, const QString& factoryId, bool isAttica );
|
||||||
@@ -73,30 +73,30 @@ public:
|
|||||||
explicit ResolverAccount( const QString& accountId );
|
explicit ResolverAccount( const QString& accountId );
|
||||||
virtual ~ResolverAccount();
|
virtual ~ResolverAccount();
|
||||||
|
|
||||||
virtual void authenticate();
|
void authenticate() override;
|
||||||
virtual void deauthenticate();
|
void deauthenticate() override;
|
||||||
virtual bool isAuthenticated() const;
|
bool isAuthenticated() const override;
|
||||||
virtual Tomahawk::Accounts::Account::ConnectionState connectionState() const;
|
Tomahawk::Accounts::Account::ConnectionState connectionState() const override;
|
||||||
|
|
||||||
virtual AccountConfigWidget* configurationWidget();
|
AccountConfigWidget* configurationWidget() override;
|
||||||
virtual QString errorMessage() const;
|
QString errorMessage() const override;
|
||||||
|
|
||||||
virtual void saveConfig();
|
void saveConfig() override;
|
||||||
virtual void removeFromConfig();
|
void removeFromConfig() override;
|
||||||
|
|
||||||
QString path() const;
|
QString path() const;
|
||||||
|
|
||||||
virtual QPixmap icon() const;
|
QPixmap icon() const override;
|
||||||
virtual QString description() const;
|
QString description() const override;
|
||||||
virtual QString author() const;
|
QString author() const override;
|
||||||
virtual QString version() const;
|
QString version() const override;
|
||||||
|
|
||||||
// Not relevant
|
// Not relevant
|
||||||
virtual SipPlugin* sipPlugin( bool ) { return 0; }
|
SipPlugin* sipPlugin( bool ) override { return nullptr; }
|
||||||
virtual Tomahawk::InfoSystem::InfoPluginPtr infoPlugin() { return Tomahawk::InfoSystem::InfoPluginPtr(); }
|
Tomahawk::InfoSystem::InfoPluginPtr infoPlugin() override { return Tomahawk::InfoSystem::InfoPluginPtr(); }
|
||||||
virtual QWidget* aclWidget() { return 0; }
|
QWidget* aclWidget() override { return nullptr; }
|
||||||
|
|
||||||
virtual void removeBundle();
|
void removeBundle();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void resolverChanged();
|
void resolverChanged();
|
||||||
@@ -127,7 +127,7 @@ public:
|
|||||||
explicit AtticaResolverAccount( const QString& accountId );
|
explicit AtticaResolverAccount( const QString& accountId );
|
||||||
virtual ~AtticaResolverAccount();
|
virtual ~AtticaResolverAccount();
|
||||||
|
|
||||||
virtual QPixmap icon() const;
|
QPixmap icon() const override;
|
||||||
|
|
||||||
QString atticaId() const { return m_atticaId; }
|
QString atticaId() const { return m_atticaId; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user