mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 19:14:06 +02:00
Emit signal when indexing starts.
This commit is contained in:
@@ -119,6 +119,7 @@ Database::Database( const QString& dbname, QObject* parent )
|
||||
tDebug() << Q_FUNC_INFO << "Using" << m_maxConcurrentThreads << "database worker threads";
|
||||
|
||||
connect( m_impl, SIGNAL( indexReady() ), SLOT( markAsReady() ) );
|
||||
connect( m_impl, SIGNAL( indexStarted() ), SIGNAL( indexStarted() ) );
|
||||
connect( m_impl, SIGNAL( indexReady() ), SIGNAL( indexReady() ) );
|
||||
|
||||
Q_ASSERT( m_workerRW );
|
||||
|
@@ -101,7 +101,8 @@ public:
|
||||
}
|
||||
|
||||
signals:
|
||||
void indexReady(); // search index
|
||||
void indexStarted();
|
||||
void indexReady();
|
||||
void ready();
|
||||
|
||||
void newJobRO( Tomahawk::dbcmd_ptr );
|
||||
|
@@ -199,6 +199,7 @@ Tomahawk::DatabaseImpl::dumpDatabase()
|
||||
void
|
||||
Tomahawk::DatabaseImpl::loadIndex()
|
||||
{
|
||||
connect( m_fuzzyIndex, SIGNAL( indexStarted() ), SIGNAL( indexStarted() ) );
|
||||
connect( m_fuzzyIndex, SIGNAL( indexReady() ), SIGNAL( indexReady() ) );
|
||||
m_fuzzyIndex->loadLuceneIndex();
|
||||
}
|
||||
|
@@ -86,7 +86,9 @@ public:
|
||||
void loadIndex();
|
||||
|
||||
signals:
|
||||
void indexStarted();
|
||||
void indexReady();
|
||||
|
||||
void schemaUpdateStarted();
|
||||
void schemaUpdateStatus( const QString& message );
|
||||
void schemaUpdateDone();
|
||||
|
@@ -94,6 +94,7 @@ FuzzyIndex::updateIndexSlot()
|
||||
void
|
||||
FuzzyIndex::beginIndexing()
|
||||
{
|
||||
emit indexStarted();
|
||||
m_mutex.lock();
|
||||
|
||||
try
|
||||
|
@@ -52,6 +52,7 @@ public:
|
||||
virtual void updateIndex();
|
||||
|
||||
signals:
|
||||
void indexStarted();
|
||||
void indexReady();
|
||||
|
||||
public slots:
|
||||
|
Reference in New Issue
Block a user