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

#include "webinterfacepluginsettings.h"

#include <kstaticdeleter.h>

WebInterfacePluginSettings *WebInterfacePluginSettings::mSelf = 0;
static KStaticDeleter<WebInterfacePluginSettings> staticWebInterfacePluginSettingsDeleter;

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

  return mSelf;
}

WebInterfacePluginSettings::WebInterfacePluginSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "ktwebinterfacepluginrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "general" ) );

  TDEConfigSkeleton::ItemInt  *itemPort;
  itemPort = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "port" ), mPort, 8080 );
  addItem( itemPort, TQString::fromLatin1( "port" ) );
  TDEConfigSkeleton::ItemBool  *itemForward;
  itemForward = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "forward" ), mForward, false );
  addItem( itemForward, TQString::fromLatin1( "forward" ) );
  TDEConfigSkeleton::ItemInt  *itemSessionTTL;
  itemSessionTTL = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "sessionTTL" ), mSessionTTL, 3600 );
  addItem( itemSessionTTL, TQString::fromLatin1( "sessionTTL" ) );
  TDEConfigSkeleton::ItemString  *itemSkin;
  itemSkin = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "skin" ), mSkin, TQString::fromLatin1( "default" ) );
  addItem( itemSkin, TQString::fromLatin1( "skin" ) );
  TDEConfigSkeleton::ItemString  *itemPhpExecutablePath;
  itemPhpExecutablePath = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "phpExecutablePath" ), mPhpExecutablePath );
  addItem( itemPhpExecutablePath, TQString::fromLatin1( "phpExecutablePath" ) );
  TDEConfigSkeleton::ItemString  *itemUsername;
  itemUsername = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "username" ), mUsername );
  addItem( itemUsername, TQString::fromLatin1( "username" ) );
  TDEConfigSkeleton::ItemString  *itemPassword;
  itemPassword = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "password" ), mPassword );
  addItem( itemPassword, TQString::fromLatin1( "password" ) );
}

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

