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

#include "dashboardconfig.h"

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

using namespace KWin;

namespace KWin {

class DashboardConfigHelper
{
  public:
    DashboardConfigHelper() : q(0) {}
    ~DashboardConfigHelper() { delete q; }
    DashboardConfig *q;
};
}

Q_GLOBAL_STATIC(DashboardConfigHelper, s_globalDashboardConfig)
DashboardConfig *DashboardConfig::self()
{
  if (!s_globalDashboardConfig()->q) {
    new DashboardConfig;
    s_globalDashboardConfig()->q->read();
  }

  return s_globalDashboardConfig()->q;
}

DashboardConfig::DashboardConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalDashboardConfig()->q);
  s_globalDashboardConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-Dashboard" ) );

  KConfigSkeleton::ItemInt  *itemBrightness;
  itemBrightness = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Brightness" ), mBrightness, 50 );
  addItem( itemBrightness, QStringLiteral( "Brightness" ) );
  KConfigSkeleton::ItemInt  *itemSaturation;
  itemSaturation = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Saturation" ), mSaturation, 50 );
  addItem( itemSaturation, QStringLiteral( "Saturation" ) );
  KConfigSkeleton::ItemInt  *itemDuration;
  itemDuration = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Duration" ), mDuration, 0 );
  addItem( itemDuration, QStringLiteral( "Duration" ) );
  KConfigSkeleton::ItemBool  *itemBlur;
  itemBlur = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Blur" ), mBlur, false );
  addItem( itemBlur, QStringLiteral( "Blur" ) );
}

DashboardConfig::~DashboardConfig()
{
  s_globalDashboardConfig()->q = 0;
}

