// This file is generated by tdeconfig_compiler from ark.kcfg.
// All changes you do to this file will be lost.

#include "settings.h"

#include <tdelocale.h>

#include <kstaticdeleter.h>

ArkSettings *ArkSettings::mSelf = 0;
static KStaticDeleter<ArkSettings> staticArkSettingsDeleter;

ArkSettings *ArkSettings::self()
{
  if ( !mSelf ) {
    staticArkSettingsDeleter.setObject( mSelf, new ArkSettings() );
    mSelf->readConfig();
  }

  return mSelf;
}

ArkSettings::ArkSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "arkrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "generic" ) );

  TDEConfigSkeleton::ItemPathList  *itemExtractionHistory;
  itemExtractionHistory = new TDEConfigSkeleton::ItemPathList( currentGroup(), TQString::fromLatin1( "extractionHistory" ), mExtractionHistory );
  itemExtractionHistory->setLabel( i18n("Last folders used for extraction") );
  addItem( itemExtractionHistory, TQString::fromLatin1( "extractionHistory" ) );
  TDEConfigSkeleton::ItemBool  *itemReplaceOnlyWithNewer;
  itemReplaceOnlyWithNewer = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "replaceOnlyWithNewer" ), mReplaceOnlyWithNewer, false );
  itemReplaceOnlyWithNewer->setLabel( i18n("Replace old files only with newer files") );
  itemReplaceOnlyWithNewer->setWhatsThis( i18n("If this option is enabled and you add filenames that already exist in an archive, only replace the old files if the added files are newer than them") );
  addItem( itemReplaceOnlyWithNewer, TQString::fromLatin1( "replaceOnlyWithNewer" ) );
  TDEConfigSkeleton::ItemBool  *itemExtractOverwrite;
  itemExtractOverwrite = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "extractOverwrite" ), mExtractOverwrite, false );
  itemExtractOverwrite->setLabel( i18n("Overwrite files (Zip, Tar, Zoo, Rar)") );
  itemExtractOverwrite->setWhatsThis( i18n("Overwrite any files that have matching names on disk with the one from the archive") );
  addItem( itemExtractOverwrite, TQString::fromLatin1( "extractOverwrite" ) );
  TDEConfigSkeleton::ItemBool  *itemAskCreatePassword;
  itemAskCreatePassword = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "askCreatePassword" ), mAskCreatePassword, true );
  itemAskCreatePassword->setLabel( i18n("Ask for password when create archive if possible") );
  itemAskCreatePassword->setWhatsThis( i18n("Ask for password when create archive if possible") );
  addItem( itemAskCreatePassword, TQString::fromLatin1( "askCreatePassword" ) );

  setCurrentGroup( TQString::fromLatin1( "Tar" ) );

  TDEConfigSkeleton::ItemBool  *itemPreservePerms;
  itemPreservePerms = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "preservePerms" ), mPreservePerms, false );
  itemPreservePerms->setLabel( i18n("Preserve permissions") );
  itemPreservePerms->setWhatsThis( i18n("Save the user, group, and permission settings on files. Use with care, as this may result in files being extracted that do not belong to any valid user on your computer") );
  addItem( itemPreservePerms, TQString::fromLatin1( "preservePerms" ) );

  setCurrentGroup( TQString::fromLatin1( "Zip" ) );

  TDEConfigSkeleton::ItemBool  *itemForceMSDOS;
  itemForceMSDOS = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "forceMSDOS" ), mForceMSDOS, false );
  itemForceMSDOS->setLabel( i18n("Force MS-DOS short filenames (Zip)") );
  itemForceMSDOS->setWhatsThis( i18n("Force names of files in Zip archives to the DOS 8.3 format") );
  addItem( itemForceMSDOS, TQString::fromLatin1( "forceMSDOS" ) );
  TDEConfigSkeleton::ItemBool  *itemConvertLF2CRLF;
  itemConvertLF2CRLF = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "convertLF2CRLF" ), mConvertLF2CRLF, false );
  itemConvertLF2CRLF->setLabel( i18n("Translate LF to DOS CRLF") );
  addItem( itemConvertLF2CRLF, TQString::fromLatin1( "convertLF2CRLF" ) );
  TDEConfigSkeleton::ItemBool  *itemExtractJunkPaths;
  itemExtractJunkPaths = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "extractJunkPaths" ), mExtractJunkPaths, false );
  itemExtractJunkPaths->setLabel( i18n("Ignore folder names (Zip)") );
  itemExtractJunkPaths->setWhatsThis( i18n("Extract all the files into the extraction folder, ignoring any folder structure in the archive.") );
  addItem( itemExtractJunkPaths, TQString::fromLatin1( "extractJunkPaths" ) );

  setCurrentGroup( TQString::fromLatin1( "Rar" ) );

  TDEConfigSkeleton::ItemBool  *itemRarStoreSymlinks;
  itemRarStoreSymlinks = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "rarStoreSymlinks" ), mRarStoreSymlinks, true );
  itemRarStoreSymlinks->setLabel( i18n("Store symlinks as links (Zip, Rar)") );
  addItem( itemRarStoreSymlinks, TQString::fromLatin1( "rarStoreSymlinks" ) );
  TDEConfigSkeleton::ItemBool  *itemRarRecurseSubdirs;
  itemRarRecurseSubdirs = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "rarRecurseSubdirs" ), mRarRecurseSubdirs, true );
  itemRarRecurseSubdirs->setLabel( i18n("Recursively add subfolders (Zip, Rar)") );
  addItem( itemRarRecurseSubdirs, TQString::fromLatin1( "rarRecurseSubdirs" ) );
  TDEConfigSkeleton::ItemBool  *itemRarToLower;
  itemRarToLower = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "rarToLower" ), mRarToLower, false );
  itemRarToLower->setLabel( i18n("Convert filenames to lowercase (Zip, Rar)") );
  addItem( itemRarToLower, TQString::fromLatin1( "rarToLower" ) );
  TDEConfigSkeleton::ItemBool  *itemRarToUpper;
  itemRarToUpper = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "rarToUpper" ), mRarToUpper, false );
  itemRarToUpper->setLabel( i18n("Convert filenames to uppercase") );
  addItem( itemRarToUpper, TQString::fromLatin1( "rarToUpper" ) );

  setCurrentGroup( TQString::fromLatin1( "ark" ) );

  TDEConfigSkeleton::ItemBool  *itemShowSearchBar;
  itemShowSearchBar = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "showSearchBar" ), mShowSearchBar, true );
  itemShowSearchBar->setLabel( i18n("Show search bar") );
  addItem( itemShowSearchBar, TQString::fromLatin1( "showSearchBar" ) );
  TDEConfigSkeleton::ItemBool  *itemKonquerorIntegration;
  itemKonquerorIntegration = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "KonquerorIntegration" ), mKonquerorIntegration, true );
  itemKonquerorIntegration->setLabel( i18n("Enable Konqueror integration") );
  itemKonquerorIntegration->setWhatsThis( i18n("Enables integration with Konqueror's context menus, letting you easily archive or unarchive files. This option will only work if you have the tdeaddons package installed.") );
  addItem( itemKonquerorIntegration, TQString::fromLatin1( "KonquerorIntegration" ) );
  TDEConfigSkeleton::ItemBool  *itemUseIntegratedViewer;
  itemUseIntegratedViewer = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseIntegratedViewer" ), mUseIntegratedViewer, true );
  itemUseIntegratedViewer->setLabel( i18n("Use integrated viewer") );
  addItem( itemUseIntegratedViewer, TQString::fromLatin1( "UseIntegratedViewer" ) );
  TDEConfigSkeleton::ItemString  *itemTarExe;
  itemTarExe = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "TarExe" ), mTarExe, TQString::fromLatin1( "tar" ) );
  itemTarExe->setLabel( i18n("Tar Command") );
  addItem( itemTarExe, TQString::fromLatin1( "TarExe" ) );
  TDEConfigSkeleton::ItemBool  *itemOpenDestinationFolder;
  itemOpenDestinationFolder = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "OpenDestinationFolder" ), mOpenDestinationFolder, false );
  itemOpenDestinationFolder->setLabel( i18n("Open destination folder after extraction") );
  addItem( itemOpenDestinationFolder, TQString::fromLatin1( "OpenDestinationFolder" ) );
  TDEConfigSkeleton::ItemBool  *itemAceSupport;
  itemAceSupport = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "aceSupport" ), mAceSupport, false );
  itemAceSupport->setLabel( i18n("Enable experimental support for loading ACE files") );
  addItem( itemAceSupport, TQString::fromLatin1( "aceSupport" ) );
}

ArkSettings::~ArkSettings()
{
  if ( mSelf == this )
    staticArkSettingsDeleter.setObject( mSelf, 0, false );
}

