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

#include "webpresenceconfig.h"

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

class WebPresenceConfigHelper
{
  public:
    WebPresenceConfigHelper() : q(nullptr) {}
    ~WebPresenceConfigHelper() { delete q; q = nullptr; }
    WebPresenceConfigHelper(const WebPresenceConfigHelper&) = delete;
    WebPresenceConfigHelper& operator=(const WebPresenceConfigHelper&) = delete;
    WebPresenceConfig *q;
};
Q_GLOBAL_STATIC(WebPresenceConfigHelper, s_globalWebPresenceConfig)
WebPresenceConfig *WebPresenceConfig::self()
{
  if (!s_globalWebPresenceConfig()->q) {
    new WebPresenceConfig;
    s_globalWebPresenceConfig()->q->read();
  }

  return s_globalWebPresenceConfig()->q;
}

WebPresenceConfig::WebPresenceConfig( )
  : KConfigSkeleton( QStringLiteral( "kopeterc" ) )
{
  Q_ASSERT(!s_globalWebPresenceConfig()->q);
  s_globalWebPresenceConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Web Presence Plugin" ) );

  KConfigSkeleton::ItemInt  *itemUploadFrequency;
  itemUploadFrequency = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "UploadFrequency" ), mUploadFrequency, 15 );
  addItem( itemUploadFrequency, QStringLiteral( "UploadFrequency" ) );
  KConfigSkeleton::ItemUrl  *itemUploadURL;
  itemUploadURL = new KConfigSkeleton::ItemUrl( currentGroup(), QStringLiteral( "uploadURL" ), mUploadURL );
  addItem( itemUploadURL, QStringLiteral( "uploadURL" ) );
  KConfigSkeleton::ItemBool  *itemFormatHTML;
  itemFormatHTML = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "formatHTML" ), mFormatHTML, true );
  addItem( itemFormatHTML, QStringLiteral( "formatHTML" ) );
  KConfigSkeleton::ItemBool  *itemFormatXHTML;
  itemFormatXHTML = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "formatXHTML" ), mFormatXHTML, false );
  addItem( itemFormatXHTML, QStringLiteral( "formatXHTML" ) );
  KConfigSkeleton::ItemBool  *itemFormatXML;
  itemFormatXML = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "formatXML" ), mFormatXML, false );
  addItem( itemFormatXML, QStringLiteral( "formatXML" ) );
  KConfigSkeleton::ItemBool  *itemFormatStylesheet;
  itemFormatStylesheet = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "formatStylesheet" ), mFormatStylesheet, false );
  addItem( itemFormatStylesheet, QStringLiteral( "formatStylesheet" ) );
  KConfigSkeleton::ItemUrl  *itemFormatStylesheetURL;
  itemFormatStylesheetURL = new KConfigSkeleton::ItemUrl( currentGroup(), QStringLiteral( "formatStylesheetURL" ), mFormatStylesheetURL );
  addItem( itemFormatStylesheetURL, QStringLiteral( "formatStylesheetURL" ) );
  KConfigSkeleton::ItemBool  *itemUseImagesHTML;
  itemUseImagesHTML = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "useImagesHTML" ), mUseImagesHTML, false );
  addItem( itemUseImagesHTML, QStringLiteral( "useImagesHTML" ) );
  KConfigSkeleton::ItemBool  *itemShowName;
  itemShowName = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showName" ), mShowName, true );
  addItem( itemShowName, QStringLiteral( "showName" ) );
  KConfigSkeleton::ItemBool  *itemShowAnotherName;
  itemShowAnotherName = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showAnotherName" ), mShowAnotherName, false );
  addItem( itemShowAnotherName, QStringLiteral( "showAnotherName" ) );
  KConfigSkeleton::ItemString  *itemShowThisName;
  itemShowThisName = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "showThisName" ), mShowThisName );
  addItem( itemShowThisName, QStringLiteral( "showThisName" ) );
  KConfigSkeleton::ItemBool  *itemIncludeIMAddress;
  itemIncludeIMAddress = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "includeIMAddress" ), mIncludeIMAddress, false );
  addItem( itemIncludeIMAddress, QStringLiteral( "includeIMAddress" ) );
}

WebPresenceConfig::~WebPresenceConfig()
{
  if (s_globalWebPresenceConfig.exists() && !s_globalWebPresenceConfig.isDestroyed()) {
    s_globalWebPresenceConfig()->q = nullptr;
  }
}

