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

#include "dolphin_versioncontrolsettings.h"

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

class VersionControlSettingsHelper
{
  public:
    VersionControlSettingsHelper() : q(0) {}
    ~VersionControlSettingsHelper() { delete q; }
    VersionControlSettings *q;
};
K_GLOBAL_STATIC(VersionControlSettingsHelper, s_globalVersionControlSettings)
VersionControlSettings *VersionControlSettings::self()
{
  if (!s_globalVersionControlSettings->q) {
    new VersionControlSettings;
    s_globalVersionControlSettings->q->readConfig();
  }

  return s_globalVersionControlSettings->q;
}

VersionControlSettings::VersionControlSettings(  )
  : KConfigSkeleton( QLatin1String( "dolphinrc" ) )
{
  Q_ASSERT(!s_globalVersionControlSettings->q);
  s_globalVersionControlSettings->q = this;
  setCurrentGroup( QLatin1String( "VersionControl" ) );

  KConfigSkeleton::ItemStringList  *itemEnabledPlugins;
  itemEnabledPlugins = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "enabledPlugins" ), mEnabledPlugins );
  addItem( itemEnabledPlugins, QLatin1String( "enabledPlugins" ) );
}

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

