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

#include "upnppluginsettings.h"

#include <kstaticdeleter.h>

UPnPPluginSettings *UPnPPluginSettings::mSelf = 0;
static KStaticDeleter<UPnPPluginSettings> staticUPnPPluginSettingsDeleter;

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

  return mSelf;
}

UPnPPluginSettings::UPnPPluginSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "ktupnppluginrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "general" ) );

  TDEConfigSkeleton::ItemString  *itemDefaultDevice;
  itemDefaultDevice = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "defaultDevice" ), mDefaultDevice );
  addItem( itemDefaultDevice, TQString::fromLatin1( "defaultDevice" ) );
}

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

