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

#include "twitgoosettings.h"

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

class TwitgooSettingsHelper
{
  public:
    TwitgooSettingsHelper() : q(0) {}
    ~TwitgooSettingsHelper() { delete q; }
    TwitgooSettings *q;
};
K_GLOBAL_STATIC(TwitgooSettingsHelper, s_globalTwitgooSettings)
TwitgooSettings *TwitgooSettings::self()
{
  if (!s_globalTwitgooSettings->q) {
    new TwitgooSettings;
    s_globalTwitgooSettings->q->readConfig();
  }

  return s_globalTwitgooSettings->q;
}

TwitgooSettings::TwitgooSettings(  )
  : KConfigSkeleton( QLatin1String( "choqokrc" ) )
{
  Q_ASSERT(!s_globalTwitgooSettings->q);
  s_globalTwitgooSettings->q = this;
  setCurrentGroup( QLatin1String( "Twitgoo ImageUploader" ) );

  mAliasItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "alias" ), mAlias );
  addItem( mAliasItem, QLatin1String( "alias" ) );
  mDirectLinkItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "directLink" ), mDirectLink );
  addItem( mDirectLinkItem, QLatin1String( "directLink" ) );
}

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

