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

#include "imstatussettings.h"

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

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

  return s_globalIMStatusSettings->q;
}

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

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

IMStatusSettings::~IMStatusSettings()
{
  if (!s_globalIMStatusSettings.isDestroyed()) {
    s_globalIMStatusSettings->q = 0;
  }
}

