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

#include "kbankingsettings.h"

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

class KBankingSettingsHelper
{
  public:
    KBankingSettingsHelper() : q(0) {}
    ~KBankingSettingsHelper() { delete q; }
    KBankingSettings *q;
};
K_GLOBAL_STATIC(KBankingSettingsHelper, s_globalKBankingSettings)
KBankingSettings *KBankingSettings::self()
{
  if (!s_globalKBankingSettings->q) {
    new KBankingSettings;
    s_globalKBankingSettings->q->readConfig();
  }

  return s_globalKBankingSettings->q;
}

KBankingSettings::KBankingSettings(  )
  : KConfigSkeleton( QLatin1String( "kbankingrc" ) )
{
  Q_ASSERT(!s_globalKBankingSettings->q);
  s_globalKBankingSettings->q = this;
  setCurrentGroup( QLatin1String( "opticalTan" ) );

  KConfigSkeleton::ItemInt  *itemWidth;
  itemWidth = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "width" ), mWidth, 260 );
  addItem( itemWidth, QLatin1String( "width" ) );
  KConfigSkeleton::ItemInt  *itemClocksetting;
  itemClocksetting = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "clock setting" ), mClocksetting, 50 );
  addItem( itemClocksetting, QLatin1String( "clocksetting" ) );
}

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

