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

#include "kcmaccessibilitykeyboardfilters.h"

KeyboardFiltersSettings::KeyboardFiltersSettings( QObject *parent )
  : KConfigSkeleton( QStringLiteral( "kaccessrc" ) )
{
  setParent(parent);
  KConfigCompilerSignallingItem::NotifyFunction notifyFunction = static_cast<KConfigCompilerSignallingItem::NotifyFunction>(&KeyboardFiltersSettings::itemChanged);

  setCurrentGroup( QStringLiteral( "Keyboard" ) );

  KConfigCompilerSignallingItem  *itemSlowKeys;
  KConfigSkeleton::ItemBool  *innerItemSlowKeys;
  innerItemSlowKeys = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SlowKeys" ), mSlowKeys, false );
  itemSlowKeys = new KConfigCompilerSignallingItem(innerItemSlowKeys, this, notifyFunction, signalSlowKeysChanged);
  addItem( itemSlowKeys, QStringLiteral( "SlowKeys" ) );
  KConfigCompilerSignallingItem  *itemSlowKeysDelay;
  KConfigSkeleton::ItemInt  *innerItemSlowKeysDelay;
  innerItemSlowKeysDelay = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "SlowKeysDelay" ), mSlowKeysDelay, 500 );
  itemSlowKeysDelay = new KConfigCompilerSignallingItem(innerItemSlowKeysDelay, this, notifyFunction, signalSlowKeysDelayChanged);
  addItem( itemSlowKeysDelay, QStringLiteral( "SlowKeysDelay" ) );
  KConfigCompilerSignallingItem  *itemSlowKeysPressBeep;
  KConfigSkeleton::ItemBool  *innerItemSlowKeysPressBeep;
  innerItemSlowKeysPressBeep = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SlowKeysPressBeep" ), mSlowKeysPressBeep, true );
  itemSlowKeysPressBeep = new KConfigCompilerSignallingItem(innerItemSlowKeysPressBeep, this, notifyFunction, signalSlowKeysPressBeepChanged);
  addItem( itemSlowKeysPressBeep, QStringLiteral( "SlowKeysPressBeep" ) );
  KConfigCompilerSignallingItem  *itemSlowKeysAcceptBeep;
  KConfigSkeleton::ItemBool  *innerItemSlowKeysAcceptBeep;
  innerItemSlowKeysAcceptBeep = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SlowKeysAcceptBeep" ), mSlowKeysAcceptBeep, true );
  itemSlowKeysAcceptBeep = new KConfigCompilerSignallingItem(innerItemSlowKeysAcceptBeep, this, notifyFunction, signalSlowKeysAcceptBeepChanged);
  addItem( itemSlowKeysAcceptBeep, QStringLiteral( "SlowKeysAcceptBeep" ) );
  KConfigCompilerSignallingItem  *itemSlowKeysRejectBeep;
  KConfigSkeleton::ItemBool  *innerItemSlowKeysRejectBeep;
  innerItemSlowKeysRejectBeep = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SlowKeysRejectBeep" ), mSlowKeysRejectBeep, true );
  itemSlowKeysRejectBeep = new KConfigCompilerSignallingItem(innerItemSlowKeysRejectBeep, this, notifyFunction, signalSlowKeysRejectBeepChanged);
  addItem( itemSlowKeysRejectBeep, QStringLiteral( "SlowKeysRejectBeep" ) );
  KConfigCompilerSignallingItem  *itemBounceKeys;
  KConfigSkeleton::ItemBool  *innerItemBounceKeys;
  innerItemBounceKeys = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "BounceKeys" ), mBounceKeys, false );
  itemBounceKeys = new KConfigCompilerSignallingItem(innerItemBounceKeys, this, notifyFunction, signalBounceKeysChanged);
  addItem( itemBounceKeys, QStringLiteral( "BounceKeys" ) );
  KConfigCompilerSignallingItem  *itemBounceKeysDelay;
  KConfigSkeleton::ItemInt  *innerItemBounceKeysDelay;
  innerItemBounceKeysDelay = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "BounceKeysDelay" ), mBounceKeysDelay, 500 );
  itemBounceKeysDelay = new KConfigCompilerSignallingItem(innerItemBounceKeysDelay, this, notifyFunction, signalBounceKeysDelayChanged);
  addItem( itemBounceKeysDelay, QStringLiteral( "BounceKeysDelay" ) );
  KConfigCompilerSignallingItem  *itemBounceKeysRejectBeep;
  KConfigSkeleton::ItemBool  *innerItemBounceKeysRejectBeep;
  innerItemBounceKeysRejectBeep = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "BounceKeysRejectBeep" ), mBounceKeysRejectBeep, false );
  itemBounceKeysRejectBeep = new KConfigCompilerSignallingItem(innerItemBounceKeysRejectBeep, this, notifyFunction, signalBounceKeysRejectBeepChanged);
  addItem( itemBounceKeysRejectBeep, QStringLiteral( "BounceKeysRejectBeep" ) );
}

bool KeyboardFiltersSettings::defaultSlowKeysValue_helper() const
{

  return false;
}

int KeyboardFiltersSettings::defaultSlowKeysDelayValue_helper() const
{

  return 500;
}

bool KeyboardFiltersSettings::defaultSlowKeysPressBeepValue_helper() const
{

  return true;
}

bool KeyboardFiltersSettings::defaultSlowKeysAcceptBeepValue_helper() const
{

  return true;
}

bool KeyboardFiltersSettings::defaultSlowKeysRejectBeepValue_helper() const
{

  return true;
}

bool KeyboardFiltersSettings::defaultBounceKeysValue_helper() const
{

  return false;
}

int KeyboardFiltersSettings::defaultBounceKeysDelayValue_helper() const
{

  return 500;
}

bool KeyboardFiltersSettings::defaultBounceKeysRejectBeepValue_helper() const
{

  return false;
}

KeyboardFiltersSettings::~KeyboardFiltersSettings()
{
}


void KeyboardFiltersSettings::itemChanged(quint64 flags) {

  if ( flags & signalSlowKeysChanged ) {
    Q_EMIT SlowKeysChanged();
  }
  if ( flags & signalSlowKeysDelayChanged ) {
    Q_EMIT SlowKeysDelayChanged();
  }
  if ( flags & signalSlowKeysPressBeepChanged ) {
    Q_EMIT SlowKeysPressBeepChanged();
  }
  if ( flags & signalSlowKeysAcceptBeepChanged ) {
    Q_EMIT SlowKeysAcceptBeepChanged();
  }
  if ( flags & signalSlowKeysRejectBeepChanged ) {
    Q_EMIT SlowKeysRejectBeepChanged();
  }
  if ( flags & signalBounceKeysChanged ) {
    Q_EMIT BounceKeysChanged();
  }
  if ( flags & signalBounceKeysDelayChanged ) {
    Q_EMIT BounceKeysDelayChanged();
  }
  if ( flags & signalBounceKeysRejectBeepChanged ) {
    Q_EMIT BounceKeysRejectBeepChanged();
  }
}

#include "kcmaccessibilitykeyboardfilters.moc"

