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

#include "krunnersettingsbase.h"

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

  setCurrentGroup( QStringLiteral( "General" ) );

  KConfigCompilerSignallingItem  *itemFreeFloating;
  KConfigSkeleton::ItemBool  *innerItemFreeFloating;
  innerItemFreeFloating = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "FreeFloating" ), mFreeFloating, false );
  itemFreeFloating = new KConfigCompilerSignallingItem(innerItemFreeFloating, this, notifyFunction, signalFreeFloatingChanged);
  itemFreeFloating->setWriteFlags(KConfigBase::Notify);
  addItem( itemFreeFloating, QStringLiteral( "freeFloating" ) );
  KConfigCompilerSignallingItem  *itemActivateWhenTypingOnDesktop;
  KConfigSkeleton::ItemBool  *innerItemActivateWhenTypingOnDesktop;
  innerItemActivateWhenTypingOnDesktop = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ActivateWhenTypingOnDesktop" ), mActivateWhenTypingOnDesktop, true );
  itemActivateWhenTypingOnDesktop = new KConfigCompilerSignallingItem(innerItemActivateWhenTypingOnDesktop, this, notifyFunction, signalActivateWhenTypingOnDesktopChanged);
  itemActivateWhenTypingOnDesktop->setWriteFlags(KConfigBase::Notify);
  addItem( itemActivateWhenTypingOnDesktop, QStringLiteral( "activateWhenTypingOnDesktop" ) );
  KConfigCompilerSignallingItem  *itemRetainPriorSearch;
  KConfigSkeleton::ItemBool  *innerItemRetainPriorSearch;
  innerItemRetainPriorSearch = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "RetainPriorSearch" ), mRetainPriorSearch, true );
  itemRetainPriorSearch = new KConfigCompilerSignallingItem(innerItemRetainPriorSearch, this, notifyFunction, signalRetainPriorSearchChanged);
  itemRetainPriorSearch->setWriteFlags(KConfigBase::Notify);
  addItem( itemRetainPriorSearch, QStringLiteral( "retainPriorSearch" ) );
  KConfigCompilerSignallingItem  *itemHistoryEnabled;
  KConfigSkeleton::ItemBool  *innerItemHistoryEnabled;
  innerItemHistoryEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "HistoryEnabled" ), mHistoryEnabled, true );
  itemHistoryEnabled = new KConfigCompilerSignallingItem(innerItemHistoryEnabled, this, notifyFunction, signalHistoryEnabledChanged);
  itemHistoryEnabled->setWriteFlags(KConfigBase::Notify);
  addItem( itemHistoryEnabled, QStringLiteral( "historyEnabled" ) );
  KConfigCompilerSignallingItem  *itemActivityAware;
  KConfigSkeleton::ItemBool  *innerItemActivityAware;
  innerItemActivityAware = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ActivityAware" ), mActivityAware, true );
  itemActivityAware = new KConfigCompilerSignallingItem(innerItemActivityAware, this, notifyFunction, signalActivityAwareChanged);
  itemActivityAware->setWriteFlags(KConfigBase::Notify);
  addItem( itemActivityAware, QStringLiteral( "activityAware" ) );
}

bool KRunnerSettingsBase::defaultFreeFloatingValue_helper() const
{

  return false;
}

bool KRunnerSettingsBase::defaultActivateWhenTypingOnDesktopValue_helper() const
{

  return true;
}

bool KRunnerSettingsBase::defaultRetainPriorSearchValue_helper() const
{

  return true;
}

bool KRunnerSettingsBase::defaultHistoryEnabledValue_helper() const
{

  return true;
}

bool KRunnerSettingsBase::defaultActivityAwareValue_helper() const
{

  return true;
}

KRunnerSettingsBase::~KRunnerSettingsBase()
{
}


void KRunnerSettingsBase::itemChanged(quint64 flags) {

  if ( flags & signalFreeFloatingChanged ) {
    Q_EMIT freeFloatingChanged();
  }
  if ( flags & signalActivateWhenTypingOnDesktopChanged ) {
    Q_EMIT activateWhenTypingOnDesktopChanged();
  }
  if ( flags & signalRetainPriorSearchChanged ) {
    Q_EMIT retainPriorSearchChanged();
  }
  if ( flags & signalHistoryEnabledChanged ) {
    Q_EMIT historyEnabledChanged();
  }
  if ( flags & signalActivityAwareChanged ) {
    Q_EMIT activityAwareChanged();
  }
}

#include "krunnersettingsbase.moc"

