1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-21 01:46:11 +01:00

Add an isResolving() function to Pipeline

This commit is contained in:
Leo Franchi 2012-09-21 15:29:26 -04:00
parent 1719a17325
commit 759ad2cfa4
2 changed files with 11 additions and 2 deletions

View File

@ -240,6 +240,13 @@ Pipeline::resolve( const QList<query_ptr>& qlist, bool prioritized, bool tempora
}
bool
Pipeline::isResolving( const query_ptr& q ) const
{
return m_qids.contains( q->id() ) && m_qidsState.contains( q->id() );
}
void
Pipeline::resolve( const query_ptr& q, bool prioritized, bool temporaryQuery )
{

View File

@ -77,6 +77,8 @@ public:
return m_rids.value( rid );
}
bool isResolving( const query_ptr& q ) const;
public slots:
void resolve( const query_ptr& q, bool prioritized = true, bool temporaryQuery = false );
void resolve( const QList<query_ptr>& qlist, bool prioritized = true, bool temporaryQuery = false );