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

#include "tinyarro_ws_settings.h"

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

class Tinyarro_ws_SettingsHelper
{
  public:
    Tinyarro_ws_SettingsHelper() : q(0) {}
    ~Tinyarro_ws_SettingsHelper() { delete q; }
    Tinyarro_ws_Settings *q;
};
K_GLOBAL_STATIC(Tinyarro_ws_SettingsHelper, s_globalTinyarro_ws_Settings)
Tinyarro_ws_Settings *Tinyarro_ws_Settings::self()
{
  if (!s_globalTinyarro_ws_Settings->q) {
    new Tinyarro_ws_Settings;
    s_globalTinyarro_ws_Settings->q->readConfig();
  }

  return s_globalTinyarro_ws_Settings->q;
}

Tinyarro_ws_Settings::Tinyarro_ws_Settings(  )
  : KConfigSkeleton( QLatin1String( "choqokrc" ) )
{
  Q_ASSERT(!s_globalTinyarro_ws_Settings->q);
  s_globalTinyarro_ws_Settings->q = this;
  setCurrentGroup( QLatin1String( "Tinyarro.ws Shortener" ) );

  mTinyarro_ws_hostItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "tinyarro_ws_host" ), mTinyarro_ws_host );
  addItem( mTinyarro_ws_hostItem, QLatin1String( "tinyarro_ws_host" ) );
  mTinyarro_ws_host_punnyItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "tinyarro_ws_host_punny" ), mTinyarro_ws_host_punny );
  addItem( mTinyarro_ws_host_punnyItem, QLatin1String( "tinyarro_ws_host_punny" ) );
}

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

