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

#include "klsconfig.h"

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

class KLSConfigHelper
{
  public:
    KLSConfigHelper() : q(0) {}
    ~KLSConfigHelper() { delete q; }
    KLSConfig *q;
};
K_GLOBAL_STATIC(KLSConfigHelper, s_globalKLSConfig)
KLSConfig *KLSConfig::self()
{
  if (!s_globalKLSConfig->q) {
    new KLSConfig;
    s_globalKLSConfig->q->readConfig();
  }

  return s_globalKLSConfig->q;
}

KLSConfig::KLSConfig(  )
  : KConfigSkeleton( QLatin1String( "klinkstatus_shell.rc" ) )
{
  Q_ASSERT(!s_globalKLSConfig->q);
  s_globalKLSConfig->q = this;
  setCurrentGroup( QLatin1String( "pim" ) );

  KConfigSkeleton::ItemBool  *itemUseSystemIdentity;
  itemUseSystemIdentity = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseSystemIdentity" ), mUseSystemIdentity, false );
  addItem( itemUseSystemIdentity, QLatin1String( "UseSystemIdentity" ) );
  KConfigSkeleton::ItemString  *itemUserName;
  itemUserName = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "UserName" ), mUserName, QLatin1String( "KLinkStatus Agent" ) );
  addItem( itemUserName, QLatin1String( "UserName" ) );
  KConfigSkeleton::ItemString  *itemUserEmail;
  itemUserEmail = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "UserEmail" ), mUserEmail, QLatin1String( "klinkstatus@kdewebdev.org" ) );
  addItem( itemUserEmail, QLatin1String( "UserEmail" ) );

  setCurrentGroup( QLatin1String( "klinkstatus" ) );

  KConfigSkeleton::ItemInt  *itemMaxCountComboUrl;
  itemMaxCountComboUrl = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "MaxCountComboUrl" ), mMaxCountComboUrl, 50 );
  addItem( itemMaxCountComboUrl, QLatin1String( "MaxCountComboUrl" ) );
  KConfigSkeleton::ItemInt  *itemMaxConnectionsNumber;
  itemMaxConnectionsNumber = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "MaxConnectionsNumber" ), mMaxConnectionsNumber, 5 );
  addItem( itemMaxConnectionsNumber, QLatin1String( "MaxConnectionsNumber" ) );
  KConfigSkeleton::ItemInt  *itemTimeOut;
  itemTimeOut = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "TimeOut" ), mTimeOut, 35 );
  addItem( itemTimeOut, QLatin1String( "TimeOut" ) );
  KConfigSkeleton::ItemStringList  *itemComboUrlHistory;
  itemComboUrlHistory = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "ComboUrlHistory" ), mComboUrlHistory );
  addItem( itemComboUrlHistory, QLatin1String( "ComboUrlHistory" ) );
  KConfigSkeleton::ItemInt  *itemDepth;
  itemDepth = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Depth" ), mDepth, 0 );
  addItem( itemDepth, QLatin1String( "Depth" ) );
  KConfigSkeleton::ItemBool  *itemCheckParentFolders;
  itemCheckParentFolders = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "CheckParentFolders" ), mCheckParentFolders, true );
  addItem( itemCheckParentFolders, QLatin1String( "CheckParentFolders" ) );
  KConfigSkeleton::ItemBool  *itemCheckExternalLinks;
  itemCheckExternalLinks = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "CheckExternalLinks" ), mCheckExternalLinks, true );
  addItem( itemCheckExternalLinks, QLatin1String( "CheckExternalLinks" ) );
  KConfigSkeleton::ItemBool  *itemRememberCheckSettings;
  itemRememberCheckSettings = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "RememberCheckSettings" ), mRememberCheckSettings, false );
  addItem( itemRememberCheckSettings, QLatin1String( "RememberCheckSettings" ) );
  KConfigSkeleton::ItemBool  *itemUseQuantaUrlPreviewPrefix;
  itemUseQuantaUrlPreviewPrefix = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseQuantaUrlPreviewPrefix" ), mUseQuantaUrlPreviewPrefix, true );
  addItem( itemUseQuantaUrlPreviewPrefix, QLatin1String( "UseQuantaUrlPreviewPrefix" ) );
  KConfigSkeleton::ItemBool  *itemDisplayTreeView;
  itemDisplayTreeView = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "DisplayTreeView" ), mDisplayTreeView, true );
  addItem( itemDisplayTreeView, QLatin1String( "DisplayTreeView" ) );
  KConfigSkeleton::ItemBool  *itemDisplayFlatView;
  itemDisplayFlatView = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "DisplayFlatView" ), mDisplayFlatView, false );
  addItem( itemDisplayFlatView, QLatin1String( "DisplayFlatView" ) );
  KConfigSkeleton::ItemBool  *itemAutoAdjustColumnWidth;
  itemAutoAdjustColumnWidth = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoAdjustColumnWidth" ), mAutoAdjustColumnWidth, false );
  addItem( itemAutoAdjustColumnWidth, QLatin1String( "AutoAdjustColumnWidth" ) );
  KConfigSkeleton::ItemBool  *itemFollowLastLinkChecked;
  itemFollowLastLinkChecked = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FollowLastLinkChecked" ), mFollowLastLinkChecked, false );
  addItem( itemFollowLastLinkChecked, QLatin1String( "FollowLastLinkChecked" ) );
  KConfigSkeleton::ItemBool  *itemSendIdentification;
  itemSendIdentification = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "SendIdentification" ), mSendIdentification, true );
  addItem( itemSendIdentification, QLatin1String( "SendIdentification" ) );
  KConfigSkeleton::ItemString  *itemUserAgent;
  itemUserAgent = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "UserAgent" ), mUserAgent );
  addItem( itemUserAgent, QLatin1String( "UserAgent" ) );
  KConfigSkeleton::ItemBool  *itemShowMarkupStatus;
  itemShowMarkupStatus = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowMarkupStatus" ), mShowMarkupStatus, false );
  addItem( itemShowMarkupStatus, QLatin1String( "ShowMarkupStatus" ) );
  QStringList defaultStylesheetFiles;
  defaultStylesheetFiles.append( QString::fromUtf8( "styles/results_stylesheet.xsl" ) );

  KConfigSkeleton::ItemStringList  *itemStylesheetFiles;
  itemStylesheetFiles = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "StylesheetFiles" ), mStylesheetFiles, defaultStylesheetFiles );
  addItem( itemStylesheetFiles, QLatin1String( "StylesheetFiles" ) );
  KConfigSkeleton::ItemString  *itemPreferedStylesheet;
  itemPreferedStylesheet = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "PreferedStylesheet" ), mPreferedStylesheet, QLatin1String( "styles/results_stylesheet.xsl" ) );
  addItem( itemPreferedStylesheet, QLatin1String( "PreferedStylesheet" ) );

  setCurrentGroup( QLatin1String( "tidy" ) );

  KConfigSkeleton::ItemInt  *itemIndentationSpaces;
  itemIndentationSpaces = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "IndentationSpaces" ), mIndentationSpaces, 2 );
  addItem( itemIndentationSpaces, QLatin1String( "IndentationSpaces" ) );
  KConfigSkeleton::ItemBool  *itemWrapLines;
  itemWrapLines = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "WrapLines" ), mWrapLines, true );
  addItem( itemWrapLines, QLatin1String( "WrapLines" ) );
  KConfigSkeleton::ItemInt  *itemWrapColumn;
  itemWrapColumn = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "WrapColumn" ), mWrapColumn, 68 );
  addItem( itemWrapColumn, QLatin1String( "WrapColumn" ) );
  KConfigSkeleton::ItemBool  *itemUpperCaseTags;
  itemUpperCaseTags = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UpperCaseTags" ), mUpperCaseTags, false );
  addItem( itemUpperCaseTags, QLatin1String( "UpperCaseTags" ) );
  KConfigSkeleton::ItemBool  *itemUpperCaseAttributes;
  itemUpperCaseAttributes = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UpperCaseAttributes" ), mUpperCaseAttributes, false );
  addItem( itemUpperCaseAttributes, QLatin1String( "UpperCaseAttributes" ) );
  KConfigSkeleton::ItemBool  *itemOutputXML;
  itemOutputXML = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "OutputXML" ), mOutputXML, false );
  addItem( itemOutputXML, QLatin1String( "OutputXML" ) );
  KConfigSkeleton::ItemBool  *itemTidyClean;
  itemTidyClean = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TidyClean" ), mTidyClean, false );
  addItem( itemTidyClean, QLatin1String( "TidyClean" ) );
  QList<KConfigSkeleton::ItemEnum::Choice2> valuesEncoding;
  KConfigSkeleton::ItemEnum  *itemEncoding;
  itemEncoding = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "Encoding" ), mEncoding, valuesEncoding );
  addItem( itemEncoding, QLatin1String( "Encoding" ) );
}

KLSConfig::~KLSConfig()
{
  if (!s_globalKLSConfig.isDestroyed()) {
    s_globalKLSConfig->q = 0;
  }
}

