Example #1
0
void TapeManager::removeTape( Tape* tape )
{
    emit sigTapeRemoved( tape );

    // Remove the index file.
    QString filename = locateLocal( "appdata", tape->getID() );
    
    unlink( QFile::encodeName(filename) );

    _tapeIDs.remove( tape->getID() );
    _tapes.remove( tape->getID() );
}
Example #2
0
void TapeManager::removeTape( Tape* tape )
{
    emit sigTapeRemoved( tape );

    // Remove the index file.
    QString fn = getenv( "HOME" );
    fn += "/.kdat/";
    fn += tape->getID();
    unlink( fn.data() );

    _tapeIDs.remove( tape->getID() );
    _tapes.remove( tape->getID() );
}