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

#include "multisegkiosettings.h"

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

class MultiSegKioSettingsHelper
{
  public:
    MultiSegKioSettingsHelper() : q(0) {}
    ~MultiSegKioSettingsHelper() { delete q; }
    MultiSegKioSettings *q;
};
K_GLOBAL_STATIC(MultiSegKioSettingsHelper, s_globalMultiSegKioSettings)
MultiSegKioSettings *MultiSegKioSettings::self()
{
  if (!s_globalMultiSegKioSettings->q) {
    new MultiSegKioSettings;
    s_globalMultiSegKioSettings->q->readConfig();
  }

  return s_globalMultiSegKioSettings->q;
}

MultiSegKioSettings::MultiSegKioSettings(  )
  : KConfigSkeleton( QLatin1String( "kget_multisegkiofactory.rc" ) )
{
  Q_ASSERT(!s_globalMultiSegKioSettings->q);
  s_globalMultiSegKioSettings->q = this;
  setCurrentGroup( QLatin1String( "Segments" ) );

  KConfigSkeleton::ItemInt  *itemSegments;
  itemSegments = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Segments" ), mSegments, 5 );
  addItem( itemSegments, QLatin1String( "Segments" ) );
  KConfigSkeleton::ItemInt  *itemSaveSegSize;
  itemSaveSegSize = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "SaveSegSize" ), mSaveSegSize, 100 );
  addItem( itemSaveSegSize, QLatin1String( "SaveSegSize" ) );

  setCurrentGroup( QLatin1String( "SearchEngines" ) );

  KConfigSkeleton::ItemBool  *itemUseSearchEngines;
  itemUseSearchEngines = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseSearchEngines" ), mUseSearchEngines, false );
  addItem( itemUseSearchEngines, QLatin1String( "UseSearchEngines" ) );

  setCurrentGroup( QLatin1String( "Verification" ) );

  KConfigSkeleton::ItemBool  *itemUseSearchVerification;
  itemUseSearchVerification = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseSearchVerification" ), mUseSearchVerification, true );
  addItem( itemUseSearchVerification, QLatin1String( "UseSearchVerification" ) );
}

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

