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

#include "audiocd_lame_encoder.h"

#include <kstaticdeleter.h>

Settings *Settings::mSelf = 0;
static KStaticDeleter<Settings> staticSettingsDeleter;

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

  return mSelf;
}

Settings::Settings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kcmaudiocd_encoder_lame_rc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Lame" ) );

  TDEConfigSkeleton::ItemBool  *itemBitrate_constant;
  itemBitrate_constant = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "bitrate_constant" ), mBitrate_constant, false );
  addItem( itemBitrate_constant, TQString::fromLatin1( "bitrate_constant" ) );
  TDEConfigSkeleton::ItemBool  *itemBitrate_variable;
  itemBitrate_variable = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "bitrate_variable" ), mBitrate_variable, true );
  addItem( itemBitrate_variable, TQString::fromLatin1( "bitrate_variable" ) );
  TDEConfigSkeleton::ItemInt  *itemStereo;
  itemStereo = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "stereo" ), mStereo, 0 );
  addItem( itemStereo, TQString::fromLatin1( "stereo" ) );
  TDEConfigSkeleton::ItemInt  *itemQuality;
  itemQuality = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "quality" ), mQuality, -2 );
  addItem( itemQuality, TQString::fromLatin1( "quality" ) );
  TDEConfigSkeleton::ItemBool  *itemCopyright;
  itemCopyright = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "copyright" ), mCopyright, false );
  addItem( itemCopyright, TQString::fromLatin1( "copyright" ) );
  TDEConfigSkeleton::ItemBool  *itemOriginal;
  itemOriginal = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "original" ), mOriginal, true );
  addItem( itemOriginal, TQString::fromLatin1( "original" ) );
  TDEConfigSkeleton::ItemBool  *itemIso;
  itemIso = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "iso" ), mIso, false );
  addItem( itemIso, TQString::fromLatin1( "iso" ) );
  TDEConfigSkeleton::ItemBool  *itemCrc;
  itemCrc = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "crc" ), mCrc, false );
  addItem( itemCrc, TQString::fromLatin1( "crc" ) );
  TDEConfigSkeleton::ItemBool  *itemId3_tag;
  itemId3_tag = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "id3_tag" ), mId3_tag, true );
  addItem( itemId3_tag, TQString::fromLatin1( "id3_tag" ) );
  TDEConfigSkeleton::ItemInt  *itemCbr_bitrate;
  itemCbr_bitrate = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "cbr_bitrate" ), mCbr_bitrate, 10 );
  itemCbr_bitrate->setMinValue(0);
  itemCbr_bitrate->setMaxValue(13);
  addItem( itemCbr_bitrate, TQString::fromLatin1( "cbr_bitrate" ) );
  TDEConfigSkeleton::ItemBool  *itemVbr_min_br;
  itemVbr_min_br = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "vbr_min_br" ), mVbr_min_br, false );
  addItem( itemVbr_min_br, TQString::fromLatin1( "vbr_min_br" ) );
  TDEConfigSkeleton::ItemBool  *itemVbr_min_hard;
  itemVbr_min_hard = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "vbr_min_hard" ), mVbr_min_hard, false );
  addItem( itemVbr_min_hard, TQString::fromLatin1( "vbr_min_hard" ) );
  TDEConfigSkeleton::ItemBool  *itemVbr_max_br;
  itemVbr_max_br = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "vbr_max_br" ), mVbr_max_br, false );
  addItem( itemVbr_max_br, TQString::fromLatin1( "vbr_max_br" ) );
  TDEConfigSkeleton::ItemBool  *itemVbr_average_br;
  itemVbr_average_br = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "vbr_average_br" ), mVbr_average_br, false );
  addItem( itemVbr_average_br, TQString::fromLatin1( "vbr_average_br" ) );
  TDEConfigSkeleton::ItemBool  *itemVbr_xing_tag;
  itemVbr_xing_tag = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "vbr_xing_tag" ), mVbr_xing_tag, true );
  addItem( itemVbr_xing_tag, TQString::fromLatin1( "vbr_xing_tag" ) );
  TDEConfigSkeleton::ItemInt  *itemVbr_min_brate;
  itemVbr_min_brate = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "vbr_min_brate" ), mVbr_min_brate, 40 );
  itemVbr_min_brate->setMinValue(0);
  itemVbr_min_brate->setMaxValue(13);
  addItem( itemVbr_min_brate, TQString::fromLatin1( "vbr_min_brate" ) );
  TDEConfigSkeleton::ItemInt  *itemVbr_max_brate;
  itemVbr_max_brate = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "vbr_max_brate" ), mVbr_max_brate, 13 );
  itemVbr_max_brate->setMinValue(0);
  itemVbr_max_brate->setMaxValue(13);
  addItem( itemVbr_max_brate, TQString::fromLatin1( "vbr_max_brate" ) );
  TDEConfigSkeleton::ItemInt  *itemVbr_mean_brate;
  itemVbr_mean_brate = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "vbr_mean_brate" ), mVbr_mean_brate, 10 );
  itemVbr_mean_brate->setMinValue(0);
  itemVbr_mean_brate->setMaxValue(13);
  addItem( itemVbr_mean_brate, TQString::fromLatin1( "vbr_mean_brate" ) );
  TDEConfigSkeleton::ItemBool  *itemEnable_lowpass;
  itemEnable_lowpass = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "enable_lowpass" ), mEnable_lowpass, false );
  addItem( itemEnable_lowpass, TQString::fromLatin1( "enable_lowpass" ) );
  TDEConfigSkeleton::ItemInt  *itemLowfilterfreq;
  itemLowfilterfreq = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "lowfilterfreq" ), mLowfilterfreq, 18000 );
  addItem( itemLowfilterfreq, TQString::fromLatin1( "lowfilterfreq" ) );
  TDEConfigSkeleton::ItemBool  *itemEnable_highpass;
  itemEnable_highpass = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "enable_highpass" ), mEnable_highpass, false );
  addItem( itemEnable_highpass, TQString::fromLatin1( "enable_highpass" ) );
  TDEConfigSkeleton::ItemInt  *itemHighfilterfreq;
  itemHighfilterfreq = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "highfilterfreq" ), mHighfilterfreq, 0 );
  addItem( itemHighfilterfreq, TQString::fromLatin1( "highfilterfreq" ) );
  TDEConfigSkeleton::ItemBool  *itemSet_lpf_width;
  itemSet_lpf_width = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "set_lpf_width" ), mSet_lpf_width, false );
  addItem( itemSet_lpf_width, TQString::fromLatin1( "set_lpf_width" ) );
  TDEConfigSkeleton::ItemInt  *itemLowfilterwidth;
  itemLowfilterwidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "lowfilterwidth" ), mLowfilterwidth, 900 );
  addItem( itemLowfilterwidth, TQString::fromLatin1( "lowfilterwidth" ) );
  TDEConfigSkeleton::ItemBool  *itemSet_hpf_width;
  itemSet_hpf_width = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "set_hpf_width" ), mSet_hpf_width, false );
  addItem( itemSet_hpf_width, TQString::fromLatin1( "set_hpf_width" ) );
  TDEConfigSkeleton::ItemInt  *itemHighfilterwidth;
  itemHighfilterwidth = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "highfilterwidth" ), mHighfilterwidth, 0 );
  addItem( itemHighfilterwidth, TQString::fromLatin1( "highfilterwidth" ) );
}

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

