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

#include "settings.h"

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

class ValidatorsSettingsHelper
{
  public:
    ValidatorsSettingsHelper() : q(nullptr) {}
    ~ValidatorsSettingsHelper() { delete q; }
    ValidatorsSettings *q;
};
Q_GLOBAL_STATIC(ValidatorsSettingsHelper, s_globalValidatorsSettings)
ValidatorsSettings *ValidatorsSettings::self()
{
  if (!s_globalValidatorsSettings()->q) {
    new ValidatorsSettings;
    s_globalValidatorsSettings()->q->read();
  }

  return s_globalValidatorsSettings()->q;
}

ValidatorsSettings::ValidatorsSettings(  )
  : KConfigSkeleton( QStringLiteral( "validatorsrc" ) )
{
  Q_ASSERT(!s_globalValidatorsSettings()->q);
  s_globalValidatorsSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Addresses" ) );

  QStringList defaultWWWValidatorUrl;
  defaultWWWValidatorUrl.append( QString::fromUtf8( "http://validator.w3.org/check" ) );

  KConfigSkeleton::ItemStringList  *itemWWWValidatorUrl;
  itemWWWValidatorUrl = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "WWWValidatorUrl" ), mWWWValidatorUrl, defaultWWWValidatorUrl );
  addItem( itemWWWValidatorUrl, QStringLiteral( "WWWValidatorUrl" ) );
  KConfigSkeleton::ItemUInt  *itemWWWValidatorUrlIndex;
  itemWWWValidatorUrlIndex = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "WWWValidatorUrlIndex" ), mWWWValidatorUrlIndex, 0 );
  addItem( itemWWWValidatorUrlIndex, QStringLiteral( "WWWValidatorUrlIndex" ) );
  QStringList defaultWWWValidatorUploadUrl;
  defaultWWWValidatorUploadUrl.append( QString::fromUtf8( "http://validator.w3.org/check" ) );

  KConfigSkeleton::ItemStringList  *itemWWWValidatorUploadUrl;
  itemWWWValidatorUploadUrl = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "WWWValidatorUploadUrl" ), mWWWValidatorUploadUrl, defaultWWWValidatorUploadUrl );
  addItem( itemWWWValidatorUploadUrl, QStringLiteral( "WWWValidatorUploadUrl" ) );
  KConfigSkeleton::ItemUInt  *itemWWWValidatorUploadUrlIndex;
  itemWWWValidatorUploadUrlIndex = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "WWWValidatorUploadUrlIndex" ), mWWWValidatorUploadUrlIndex, 0 );
  addItem( itemWWWValidatorUploadUrlIndex, QStringLiteral( "WWWValidatorUploadUrlIndex" ) );
  QStringList defaultCSSValidatorUrl;
  defaultCSSValidatorUrl.append( QString::fromUtf8( "http://jigsaw.w3.org/css-validator/validator" ) );

  KConfigSkeleton::ItemStringList  *itemCSSValidatorUrl;
  itemCSSValidatorUrl = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "CSSValidatorUrl" ), mCSSValidatorUrl, defaultCSSValidatorUrl );
  addItem( itemCSSValidatorUrl, QStringLiteral( "CSSValidatorUrl" ) );
  KConfigSkeleton::ItemUInt  *itemCSSValidatorUrlIndex;
  itemCSSValidatorUrlIndex = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "CSSValidatorUrlIndex" ), mCSSValidatorUrlIndex, 0 );
  addItem( itemCSSValidatorUrlIndex, QStringLiteral( "CSSValidatorUrlIndex" ) );
  QStringList defaultCSSValidatorUploadUrl;
  defaultCSSValidatorUploadUrl.append( QString::fromUtf8( "http://jigsaw.w3.org/css-validator/validator-upload.html" ) );

  KConfigSkeleton::ItemStringList  *itemCSSValidatorUploadUrl;
  itemCSSValidatorUploadUrl = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "CSSValidatorUploadUrl" ), mCSSValidatorUploadUrl, defaultCSSValidatorUploadUrl );
  addItem( itemCSSValidatorUploadUrl, QStringLiteral( "CSSValidatorUploadUrl" ) );
  KConfigSkeleton::ItemUInt  *itemCSSValidatorUploadUrlIndex;
  itemCSSValidatorUploadUrlIndex = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "CSSValidatorUploadUrlIndex" ), mCSSValidatorUploadUrlIndex, 0 );
  addItem( itemCSSValidatorUploadUrlIndex, QStringLiteral( "CSSValidatorUploadUrlIndex" ) );
  QStringList defaultLinkValidatorUrl;
  defaultLinkValidatorUrl.append( QString::fromUtf8( "http://validator.w3.org/checklink" ) );

  KConfigSkeleton::ItemStringList  *itemLinkValidatorUrl;
  itemLinkValidatorUrl = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "LinkValidatorUrl" ), mLinkValidatorUrl, defaultLinkValidatorUrl );
  addItem( itemLinkValidatorUrl, QStringLiteral( "LinkValidatorUrl" ) );
  KConfigSkeleton::ItemUInt  *itemLinkValidatorUrlIndex;
  itemLinkValidatorUrlIndex = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "LinkValidatorUrlIndex" ), mLinkValidatorUrlIndex, 0 );
  addItem( itemLinkValidatorUrlIndex, QStringLiteral( "LinkValidatorUrlIndex" ) );

  setCurrentGroup( QStringLiteral( "Local Validator" ) );

  KConfigSkeleton::ItemUInt  *itemAccessibilityLevel;
  itemAccessibilityLevel = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "AccessibilityLevel" ), mAccessibilityLevel, 0 );
  itemAccessibilityLevel->setMaxValue(3);
  addItem( itemAccessibilityLevel, QStringLiteral( "AccessibilityLevel" ) );
  KConfigSkeleton::ItemBool  *itemRunAfterLoading;
  itemRunAfterLoading = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "RunAfterLoading" ), mRunAfterLoading, false );
  addItem( itemRunAfterLoading, QStringLiteral( "RunAfterLoading" ) );
}

ValidatorsSettings::~ValidatorsSettings()
{
  s_globalValidatorsSettings()->q = nullptr;
}

