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

#include "kollisionconfig.h"

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

class KollisionConfigHelper
{
  public:
    KollisionConfigHelper() : q(0) {}
    ~KollisionConfigHelper() { delete q; }
    KollisionConfig *q;
};
Q_GLOBAL_STATIC(KollisionConfigHelper, s_globalKollisionConfig)
KollisionConfig *KollisionConfig::self()
{
  if (!s_globalKollisionConfig()->q) {
    new KollisionConfig;
    s_globalKollisionConfig()->q->read();
  }

  return s_globalKollisionConfig()->q;
}

KollisionConfig::KollisionConfig(  )
  : KConfigSkeleton( QLatin1String( "kollisionrc" ) )
{
  Q_ASSERT(!s_globalKollisionConfig()->q);
  s_globalKollisionConfig()->q = this;
  setCurrentGroup( QLatin1String( "sounds" ) );

  KConfigSkeleton::ItemBool  *itemEnableSounds;
  itemEnableSounds = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "EnableSounds" ), mEnableSounds, false );
  addItem( itemEnableSounds, QLatin1String( "EnableSounds" ) );
}

KollisionConfig::~KollisionConfig()
{
  s_globalKollisionConfig()->q = 0;
}

