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

#include "twitpicsettings.h"

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

class TwitpicSettingsHelper
{
  public:
    TwitpicSettingsHelper() : q(0) {}
    ~TwitpicSettingsHelper() { delete q; }
    TwitpicSettings *q;
};
K_GLOBAL_STATIC(TwitpicSettingsHelper, s_globalTwitpicSettings)
TwitpicSettings *TwitpicSettings::self()
{
  if (!s_globalTwitpicSettings->q) {
    new TwitpicSettings;
    s_globalTwitpicSettings->q->readConfig();
  }

  return s_globalTwitpicSettings->q;
}

TwitpicSettings::TwitpicSettings(  )
  : KConfigSkeleton( QLatin1String( "choqokrc" ) )
{
  Q_ASSERT(!s_globalTwitpicSettings->q);
  s_globalTwitpicSettings->q = this;
  setCurrentGroup( QLatin1String( "TwitPic" ) );

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

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

