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

#include "kbloggerconfig.h"

#include <kstaticdeleter.h>

KBloggerConfig *KBloggerConfig::mSelf = 0;
static KStaticDeleter<KBloggerConfig> staticKBloggerConfigDeleter;

KBloggerConfig *KBloggerConfig::self()
{
  if ( !mSelf ) {
    staticKBloggerConfigDeleter.setObject( mSelf, new KBloggerConfig() );
    mSelf->readConfig();
  }

  return mSelf;
}

KBloggerConfig::KBloggerConfig(  )
  : KConfigSkeleton( QString::fromLatin1( "kbloggerrc" ) )
{
  mSelf = this;
  setCurrentGroup( QString::fromLatin1( "Account settings" ) );

  KConfigSkeleton::ItemInt  *itemType;
  itemType = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Type" ), mType );
  addItem( itemType, QString::fromLatin1( "Type" ) );
  KConfigSkeleton::ItemString  *itemUser;
  itemUser = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "User" ), mUser );
  addItem( itemUser, QString::fromLatin1( "User" ) );
  KConfigSkeleton::ItemString  *itemPassword;
  itemPassword = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Password" ), mPassword );
  addItem( itemPassword, QString::fromLatin1( "Password" ) );

  setCurrentGroup( QString::fromLatin1( "Server Settings" ) );

  KConfigSkeleton::ItemString  *itemBlogId;
  itemBlogId = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "BlogId" ), mBlogId );
  addItem( itemBlogId, QString::fromLatin1( "BlogId" ) );
  KConfigSkeleton::ItemString  *itemUrl;
  itemUrl = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Url" ), mUrl );
  addItem( itemUrl, QString::fromLatin1( "Url" ) );
}

KBloggerConfig::~KBloggerConfig()
{
  if ( mSelf == this )
    staticKBloggerConfigDeleter.setObject( mSelf, 0, false );
}

