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

#include "dolphin_searchsettings.h"

#include <kglobal.h>
#include <QtCore/QFile>

class SearchSettingsHelper
{
  public:
    SearchSettingsHelper() : q(0) {}
    ~SearchSettingsHelper() { delete q; }
    SearchSettings *q;
};
K_GLOBAL_STATIC(SearchSettingsHelper, s_globalSearchSettings)
SearchSettings *SearchSettings::self()
{
  if (!s_globalSearchSettings->q) {
    new SearchSettings;
    s_globalSearchSettings->q->readConfig();
  }

  return s_globalSearchSettings->q;
}

SearchSettings::SearchSettings(  )
  : KConfigSkeleton( QLatin1String( "dolphinrc" ) )
{
  Q_ASSERT(!s_globalSearchSettings->q);
  s_globalSearchSettings->q = this;
  setCurrentGroup( QLatin1String( "Search" ) );

  KConfigSkeleton::ItemString  *itemLocation;
  itemLocation = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Location" ), mLocation, QLatin1String( "FromHere" ) );
  addItem( itemLocation, QLatin1String( "Location" ) );
  KConfigSkeleton::ItemString  *itemWhat;
  itemWhat = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "What" ), mWhat, QLatin1String( "FileName" ) );
  addItem( itemWhat, QLatin1String( "What" ) );
  KConfigSkeleton::ItemBool  *itemShowFacetsWidget;
  itemShowFacetsWidget = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowFacetsWidget" ), mShowFacetsWidget, false );
  addItem( itemShowFacetsWidget, QLatin1String( "ShowFacetsWidget" ) );
}

SearchSettings::~SearchSettings()
{
  if (!s_globalSearchSettings.isDestroyed()) {
    s_globalSearchSettings->q = 0;
  }
}

