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

#include "bit_ly_settings.h"

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

class Bit_ly_SettingsHelper
{
  public:
    Bit_ly_SettingsHelper() : q(0) {}
    ~Bit_ly_SettingsHelper() { delete q; }
    Bit_ly_Settings *q;
};
Q_GLOBAL_STATIC(Bit_ly_SettingsHelper, s_globalBit_ly_Settings)
Bit_ly_Settings *Bit_ly_Settings::self()
{
  if (!s_globalBit_ly_Settings()->q) {
    new Bit_ly_Settings;
    s_globalBit_ly_Settings()->q->read();
  }

  return s_globalBit_ly_Settings()->q;
}

Bit_ly_Settings::Bit_ly_Settings(  )
  : KConfigSkeleton( QStringLiteral( "choqokrc" ) )
{
  Q_ASSERT(!s_globalBit_ly_Settings()->q);
  s_globalBit_ly_Settings()->q = this;
  setCurrentGroup( QStringLiteral( "Bit.ly Shortener" ) );

  mLoginItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "login" ), mLogin );
  addItem( mLoginItem, QStringLiteral( "login" ) );
  mApi_keyItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "api_key" ), mApi_key );
  addItem( mApi_keyItem, QStringLiteral( "api_key" ) );
  mDomainItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "domain" ), mDomain );
  addItem( mDomainItem, QStringLiteral( "domain" ) );
}

Bit_ly_Settings::~Bit_ly_Settings()
{
  s_globalBit_ly_Settings()->q = 0;
}

