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

bool KDarConfig::writeGlobalSettings (  ) 

Call this method before this class is deleted if you want the settings you have (or the user has) chosen to become the global, default settings.

Definition at line 349 of file kdarConfig.cpp.

References allowOverwrite(), archiveName(), archiveStorageDirectory(), compressionAlgorithm(), compressionLevel(), compressionMaskList(), compressionMaskType(), cryptoAlgorithm(), cryptoBlockSize(), differentialBackup(), differentialBackupArchiveName(), directoryMaskList(), directoryMaskTypes(), directoryToBackup(), dryRun(), executeCommand(), executeRef(), extractArchiveDirectory(), fileBrowserFont(), fileMaskList(), fileMaskType(), firstSliceSizeStrings(), firstSliceSizeSuffices(), flatRestore(), generalFont(), hourShiftInt(), ignoreDump(), ignoreID(), inputPipe(), keepPruned(), logFile(), logLevel(), media(), messageWindowFont(), minimumCompressionSizeInt(), newArchiveName(), noDelete(), outputPipe(), passRef(), pauseBetweenSlices(), restoreRecent(), showKDarSplashScreen(), sliceSizeString(), sliceSizeSuffix(), splitArchive(), statusBarFont(), storePassword(), systemEA(), useCreateArchiveWizard(), userEA(), verbose(), and warnOnOverwrite().

Referenced by kdarView::optionsPreferences(), kdarView::saveProperties(), kdarView::slotSaveCreationProfile(), and kdarView::slotSaveRestoreProfile().

{

    m_kc->setGroup("General");
        m_kc->writeEntry( "useCreateArchiveWizard", useCreateArchiveWizard()  );
        m_kc->writeEntry( "verbose", verbose() );
        m_kc->writeEntry( "logFile", logFile() );
        m_kc->writeEntry( "logLevel", logLevel() );
        m_kc->writeEntry( "dryRun", dryRun() );
        m_kc->writeEntry( "showKDarSplashScreen", showKDarSplashScreen() );
        QString lastArchive( archiveName() );
        if (lastArchive[0] != '/' )
        {
            lastArchive = "select archive";
        }
        m_kc->writeEntry( "lastArchive", lastArchive );
        m_kc->writeEntry( "archiveStorageDir", archiveStorageDirectory() );
        m_kc->writeEntry( "newArchiveName", newArchiveName() );
        m_kc->writeEntry( "directoryToBackup", directoryToBackup() );
        m_kc->writeEntry( "differentialBackup", differentialBackup() );
        m_kc->writeEntry( "differentialBackupArchiveName", differentialBackupArchiveName() );
    m_kc->setGroup("Filesystem");
        m_kc->writeEntry( "userEA", userEA() );
        m_kc->writeEntry( "systemEA", systemEA() );
        m_kc->writeEntry( "ignoreID", ignoreID() );
    m_kc->setGroup("Create / Isolate");
        m_kc->writeEntry( "inputPipe", inputPipe() );
        m_kc->writeEntry( "outputPipe", outputPipe() );
        m_kc->writeEntry( "executeCommand", executeCommand() );
        m_kc->writeEntry( "executeRef", executeRef() );
        m_kc->writeEntry( "passRef", passRef() );
        m_kc->writeEntry( "splitArchive", splitArchive() );
        m_kc->writeEntry( "pauseBetweenSlices", pauseBetweenSlices() );
        m_kc->writeEntry( "keepPruned", keepPruned() );
        m_kc->writeEntry( "ignoreDump", ignoreDump() );
        m_kc->writeEntry( "media", media() );
        m_kc->writeEntry( "sliceSizeString", sliceSizeString() );
        m_kc->writeEntry( "sliceSizeSuffix", sliceSizeSuffix() );
        m_kc->writeEntry( "firstSliceSizeStrings", firstSliceSizeStrings() );
        m_kc->writeEntry( "firstSliceSizeSuffices", firstSliceSizeSuffices() );
        m_kc->writeEntry( "compressionAlgorithm", compressionAlgorithm() );
        m_kc->writeEntry( "compressionLevel", compressionLevel() );
        m_kc->writeEntry( "minimumCompressionSizeInt", minimumCompressionSizeInt() );
        m_kc->writeEntry( "compressionMaskList", compressionMaskList() );
        m_kc->writeEntry( "directoryMaskList", directoryMaskList() );
        m_kc->writeEntry( "fileMaskList", fileMaskList() );
        m_kc->writeEntry( "compressionMaskType", compressionMaskType() );
        m_kc->writeEntry( "directoryMaskTypes", directoryMaskTypes() );
        m_kc->writeEntry( "fileMaskType", fileMaskType() );
    m_kc->setGroup("Extract");
        m_kc->writeEntry( "extractArchiveDirectory", extractArchiveDirectory() );
        m_kc->writeEntry( "noDelete", noDelete() );
        m_kc->writeEntry( "restoreRecent", restoreRecent() );
        m_kc->writeEntry( "flatRestore", flatRestore() );
        m_kc->writeEntry( "allowOverwrite", allowOverwrite() );
        m_kc->writeEntry( "warnOnOverwrite", warnOnOverwrite() );
    m_kc->setGroup( "Cryptography" );
        m_kc->writeEntry( "cryptoAlgorithm", cryptoAlgorithm() );
        m_kc->writeEntry( "cryptoBlockSize", cryptoBlockSize() );
        m_kc->writeEntry( "storePassword", storePassword() );
        kdDebug() << "KDarConfig::writeGlobalSettings(): storePassword() is " << storePassword() << endl;

    m_kc->setGroup("Diff");
        m_kc->writeEntry( "hourShiftInt", hourShiftInt() );
    m_kc->setGroup("Fonts");
        m_kc->writeEntry( "generalFont", generalFont() );
        m_kc->writeEntry( "fileBrowserFont", fileBrowserFont() );
        m_kc->writeEntry( "messageWindowFont", messageWindowFont() );
        m_kc->writeEntry( "statusBarFont", statusBarFont() );

    m_kc->sync();
    return true;
}


Generated by  Doxygen 1.6.0   Back to index