void ScanManager::filesDeleted() { if ( !TomahawkSettings::instance()->scannerPaths().isEmpty() ) runDirScan(); else scannerFinished(); }
void ScanManager::filesDeleted( const QStringList& files, const Tomahawk::collection_ptr& collection ) { Q_UNUSED( files ); Q_UNUSED( collection ); if ( !TomahawkSettings::instance()->scannerPaths().isEmpty() ) runDirScan(); }
void ScanManager::fileMtimesCheck( const QMap< QString, QMap< unsigned int, unsigned int > >& mtimes ) { if ( !mtimes.isEmpty() && TomahawkSettings::instance()->scannerPaths().isEmpty() ) { DatabaseCommand_DeleteFiles *cmd = new DatabaseCommand_DeleteFiles( SourceList::instance()->getLocal() ); connect( cmd, SIGNAL( finished() ), SLOT( filesDeleted() ) ); Database::instance()->enqueue( QSharedPointer< DatabaseCommand >( cmd ) ); return; } runDirScan(); }