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

#include "searchpluginsettings.h"

#include <kstaticdeleter.h>

SearchPluginSettings *SearchPluginSettings::mSelf = 0;
static KStaticDeleter<SearchPluginSettings> staticSearchPluginSettingsDeleter;

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

  return mSelf;
}

SearchPluginSettings::SearchPluginSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "ktsearchpluginrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "general" ) );

  TDEConfigSkeleton::ItemInt  *itemSearchEngine;
  itemSearchEngine = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "searchEngine" ), mSearchEngine, 0 );
  addItem( itemSearchEngine, TQString::fromLatin1( "searchEngine" ) );
  TDEConfigSkeleton::ItemBool  *itemUseDefaultBrowser;
  itemUseDefaultBrowser = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useDefaultBrowser" ), mUseDefaultBrowser, true );
  addItem( itemUseDefaultBrowser, TQString::fromLatin1( "useDefaultBrowser" ) );
  TDEConfigSkeleton::ItemBool  *itemUseCustomBrowser;
  itemUseCustomBrowser = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useCustomBrowser" ), mUseCustomBrowser, false );
  addItem( itemUseCustomBrowser, TQString::fromLatin1( "useCustomBrowser" ) );
  TDEConfigSkeleton::ItemString  *itemCustomBrowser;
  itemCustomBrowser = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "customBrowser" ), mCustomBrowser, TQString::fromLatin1( "/usr/bin/firefox" ) );
  addItem( itemCustomBrowser, TQString::fromLatin1( "customBrowser" ) );
  TDEConfigSkeleton::ItemBool  *itemOpenInExternal;
  itemOpenInExternal = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "openInExternal" ), mOpenInExternal, false );
  addItem( itemOpenInExternal, TQString::fromLatin1( "openInExternal" ) );
}

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

