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

#include "mobypicturesettings.h"

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

class MobypictureSettingsHelper
{
  public:
    MobypictureSettingsHelper() : q(0) {}
    ~MobypictureSettingsHelper() { delete q; }
    MobypictureSettings *q;
};
K_GLOBAL_STATIC(MobypictureSettingsHelper, s_globalMobypictureSettings)
MobypictureSettings *MobypictureSettings::self()
{
  if (!s_globalMobypictureSettings->q) {
    new MobypictureSettings;
    s_globalMobypictureSettings->q->readConfig();
  }

  return s_globalMobypictureSettings->q;
}

MobypictureSettings::MobypictureSettings(  )
  : KConfigSkeleton( QLatin1String( "choqokrc" ) )
{
  Q_ASSERT(!s_globalMobypictureSettings->q);
  s_globalMobypictureSettings->q = this;
  setCurrentGroup( QLatin1String( "Mobypicture ImageUploader" ) );

  mBasicItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "basic" ), mBasic );
  addItem( mBasicItem, QLatin1String( "basic" ) );
  mLoginItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "login" ), mLogin );
  addItem( mLoginItem, QLatin1String( "login" ) );
  mOauthItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "oauth" ), mOauth );
  addItem( mOauthItem, QLatin1String( "oauth" ) );
  mAliasItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "alias" ), mAlias );
  addItem( mAliasItem, QLatin1String( "alias" ) );
}

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

