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

#include "yourlssettings.h"

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

class YourlsSettingsHelper
{
  public:
    YourlsSettingsHelper() : q(nullptr) {}
    ~YourlsSettingsHelper() { delete q; }
    YourlsSettings *q;
};
Q_GLOBAL_STATIC(YourlsSettingsHelper, s_globalYourlsSettings)
YourlsSettings *YourlsSettings::self()
{
  if (!s_globalYourlsSettings()->q) {
    new YourlsSettings;
    s_globalYourlsSettings()->q->read();
  }

  return s_globalYourlsSettings()->q;
}

YourlsSettings::YourlsSettings(  )
  : KConfigSkeleton( QStringLiteral( "choqokrc" ) )
{
  Q_ASSERT(!s_globalYourlsSettings()->q);
  s_globalYourlsSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Yourls" ) );

  mYourlsHostItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "yourlsHost" ), mYourlsHost );
  addItem( mYourlsHostItem, QStringLiteral( "yourlsHost" ) );
  mUsernameItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "username" ), mUsername );
  addItem( mUsernameItem, QStringLiteral( "username" ) );
}

YourlsSettings::~YourlsSettings()
{
  s_globalYourlsSettings()->q = nullptr;
}

