Example #1
0
void
ScanManager::filesDeleted()
{
    if ( !TomahawkSettings::instance()->scannerPaths().isEmpty() )
        runDirScan();
    else
        scannerFinished();
}
Example #2
0
void
ScanManager::filesDeleted( const QStringList& files, const Tomahawk::collection_ptr& collection )
{
    Q_UNUSED( files );
    Q_UNUSED( collection );
    if ( !TomahawkSettings::instance()->scannerPaths().isEmpty() )
        runDirScan();
}
Example #3
0
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();
}