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

#include "gssettings.h"

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

class GSSettingsHelper
{
  public:
    GSSettingsHelper() : q(0) {}
    ~GSSettingsHelper() { delete q; }
    GSSettings *q;
};
K_GLOBAL_STATIC(GSSettingsHelper, s_globalGSSettings)
GSSettings *GSSettings::self()
{
  if (!s_globalGSSettings->q) {
    new GSSettings;
    s_globalGSSettings->q->readConfig();
  }

  return s_globalGSSettings->q;
}

GSSettings::GSSettings(  )
  : KConfigSkeleton( QLatin1String( "okular-generator-ghostscriptrc" ) )
{
  Q_ASSERT(!s_globalGSSettings->q);
  s_globalGSSettings->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

  KConfigSkeleton::ItemBool  *itemPlatformFonts;
  itemPlatformFonts = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "PlatformFonts" ), mPlatformFonts, true );
  addItem( itemPlatformFonts, QLatin1String( "PlatformFonts" ) );
}

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

