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

#include "mobypicturesettings.h"

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

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

  return s_globalMobypictureSettings()->q;
}

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

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

MobypictureSettings::~MobypictureSettings()
{
  s_globalMobypictureSettings()->q = 0;
}

