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

#include "kwincompositing_setting.h"

KWinCompositingSetting::KWinCompositingSetting( QObject *parent )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  setParent(parent);
  setCurrentGroup( QStringLiteral( "KDE" ) );

  KConfigSkeleton::ItemDouble  *itemAnimationDurationFactor;
  itemAnimationDurationFactor = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "AnimationDurationFactor" ), mAnimationDurationFactor, 1.0 );
  addItem( itemAnimationDurationFactor, QStringLiteral( "AnimationDurationFactor" ) );

  setCurrentGroup( QStringLiteral( "Compositing" ) );

  QList<KConfigSkeleton::ItemEnum::Choice> valuesHiddenPreviews;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Off");
    valuesHiddenPreviews.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Shown");
    valuesHiddenPreviews.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Always");
    valuesHiddenPreviews.append( choice );
  }
  KConfigSkeleton::ItemEnum  *itemHiddenPreviews;
  itemHiddenPreviews = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "HiddenPreviews" ), mHiddenPreviews, valuesHiddenPreviews, EnumHiddenPreviews::Shown );
  itemHiddenPreviews->setValueForChoice(QStringLiteral( "Off" ), QStringLiteral( "4" ));
  itemHiddenPreviews->setValueForChoice(QStringLiteral( "Shown" ), QStringLiteral( "5" ));
  itemHiddenPreviews->setValueForChoice(QStringLiteral( "Always" ), QStringLiteral( "6" ));
  addItem( itemHiddenPreviews, QStringLiteral( "HiddenPreviews" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesglTextureFilter;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Smooth");
    valuesglTextureFilter.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Accurate");
    valuesglTextureFilter.append( choice );
  }
  KConfigSkeleton::ItemEnum  *itemGlTextureFilter;
  itemGlTextureFilter = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "GLTextureFilter" ), mGlTextureFilter, valuesglTextureFilter, EnumGlTextureFilter::Accurate );
  itemGlTextureFilter->setValueForChoice(QStringLiteral( "Smooth" ), QStringLiteral( "1" ));
  itemGlTextureFilter->setValueForChoice(QStringLiteral( "Accurate" ), QStringLiteral( "2" ));
  addItem( itemGlTextureFilter, QStringLiteral( "glTextureFilter" ) );
  KConfigSkeleton::ItemBool  *itemEnabled;
  itemEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Enabled" ), mEnabled, true );
  addItem( itemEnabled, QStringLiteral( "Enabled" ) );
  KConfigSkeleton::ItemInt  *itemLastFailureTimestamp;
  itemLastFailureTimestamp = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "LastFailureTimestamp" ), mLastFailureTimestamp, 0 );
  addItem( itemLastFailureTimestamp, QStringLiteral( "LastFailureTimestamp" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesglPreferBufferSwap;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("AutoSwapStrategy");
    valuesglPreferBufferSwap.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("ExtendDamage");
    valuesglPreferBufferSwap.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("PaintFullScreen");
    valuesglPreferBufferSwap.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("CopyFrontBuffer");
    valuesglPreferBufferSwap.append( choice );
  }
  KConfigSkeleton::ItemEnum  *itemGlPreferBufferSwap;
  itemGlPreferBufferSwap = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "GLPreferBufferSwap" ), mGlPreferBufferSwap, valuesglPreferBufferSwap, EnumGlPreferBufferSwap::AutoSwapStrategy );
  itemGlPreferBufferSwap->setValueForChoice(QStringLiteral( "AutoSwapStrategy" ), QStringLiteral( "a" ));
  itemGlPreferBufferSwap->setValueForChoice(QStringLiteral( "ExtendDamage" ), QStringLiteral( "e" ));
  itemGlPreferBufferSwap->setValueForChoice(QStringLiteral( "PaintFullScreen" ), QStringLiteral( "p" ));
  itemGlPreferBufferSwap->setValueForChoice(QStringLiteral( "CopyFrontBuffer" ), QStringLiteral( "c" ));
  addItem( itemGlPreferBufferSwap, QStringLiteral( "glPreferBufferSwap" ) );
  KConfigSkeleton::ItemBool  *itemWindowsBlockCompositing;
  itemWindowsBlockCompositing = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "WindowsBlockCompositing" ), mWindowsBlockCompositing, true );
  addItem( itemWindowsBlockCompositing, QStringLiteral( "WindowsBlockCompositing" ) );
  QList<KConfigSkeleton::ItemEnum::Choice> valuesLatencyPolicy;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("LatencyExtremelyLow");
    valuesLatencyPolicy.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("LatencyLow");
    valuesLatencyPolicy.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("LatencyMedium");
    valuesLatencyPolicy.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("LatencyHigh");
    valuesLatencyPolicy.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("LatencyExtremelyHigh");
    valuesLatencyPolicy.append( choice );
  }
  KConfigSkeleton::ItemEnum  *itemLatencyPolicy;
  itemLatencyPolicy = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "LatencyPolicy" ), mLatencyPolicy, valuesLatencyPolicy, LatencyMedium );
  itemLatencyPolicy->setValueForChoice(QStringLiteral( "LatencyExtremelyLow" ), QStringLiteral( "ExtremelyLow" ));
  itemLatencyPolicy->setValueForChoice(QStringLiteral( "LatencyLow" ), QStringLiteral( "Low" ));
  itemLatencyPolicy->setValueForChoice(QStringLiteral( "LatencyMedium" ), QStringLiteral( "Medium" ));
  itemLatencyPolicy->setValueForChoice(QStringLiteral( "LatencyHigh" ), QStringLiteral( "High" ));
  itemLatencyPolicy->setValueForChoice(QStringLiteral( "LatencyExtremelyHigh" ), QStringLiteral( "ExtremelyHigh" ));
  addItem( itemLatencyPolicy, QStringLiteral( "LatencyPolicy" ) );
}

double KWinCompositingSetting::defaultAnimationDurationFactorValue_helper() const
{

  return 1.0;
}

int KWinCompositingSetting::defaultHiddenPreviewsValue_helper() const
{

  return EnumHiddenPreviews::Shown;
}

int KWinCompositingSetting::defaultGlTextureFilterValue_helper() const
{

  return EnumGlTextureFilter::Accurate;
}

bool KWinCompositingSetting::defaultEnabledValue_helper() const
{

  return true;
}

int KWinCompositingSetting::defaultLastFailureTimestampValue_helper() const
{

  return 0;
}

int KWinCompositingSetting::defaultGlPreferBufferSwapValue_helper() const
{

  return EnumGlPreferBufferSwap::AutoSwapStrategy;
}

bool KWinCompositingSetting::defaultWindowsBlockCompositingValue_helper() const
{

  return true;
}

int KWinCompositingSetting::defaultLatencyPolicyValue_helper() const
{

  return LatencyMedium;
}

KWinCompositingSetting::~KWinCompositingSetting()
{
}

