mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
Add an isResolving() function to Pipeline
This commit is contained in:
@@ -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
|
void
|
||||||
Pipeline::resolve( const query_ptr& q, bool prioritized, bool temporaryQuery )
|
Pipeline::resolve( const query_ptr& q, bool prioritized, bool temporaryQuery )
|
||||||
{
|
{
|
||||||
|
@@ -77,6 +77,8 @@ public:
|
|||||||
return m_rids.value( rid );
|
return m_rids.value( rid );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isResolving( const query_ptr& q ) const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void resolve( const query_ptr& q, bool prioritized = true, bool temporaryQuery = false );
|
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 );
|
void resolve( const QList<query_ptr>& qlist, bool prioritized = true, bool temporaryQuery = false );
|
||||||
|
Reference in New Issue
Block a user