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

#include "fileviewsvnpluginsettings.h"

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

class FileViewSvnPluginSettingsHelper
{
  public:
    FileViewSvnPluginSettingsHelper() : q(0) {}
    ~FileViewSvnPluginSettingsHelper() { delete q; }
    FileViewSvnPluginSettings *q;
};
K_GLOBAL_STATIC(FileViewSvnPluginSettingsHelper, s_globalFileViewSvnPluginSettings)
FileViewSvnPluginSettings *FileViewSvnPluginSettings::self()
{
  if (!s_globalFileViewSvnPluginSettings->q) {
    new FileViewSvnPluginSettings;
    s_globalFileViewSvnPluginSettings->q->readConfig();
  }

  return s_globalFileViewSvnPluginSettings->q;
}

FileViewSvnPluginSettings::FileViewSvnPluginSettings(  )
  : KConfigSkeleton( QLatin1String( "fileviewsvnpluginrc" ) )
{
  Q_ASSERT(!s_globalFileViewSvnPluginSettings->q);
  s_globalFileViewSvnPluginSettings->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

  KConfigSkeleton::ItemBool  *itemShowUpdates;
  itemShowUpdates = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showUpdates" ), mShowUpdates, false );
  addItem( itemShowUpdates, QLatin1String( "showUpdates" ) );
}

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

