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

#include "kdeconfig.h"

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

class KDEProviderSettingsHelper
{
  public:
    KDEProviderSettingsHelper() : q(nullptr) {}
    ~KDEProviderSettingsHelper() { delete q; }
    KDEProviderSettingsHelper(const KDEProviderSettingsHelper&) = delete;
    KDEProviderSettingsHelper& operator=(const KDEProviderSettingsHelper&) = delete;
    KDEProviderSettings *q;
};
Q_GLOBAL_STATIC(KDEProviderSettingsHelper, s_globalKDEProviderSettings)
KDEProviderSettings *KDEProviderSettings::self()
{
  if (!s_globalKDEProviderSettings()->q) {
    new KDEProviderSettings;
    s_globalKDEProviderSettings()->q->read();
  }

  return s_globalKDEProviderSettings()->q;
}

KDEProviderSettings::KDEProviderSettings(  )
  : KConfigSkeleton( QStringLiteral( "kdeproviderpluginconfig" ) )
{
  Q_ASSERT(!s_globalKDEProviderSettings()->q);
  s_globalKDEProviderSettings()->q = this;
  setCurrentGroup( QStringLiteral( "KDE" ) );

  KConfigSkeleton::ItemString  *itemGitProtocol;
  itemGitProtocol = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "gitProtocol" ), mGitProtocol, QStringLiteral( "git" ) );
  addItem( itemGitProtocol, QStringLiteral( "gitProtocol" ) );
}

KDEProviderSettings::~KDEProviderSettings()
{
  s_globalKDEProviderSettings()->q = nullptr;
}

