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

#include "klocateconfig.h"

#include <kstaticdeleter.h>

KLocateConfig *KLocateConfig::mSelf = 0;
static KStaticDeleter<KLocateConfig> staticKLocateConfigDeleter;

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

  return mSelf;
}

KLocateConfig::KLocateConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "tdeio_locaterc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "General" ) );

  TDEConfigSkeleton::ItemInt  *itemCaseSensitivity;
  itemCaseSensitivity = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "caseSensitivity" ), mCaseSensitivity, 0 );
  addItem( itemCaseSensitivity, TQString::fromLatin1( "caseSensitivity" ) );
  TDEConfigSkeleton::ItemInt  *itemCollapseDirectoryThreshold;
  itemCollapseDirectoryThreshold = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "collapseDirectoryThreshold" ), mCollapseDirectoryThreshold, 5 );
  addItem( itemCollapseDirectoryThreshold, TQString::fromLatin1( "collapseDirectoryThreshold" ) );
  TDEConfigSkeleton::ItemString  *itemCollapsedDisplay;
  itemCollapsedDisplay = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "collapsedDisplay" ), mCollapsedDisplay, i18n("(%1 Hits) %2") );
  addItem( itemCollapsedDisplay, TQString::fromLatin1( "collapsedDisplay" ) );
  TDEConfigSkeleton::ItemInt  *itemCollapsedIcon;
  itemCollapsedIcon = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "collapsedIcon" ), mCollapsedIcon, 1 );
  addItem( itemCollapsedIcon, TQString::fromLatin1( "collapsedIcon" ) );

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

  TQStringList defaultwhiteList;
  defaultwhiteList.append( TQString::fromUtf8( "." ) );

  TDEConfigSkeleton::ItemStringList  *itemWhiteList;
  itemWhiteList = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "whiteList" ), mWhiteList, defaultwhiteList );
  addItem( itemWhiteList, TQString::fromLatin1( "whiteList" ) );
  TDEConfigSkeleton::ItemStringList  *itemBlackList;
  itemBlackList = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "blackList" ), mBlackList );
  addItem( itemBlackList, TQString::fromLatin1( "blackList" ) );

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

  TDEConfigSkeleton::ItemString  *itemLocateBinary;
  itemLocateBinary = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "locateBinary" ), mLocateBinary );
  addItem( itemLocateBinary, TQString::fromLatin1( "locateBinary" ) );
  TDEConfigSkeleton::ItemString  *itemLocateAdditionalArguments;
  itemLocateAdditionalArguments = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "locateAdditionalArguments" ), mLocateAdditionalArguments );
  addItem( itemLocateAdditionalArguments, TQString::fromLatin1( "locateAdditionalArguments" ) );
}

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

