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

#include "jpegcreatorsettings.h"

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

class JpegCreatorSettingsHelper
{
  public:
    JpegCreatorSettingsHelper() : q(0) {}
    ~JpegCreatorSettingsHelper() { delete q; }
    JpegCreatorSettings *q;
};
K_GLOBAL_STATIC(JpegCreatorSettingsHelper, s_globalJpegCreatorSettings)
JpegCreatorSettings *JpegCreatorSettings::self()
{
  if (!s_globalJpegCreatorSettings->q) {
    new JpegCreatorSettings;
    s_globalJpegCreatorSettings->q->readConfig();
  }

  return s_globalJpegCreatorSettings->q;
}

JpegCreatorSettings::JpegCreatorSettings(  )
  : KConfigSkeleton( QLatin1String( "jpegcreatorrc" ) )
{
  Q_ASSERT(!s_globalJpegCreatorSettings->q);
  s_globalJpegCreatorSettings->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

  KConfigSkeleton::ItemBool  *itemRotate;
  itemRotate = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "rotate" ), mRotate, true );
  addItem( itemRotate, QLatin1String( "rotate" ) );
}

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

