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

void Kcpreferences::configWrite (  ) 

Write the settings to our configuration file

Read the settings

Definition at line 303 of file kcpreferences.cpp.

References Fonts_Default, Is_Checkinstall, Is_Decompress, Is_Logged, and useInstall.

Referenced by slotOk().

{
      KConfig *config = KGlobal::config();

      config->setGroup("General");
      config->writeEntry( "Font log", Fonts_Default );
      config->writeEntry( "Font error", Fonts_Error );

      config->setGroup("Compress"); 
      config->writeEntry( "Compress in dir", Is_Decompress );
      config->writeEntry( "Directory", Decompress_Dir );

      config->setGroup("Log");      
      config->writeEntry( "Log start", Is_Logged );
      config->writeEntry( "Log in sources", Is_LogInSources );
      config->writeEntry( "Log in dir", Is_LogInHome );
      config->writeEntry( "Directory", Log_Dir );
      config->writeEntry( "Log in html", Is_LogHTML );
      
      config->setGroup("Checkinstall");
      config->writeEntry( "Enable Checkinstall", Is_Checkinstall );
      config->writeEntry( "Checkinstall Command", CheckInstall_Command );
      config->writeEntry( "RPM Package", Is_RPM );
      config->writeEntry( "Debian Package", Is_DKPG );
      config->writeEntry( "Slackware Package", Is_SLK );
      config->writeEntry( "Backup Overwrite Files", Is_BackFiles );
      config->writeEntry( "Strip Elf Binaries", Is_ElfStrip );
      config->writeEntry( "Custom Options", Comstom_Command );
      
      config->setGroup("InstallOptions");
      config->writeEntry( "Use Install", useInstall );

      config->sync();
}


Generated by  Doxygen 1.6.0   Back to index