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

#include "skgsearch_settings.h"

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

class skgsearch_settingsHelper
{
  public:
    skgsearch_settingsHelper() : q(0) {}
    ~skgsearch_settingsHelper() { delete q; }
    skgsearch_settings *q;
};
K_GLOBAL_STATIC(skgsearch_settingsHelper, s_globalskgsearch_settings)
skgsearch_settings *skgsearch_settings::self()
{
  if (!s_globalskgsearch_settings->q) {
    new skgsearch_settings;
    s_globalskgsearch_settings->q->readConfig();
  }

  return s_globalskgsearch_settings->q;
}

skgsearch_settings::skgsearch_settings(  )
  : KConfigSkeleton()
{
  Q_ASSERT(!s_globalskgsearch_settings->q);
  s_globalskgsearch_settings->q = this;
  setCurrentGroup( QLatin1String( "skrooge_search" ) );

  KConfigSkeleton::ItemInt  *itemAlarm_frequency;
  itemAlarm_frequency = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "alarm_frequency" ), mAlarm_frequency, 10 );
  addItem( itemAlarm_frequency, QLatin1String( "alarm_frequency" ) );
}

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

