mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
Mark overrides as such
This commit is contained in:
@@ -44,12 +44,12 @@ namespace Tomahawk {
|
|||||||
void publishTune( QUrl url, Tomahawk::InfoSystem::InfoStringHash trackInfo );
|
void publishTune( QUrl url, Tomahawk::InfoSystem::InfoStringHash trackInfo );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void notInCacheSlot( const Tomahawk::InfoSystem::InfoStringHash criteria, Tomahawk::InfoSystem::InfoRequestData requestData );
|
void notInCacheSlot( const Tomahawk::InfoSystem::InfoStringHash criteria, Tomahawk::InfoSystem::InfoRequestData requestData ) override;
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void init();
|
void init() override;
|
||||||
void pushInfo( Tomahawk::InfoSystem::InfoPushData pushData );
|
void pushInfo( Tomahawk::InfoSystem::InfoPushData pushData ) override;
|
||||||
void getInfo( Tomahawk::InfoSystem::InfoRequestData requestData );
|
void getInfo( Tomahawk::InfoSystem::InfoRequestData requestData ) override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void audioStarted( const Tomahawk::InfoSystem::PushInfoPair& pushInfoPair );
|
void audioStarted( const Tomahawk::InfoSystem::PushInfoPair& pushInfoPair );
|
||||||
|
@@ -54,14 +54,14 @@ public:
|
|||||||
Account::ConnectionState connectionState() const;
|
Account::ConnectionState connectionState() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void connectPlugin();
|
void connectPlugin() override;
|
||||||
void disconnectPlugin();
|
void disconnectPlugin() override;
|
||||||
|
|
||||||
void advertise();
|
void advertise();
|
||||||
|
|
||||||
virtual void sendSipInfos( const Tomahawk::peerinfo_ptr& /* receiver */, const QList<SipInfo>& /* info */ ) {}
|
virtual void sendSipInfos( const Tomahawk::peerinfo_ptr& /* receiver */, const QList<SipInfo>& /* info */ ) override {}
|
||||||
void broadcastMsg( const QString& ) {}
|
void broadcastMsg( const QString& ) {}
|
||||||
bool addContact( const QString&, AddContactOptions, const QString& ) { return false; }
|
bool addContact( const QString&, AddContactOptions, const QString& ) override { return false; }
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void lanHostFound( const QString& host, int port, const QString& name, const QString& nodeid );
|
void lanHostFound( const QString& host, int port, const QString& name, const QString& nodeid );
|
||||||
|
@@ -59,10 +59,10 @@ public:
|
|||||||
void setLimit( unsigned int amount ) { m_amount = amount; }
|
void setLimit( unsigned int amount ) { m_amount = amount; }
|
||||||
void setSortOrder( DatabaseCommand_AllArtists::SortOrder order ) { m_sortOrder = order; }
|
void setSortOrder( DatabaseCommand_AllArtists::SortOrder order ) { m_sortOrder = order; }
|
||||||
void setSortDescending( bool descending ) { m_sortDescending = descending; }
|
void setSortDescending( bool descending ) { m_sortDescending = descending; }
|
||||||
void setFilter( const QString& filter ) { m_filter = filter; }
|
void setFilter( const QString& filter ) override { m_filter = filter; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void artists( const QList<Tomahawk::artist_ptr>& );
|
void artists( const QList<Tomahawk::artist_ptr>& ) override;
|
||||||
void done();
|
void done();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -74,7 +74,7 @@ public:
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void tracks( const QList<Tomahawk::query_ptr>&, const QVariant& data );
|
void tracks( const QList<Tomahawk::query_ptr>&, const QVariant& data );
|
||||||
void tracks( const QList<Tomahawk::query_ptr>& );
|
void tracks( const QList<Tomahawk::query_ptr>& ) override;
|
||||||
void done( const Tomahawk::collection_ptr& );
|
void done( const Tomahawk::collection_ptr& );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -34,11 +34,11 @@ public:
|
|||||||
explicit DatabaseResolver( int weight );
|
explicit DatabaseResolver( int weight );
|
||||||
|
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
virtual unsigned int weight() const { return m_weight; }
|
virtual unsigned int weight() const override{ return m_weight; }
|
||||||
virtual unsigned int timeout() const { return 0; }
|
virtual unsigned int timeout() const override{ return 0; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void resolve( const Tomahawk::query_ptr& query );
|
virtual void resolve( const Tomahawk::query_ptr& query ) override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void gotResults( const Tomahawk::QID qid, QList< Tomahawk::result_ptr> results );
|
void gotResults( const Tomahawk::QID qid, QList< Tomahawk::result_ptr> results );
|
||||||
|
@@ -42,8 +42,8 @@ public:
|
|||||||
explicit DBSyncConnection( Servent* s, const Tomahawk::source_ptr& src );
|
explicit DBSyncConnection( Servent* s, const Tomahawk::source_ptr& src );
|
||||||
virtual ~DBSyncConnection();
|
virtual ~DBSyncConnection();
|
||||||
|
|
||||||
void setup();
|
void setup() override;
|
||||||
Connection* clone();
|
Connection* clone() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void stateChanged( Tomahawk::DBSyncConnectionState newstate, Tomahawk::DBSyncConnectionState oldstate, const QString& info );
|
void stateChanged( Tomahawk::DBSyncConnectionState newstate, Tomahawk::DBSyncConnectionState oldstate, const QString& info );
|
||||||
|
@@ -59,7 +59,7 @@ public:
|
|||||||
|
|
||||||
PlayableModel* sourceModel() const { return m_model; }
|
PlayableModel* sourceModel() const { return m_model; }
|
||||||
virtual void setSourcePlayableModel( PlayableModel* sourceModel );
|
virtual void setSourcePlayableModel( PlayableModel* sourceModel );
|
||||||
virtual void setSourceModel( QAbstractItemModel* model );
|
virtual void setSourceModel( QAbstractItemModel* model ) override;
|
||||||
|
|
||||||
virtual bool isLoading() const;
|
virtual bool isLoading() const;
|
||||||
|
|
||||||
@@ -91,9 +91,9 @@ public:
|
|||||||
|
|
||||||
QList< double > columnWeights() const;
|
QList< double > columnWeights() const;
|
||||||
|
|
||||||
virtual int columnCount( const QModelIndex& parent = QModelIndex() ) const;
|
virtual int columnCount( const QModelIndex& parent = QModelIndex() ) const override;
|
||||||
virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const;
|
virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const override;
|
||||||
virtual QVariant headerData( int section, Qt::Orientation orientation, int role ) const;
|
virtual QVariant headerData( int section, Qt::Orientation orientation, int role ) const override;
|
||||||
|
|
||||||
virtual void setFilter( const QString& pattern );
|
virtual void setFilter( const QString& pattern );
|
||||||
virtual void updateDetailedInfo( const QModelIndex& index );
|
virtual void updateDetailedInfo( const QModelIndex& index );
|
||||||
@@ -120,7 +120,7 @@ signals:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent ) const Q_DECL_OVERRIDE;
|
bool filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent ) const Q_DECL_OVERRIDE;
|
||||||
virtual bool lessThan( const QModelIndex& left, const QModelIndex& right ) const;
|
virtual bool lessThan( const QModelIndex& left, const QModelIndex& right ) const override;
|
||||||
|
|
||||||
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
Tomahawk::playlistinterface_ptr m_playlistInterface;
|
||||||
|
|
||||||
|
@@ -41,12 +41,12 @@ public:
|
|||||||
void setFilter( const QString& filter ) override;
|
void setFilter( const QString& filter ) override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void albums( const QList< Tomahawk::album_ptr >& );
|
void albums( const QList< Tomahawk::album_ptr >& ) override;
|
||||||
void done();
|
void done() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void exec();
|
virtual void exec() override;
|
||||||
virtual void reportFailure();
|
virtual void reportFailure() override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onAlbumsJobDone( const QVariantMap& result );
|
void onAlbumsJobDone( const QVariantMap& result );
|
||||||
|
@@ -42,8 +42,8 @@ public:
|
|||||||
void setFilter( const QString& filter ) override;
|
void setFilter( const QString& filter ) override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void artists( const QList< Tomahawk::artist_ptr >& );
|
void artists( const QList< Tomahawk::artist_ptr >& ) override;
|
||||||
void done();
|
void done() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void exec() override;
|
void exec() override;
|
||||||
|
@@ -39,8 +39,8 @@ public:
|
|||||||
void enqueue() override;
|
void enqueue() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void tracks( const QList< Tomahawk::query_ptr >& );
|
void tracks( const QList< Tomahawk::query_ptr >& ) override;
|
||||||
void done();
|
void done() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Q_INVOKABLE void exec() override;
|
Q_INVOKABLE void exec() override;
|
||||||
|
@@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void information( const QString& url, const QSharedPointer<QObject>& variant );
|
void information( const QString& url, const QSharedPointer<QObject>& variant );
|
||||||
void done();
|
void done() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void exec() override;
|
void exec() override;
|
||||||
|
@@ -30,9 +30,9 @@ public:
|
|||||||
explicit CollectionItem( SourcesModel* model, SourceTreeItem* parent, const Tomahawk::collection_ptr& collection );
|
explicit CollectionItem( SourcesModel* model, SourceTreeItem* parent, const Tomahawk::collection_ptr& collection );
|
||||||
virtual ~CollectionItem();
|
virtual ~CollectionItem();
|
||||||
|
|
||||||
virtual QString text() const;
|
virtual QString text() const override;
|
||||||
virtual QIcon icon() const;
|
virtual QIcon icon() const override;
|
||||||
virtual int peerSortValue() const;
|
virtual int peerSortValue() const override;
|
||||||
void setSortValue( int value );
|
void setSortValue( int value );
|
||||||
|
|
||||||
bool isBeingPlayed() const override;
|
bool isBeingPlayed() const override;
|
||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
int trackCount() const;
|
int trackCount() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void activate();
|
virtual void activate() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_sortValue;
|
int m_sortValue;
|
||||||
|
@@ -85,17 +85,17 @@ public:
|
|||||||
WhatsNew_0_8( QWidget* parent = 0 );
|
WhatsNew_0_8( QWidget* parent = 0 );
|
||||||
virtual ~WhatsNew_0_8();
|
virtual ~WhatsNew_0_8();
|
||||||
|
|
||||||
const QString defaultName() { return WHATSNEW_0_8_VIEWPAGE_NAME; }
|
const QString defaultName() override { return WHATSNEW_0_8_VIEWPAGE_NAME; }
|
||||||
QString title() const { return tr( "What's new in 0.8?" ); }
|
QString title() const override { return tr( "What's new in 0.8?" ); }
|
||||||
QString description() const { return tr( "An overview of the changes and additions since 0.7." ); }
|
QString description() const override { return tr( "An overview of the changes and additions since 0.7." ); }
|
||||||
const QString pixmapPath() const { return ( RESPATH "images/whatsnew.svg" ); }
|
const QString pixmapPath() const override { return ( RESPATH "images/whatsnew.svg" ); }
|
||||||
|
|
||||||
bool addPageItem() const;
|
bool addPageItem() const override;
|
||||||
bool isRemovable() const override { return true; }
|
bool isRemovable() const override { return true; }
|
||||||
bool isDeletable() const override { return false; }
|
bool isDeletable() const override { return false; }
|
||||||
void onItemDeleted();
|
void onItemDeleted() override;
|
||||||
|
|
||||||
int sortValue() { return 1; }
|
int sortValue() override { return 1; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user