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

#include "pimcommonsetting_base.h"

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

using namespace PimCommon;

namespace PimCommon {

class PimCommonSettingsBaseHelper
{
  public:
    PimCommonSettingsBaseHelper() : q(nullptr) {}
    ~PimCommonSettingsBaseHelper() { delete q; }
    PimCommonSettingsBaseHelper(const PimCommonSettingsBaseHelper&) = delete;
    PimCommonSettingsBaseHelper& operator=(const PimCommonSettingsBaseHelper&) = delete;
    PimCommonSettingsBase *q;
};
}

Q_GLOBAL_STATIC(PimCommonSettingsBaseHelper, s_globalPimCommonSettingsBase)
PimCommonSettingsBase *PimCommonSettingsBase::self()
{
  if (!s_globalPimCommonSettingsBase()->q) {
    new PimCommonSettingsBase;
    s_globalPimCommonSettingsBase()->q->read();
  }

  return s_globalPimCommonSettingsBase()->q;
}

PimCommonSettingsBase::PimCommonSettingsBase( )
  : KConfigSkeleton( QStringLiteral( "pimcommonrc" ) )
{
  Q_ASSERT(!s_globalPimCommonSettingsBase()->q);
  s_globalPimCommonSettingsBase()->q = this;
  setCurrentGroup( QStringLiteral( "Autocorrect" ) );

  mEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "enabled" ), mEnabled, false );
  addItem( mEnabledItem, QStringLiteral( "Enabled" ) );
  mUppercaseFirstCharOfSentenceItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "upper-case-first-char-of-sentence" ), mUppercaseFirstCharOfSentence, false );
  addItem( mUppercaseFirstCharOfSentenceItem, QStringLiteral( "UppercaseFirstCharOfSentence" ) );
  mFixTwoUppercaseCharsItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "fix-two-upper-case-chars" ), mFixTwoUppercaseChars, false );
  addItem( mFixTwoUppercaseCharsItem, QStringLiteral( "FixTwoUppercaseChars" ) );
  mSingleSpacesItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "single-spaces" ), mSingleSpaces, false );
  addItem( mSingleSpacesItem, QStringLiteral( "SingleSpaces" ) );
  mAutoFractionsItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "auto-fractions" ), mAutoFractions, false );
  addItem( mAutoFractionsItem, QStringLiteral( "AutoFractions" ) );
  mCapitalizeWeekDaysItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "capitalize-week-days" ), mCapitalizeWeekDays, false );
  addItem( mCapitalizeWeekDaysItem, QStringLiteral( "CapitalizeWeekDays" ) );
  mAdvancedAutocorrectItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "advanced-autocorrect" ), mAdvancedAutocorrect, false );
  addItem( mAdvancedAutocorrectItem, QStringLiteral( "AdvancedAutocorrect" ) );
  mReplaceDoubleQuotesItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "replace-double-quotes" ), mReplaceDoubleQuotes, false );
  addItem( mReplaceDoubleQuotesItem, QStringLiteral( "ReplaceDoubleQuotes" ) );
  mReplaceSingleQuotesItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "replace-single-quotes" ), mReplaceSingleQuotes, false );
  addItem( mReplaceSingleQuotesItem, QStringLiteral( "ReplaceSingleQuotes" ) );
  mAutoFormatUrlItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "autoformat-url" ), mAutoFormatUrl, false );
  addItem( mAutoFormatUrlItem, QStringLiteral( "AutoFormatUrl" ) );
  mAutoBoldUnderlineItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "auto-bold-underline" ), mAutoBoldUnderline, false );
  addItem( mAutoBoldUnderlineItem, QStringLiteral( "AutoBoldUnderline" ) );
  mSuperScriptItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "super-script" ), mSuperScript, false );
  addItem( mSuperScriptItem, QStringLiteral( "SuperScript" ) );
  mAddNonBreakingSpaceInFrenchItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "add-non-breaking-space" ), mAddNonBreakingSpaceInFrench, false );
  addItem( mAddNonBreakingSpaceInFrenchItem, QStringLiteral( "AddNonBreakingSpaceInFrench" ) );
}

PimCommonSettingsBase::~PimCommonSettingsBase()
{
  s_globalPimCommonSettingsBase()->q = nullptr;
}

