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

#include "audiocd_vorbis_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_vorbis_rc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Vorbis" ) );

  TDEConfigSkeleton::ItemInt  *itemVorbis_enc_method;
  itemVorbis_enc_method = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "vorbis_enc_method" ), mVorbis_enc_method, 0 );
  addItem( itemVorbis_enc_method, TQString::fromLatin1( "vorbis_enc_method" ) );
  TDEConfigSkeleton::ItemBool  *itemSet_vorbis_min_br;
  itemSet_vorbis_min_br = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "set_vorbis_min_br" ), mSet_vorbis_min_br, false );
  addItem( itemSet_vorbis_min_br, TQString::fromLatin1( "set_vorbis_min_br" ) );
  TDEConfigSkeleton::ItemBool  *itemSet_vorbis_max_br;
  itemSet_vorbis_max_br = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "set_vorbis_max_br" ), mSet_vorbis_max_br, false );
  addItem( itemSet_vorbis_max_br, TQString::fromLatin1( "set_vorbis_max_br" ) );
  TDEConfigSkeleton::ItemBool  *itemSet_vorbis_nominal_br;
  itemSet_vorbis_nominal_br = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "set_vorbis_nominal_br" ), mSet_vorbis_nominal_br, true );
  addItem( itemSet_vorbis_nominal_br, TQString::fromLatin1( "set_vorbis_nominal_br" ) );
  TDEConfigSkeleton::ItemBool  *itemVorbis_comments;
  itemVorbis_comments = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "vorbis_comments" ), mVorbis_comments, true );
  addItem( itemVorbis_comments, TQString::fromLatin1( "vorbis_comments" ) );
  TDEConfigSkeleton::ItemDouble  *itemVorbis_quality;
  itemVorbis_quality = new TDEConfigSkeleton::ItemDouble( currentGroup(), TQString::fromLatin1( "vorbis_quality" ), mVorbis_quality, 3 );
  itemVorbis_quality->setMinValue(-1);
  itemVorbis_quality->setMaxValue(10);
  addItem( itemVorbis_quality, TQString::fromLatin1( "vorbis_quality" ) );
  TDEConfigSkeleton::ItemInt  *itemVorbis_min_br;
  itemVorbis_min_br = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "vorbis_min_br" ), mVorbis_min_br, 1 );
  itemVorbis_min_br->setMinValue(0);
  itemVorbis_min_br->setMaxValue(13);
  addItem( itemVorbis_min_br, TQString::fromLatin1( "vorbis_min_br" ) );
  TDEConfigSkeleton::ItemInt  *itemVorbis_max_br;
  itemVorbis_max_br = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "vorbis_max_br" ), mVorbis_max_br, 13 );
  itemVorbis_max_br->setMinValue(0);
  itemVorbis_max_br->setMaxValue(13);
  addItem( itemVorbis_max_br, TQString::fromLatin1( "vorbis_max_br" ) );
  TDEConfigSkeleton::ItemInt  *itemVorbis_nominal_br;
  itemVorbis_nominal_br = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "vorbis_nominal_br" ), mVorbis_nominal_br, 3 );
  itemVorbis_nominal_br->setMinValue(0);
  itemVorbis_nominal_br->setMaxValue(5);
  addItem( itemVorbis_nominal_br, TQString::fromLatin1( "vorbis_nominal_br" ) );
}

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

