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

#include "ipfilterpluginsettings.h"

#include <kstaticdeleter.h>

IPBlockingPluginSettings *IPBlockingPluginSettings::mSelf = 0;
static KStaticDeleter<IPBlockingPluginSettings> staticIPBlockingPluginSettingsDeleter;

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

  return mSelf;
}

IPBlockingPluginSettings::IPBlockingPluginSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "ktipfilterpluginrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "general" ) );

  TDEConfigSkeleton::ItemString  *itemFilterURL;
  itemFilterURL = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "filterURL" ), mFilterURL );
  addItem( itemFilterURL, TQString::fromLatin1( "filterURL" ) );
  TDEConfigSkeleton::ItemBool  *itemUseLevel1;
  itemUseLevel1 = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useLevel1" ), mUseLevel1, false );
  addItem( itemUseLevel1, TQString::fromLatin1( "useLevel1" ) );
}

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

