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

#include "posteroussettings.h"

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

class PosterousSettingsHelper
{
  public:
    PosterousSettingsHelper() : q(0) {}
    ~PosterousSettingsHelper() { delete q; }
    PosterousSettings *q;
};
Q_GLOBAL_STATIC(PosterousSettingsHelper, s_globalPosterousSettings)
PosterousSettings *PosterousSettings::self()
{
  if (!s_globalPosterousSettings()->q) {
    new PosterousSettings;
    s_globalPosterousSettings()->q->read();
  }

  return s_globalPosterousSettings()->q;
}

PosterousSettings::PosterousSettings(  )
  : KConfigSkeleton( QStringLiteral( "choqokrc" ) )
{
  Q_ASSERT(!s_globalPosterousSettings()->q);
  s_globalPosterousSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Posterous 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" ) );
}

PosterousSettings::~PosterousSettings()
{
  s_globalPosterousSettings()->q = 0;
}

