Logo Search packages:      
Sourcecode: kdar version File versions  Download package

void KDarConfig::slotArchiveStorageDirectory ( const QString &  archiveStorageDirectory  )  [virtual, slot]

Slot for setting the default archive storage directory.

Definition at line 1347 of file kdarConfig.cpp.

References directoryMaskList(), directoryMaskTypes(), loadDirectoryFilters(), setArchiveStorageDirectory(), and setDirectoryMaskList().

{
    if ( archiveStorageDirectory.isNull() )
    {
        kdDebug() << "KDarConfig::slotArchiveStorageDirectory(): archiveStorageDirectory is NULL!" << endl;
        return;
    }
    setArchiveStorageDirectory( archiveStorageDirectory );
    //update the auto directory filter
    QStringList directoryList = directoryMaskList();
    QStringList maskTypes = directoryMaskTypes();
    QStringList::Iterator directoryIterator = directoryList.begin();
    for ( QStringList::Iterator typeIterator = maskTypes.begin(); typeIterator != maskTypes.end(); ++typeIterator )
    {
        //Assumes we can only have 1 auto directory filter
        if ( *typeIterator == i18n( "automatic filter type", "Auto" ) )
        {
            *directoryIterator = archiveStorageDirectory;
        }
        ++directoryIterator;
    }
    setDirectoryMaskList( directoryList );
    loadDirectoryFilters();

    kdDebug() << "KDarConfig::slotArchiveStorageDirectory(): archiveStorageDirectory() is " << archiveStorageDirectory << endl;
    emit configChanged();
}


Generated by  Doxygen 1.6.0   Back to index