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

#include "imstatussettings.h"

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

class IMStatusSettingsHelper
{
  public:
    IMStatusSettingsHelper() : q(0) {}
    ~IMStatusSettingsHelper() { delete q; }
    IMStatusSettings *q;
};
Q_GLOBAL_STATIC(IMStatusSettingsHelper, s_globalIMStatusSettings)
IMStatusSettings *IMStatusSettings::self()
{
  if (!s_globalIMStatusSettings()->q) {
    new IMStatusSettings;
    s_globalIMStatusSettings()->q->read();
  }

  return s_globalIMStatusSettings()->q;
}

IMStatusSettings::IMStatusSettings(  )
  : KConfigSkeleton( QStringLiteral( "choqokrc" ) )
{
  Q_ASSERT(!s_globalIMStatusSettings()->q);
  s_globalIMStatusSettings()->q = this;
  setCurrentGroup( QStringLiteral( "IMStatus" ) );

  mImclientItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "imclient" ), mImclient );
  addItem( mImclientItem, QStringLiteral( "imclient" ) );
  mTempltateItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "templtate" ), mTempltate );
  addItem( mTempltateItem, QStringLiteral( "templtate" ) );
  mReplyItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "reply" ), mReply );
  addItem( mReplyItem, QStringLiteral( "reply" ) );
  mRepeatItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "repeat" ), mRepeat );
  addItem( mRepeatItem, QStringLiteral( "repeat" ) );
}

IMStatusSettings::~IMStatusSettings()
{
  s_globalIMStatusSettings()->q = 0;
}

