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

#include "kcmaccessibilitykeyboard.h"

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

  setCurrentGroup( QStringLiteral( "Keyboard" ) );

  KConfigCompilerSignallingItem  *itemStickyKeys;
  KConfigSkeleton::ItemBool  *innerItemStickyKeys;
  innerItemStickyKeys = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "StickyKeys" ), mStickyKeys, false );
  itemStickyKeys = new KConfigCompilerSignallingItem(innerItemStickyKeys, this, notifyFunction, signalStickyKeysChanged);
  addItem( itemStickyKeys, QStringLiteral( "StickyKeys" ) );
  KConfigCompilerSignallingItem  *itemStickyKeysLatch;
  KConfigSkeleton::ItemBool  *innerItemStickyKeysLatch;
  innerItemStickyKeysLatch = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "StickyKeysLatch" ), mStickyKeysLatch, true );
  itemStickyKeysLatch = new KConfigCompilerSignallingItem(innerItemStickyKeysLatch, this, notifyFunction, signalStickyKeysLatchChanged);
  addItem( itemStickyKeysLatch, QStringLiteral( "StickyKeysLatch" ) );
  KConfigCompilerSignallingItem  *itemStickyKeysAutoOff;
  KConfigSkeleton::ItemBool  *innerItemStickyKeysAutoOff;
  innerItemStickyKeysAutoOff = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "StickyKeysAutoOff" ), mStickyKeysAutoOff, false );
  itemStickyKeysAutoOff = new KConfigCompilerSignallingItem(innerItemStickyKeysAutoOff, this, notifyFunction, signalStickyKeysAutoOffChanged);
  addItem( itemStickyKeysAutoOff, QStringLiteral( "StickyKeysAutoOff" ) );
  KConfigCompilerSignallingItem  *itemStickyKeysBeep;
  KConfigSkeleton::ItemBool  *innerItemStickyKeysBeep;
  innerItemStickyKeysBeep = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "StickyKeysBeep" ), mStickyKeysBeep, true );
  itemStickyKeysBeep = new KConfigCompilerSignallingItem(innerItemStickyKeysBeep, this, notifyFunction, signalStickyKeysBeepChanged);
  addItem( itemStickyKeysBeep, QStringLiteral( "StickyKeysBeep" ) );
  KConfigCompilerSignallingItem  *itemToggleKeysBeep;
  KConfigSkeleton::ItemBool  *innerItemToggleKeysBeep;
  innerItemToggleKeysBeep = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ToggleKeysBeep" ), mToggleKeysBeep, false );
  itemToggleKeysBeep = new KConfigCompilerSignallingItem(innerItemToggleKeysBeep, this, notifyFunction, signalToggleKeysBeepChanged);
  addItem( itemToggleKeysBeep, QStringLiteral( "ToggleKeysBeep" ) );
  KConfigCompilerSignallingItem  *itemKeyboardNotifyModifiers;
  KConfigSkeleton::ItemBool  *innerItemKeyboardNotifyModifiers;
  innerItemKeyboardNotifyModifiers = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "kNotifyModifiers" ), mKeyboardNotifyModifiers, false );
  itemKeyboardNotifyModifiers = new KConfigCompilerSignallingItem(innerItemKeyboardNotifyModifiers, this, notifyFunction, signalKeyboardNotifyModifiersChanged);
  addItem( itemKeyboardNotifyModifiers, QStringLiteral( "KeyboardNotifyModifiers" ) );
  KConfigCompilerSignallingItem  *itemAccessXTimeout;
  KConfigSkeleton::ItemInt  *innerItemAccessXTimeout;
  innerItemAccessXTimeout = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "AccessXTimeout" ), mAccessXTimeout, 30 );
  itemAccessXTimeout = new KConfigCompilerSignallingItem(innerItemAccessXTimeout, this, notifyFunction, signalAccessXTimeoutChanged);
  addItem( itemAccessXTimeout, QStringLiteral( "AccessXTimeout" ) );
  KConfigCompilerSignallingItem  *itemAccessXTimeoutDelay;
  KConfigSkeleton::ItemBool  *innerItemAccessXTimeoutDelay;
  innerItemAccessXTimeoutDelay = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AccessXTimeoutDelay" ), mAccessXTimeoutDelay, false );
  itemAccessXTimeoutDelay = new KConfigCompilerSignallingItem(innerItemAccessXTimeoutDelay, this, notifyFunction, signalAccessXTimeoutDelayChanged);
  addItem( itemAccessXTimeoutDelay, QStringLiteral( "AccessXTimeoutDelay" ) );
  KConfigCompilerSignallingItem  *itemAccessXBeep;
  KConfigSkeleton::ItemBool  *innerItemAccessXBeep;
  innerItemAccessXBeep = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AccessBeep" ), mAccessXBeep, false );
  itemAccessXBeep = new KConfigCompilerSignallingItem(innerItemAccessXBeep, this, notifyFunction, signalAccessXBeepChanged);
  addItem( itemAccessXBeep, QStringLiteral( "AccessXBeep" ) );
}

bool KeyboardSettings::defaultStickyKeysValue_helper() const
{

  return false;
}

bool KeyboardSettings::defaultStickyKeysLatchValue_helper() const
{

  return true;
}

bool KeyboardSettings::defaultStickyKeysAutoOffValue_helper() const
{

  return false;
}

bool KeyboardSettings::defaultStickyKeysBeepValue_helper() const
{

  return true;
}

bool KeyboardSettings::defaultToggleKeysBeepValue_helper() const
{

  return false;
}

bool KeyboardSettings::defaultKeyboardNotifyModifiersValue_helper() const
{

  return false;
}

int KeyboardSettings::defaultAccessXTimeoutValue_helper() const
{

  return 30;
}

bool KeyboardSettings::defaultAccessXTimeoutDelayValue_helper() const
{

  return false;
}

bool KeyboardSettings::defaultAccessXBeepValue_helper() const
{

  return false;
}

KeyboardSettings::~KeyboardSettings()
{
}


void KeyboardSettings::itemChanged(quint64 flags) {

  if ( flags & signalStickyKeysChanged ) {
    Q_EMIT StickyKeysChanged();
  }
  if ( flags & signalStickyKeysLatchChanged ) {
    Q_EMIT StickyKeysLatchChanged();
  }
  if ( flags & signalStickyKeysAutoOffChanged ) {
    Q_EMIT StickyKeysAutoOffChanged();
  }
  if ( flags & signalStickyKeysBeepChanged ) {
    Q_EMIT StickyKeysBeepChanged();
  }
  if ( flags & signalToggleKeysBeepChanged ) {
    Q_EMIT ToggleKeysBeepChanged();
  }
  if ( flags & signalKeyboardNotifyModifiersChanged ) {
    Q_EMIT KeyboardNotifyModifiersChanged();
  }
  if ( flags & signalAccessXTimeoutChanged ) {
    Q_EMIT AccessXTimeoutChanged();
  }
  if ( flags & signalAccessXTimeoutDelayChanged ) {
    Q_EMIT AccessXTimeoutDelayChanged();
  }
  if ( flags & signalAccessXBeepChanged ) {
    Q_EMIT AccessXBeepChanged();
  }
}

#include "kcmaccessibilitykeyboard.moc"

