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

#include "prefs.h"

#include <kstaticdeleter.h>

Prefs *Prefs::mSelf = 0;
static KStaticDeleter<Prefs> staticPrefsDeleter;

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

  return mSelf;
}

Prefs::Prefs(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kaudiocreatorrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "CD" ) );

  TDEConfigSkeleton::ItemBool  *itemPerformCDDBauto;
  itemPerformCDDBauto = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "performCDDBauto" ), mPerformCDDBauto, true );
  addItem( itemPerformCDDBauto, TQString::fromLatin1( "performCDDBauto" ) );
  TDEConfigSkeleton::ItemBool  *itemAutoRip;
  itemAutoRip = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "autoRip" ), mAutoRip, false );
  addItem( itemAutoRip, TQString::fromLatin1( "autoRip" ) );
  TDEConfigSkeleton::ItemStringList  *itemDevice;
  itemDevice = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "device" ), mDevice, DEFAULT_CD_DEVICE );
  addItem( itemDevice, TQString::fromLatin1( "device" ) );
  TDEConfigSkeleton::ItemBool  *itemPromptIfIncompleteInfo;
  itemPromptIfIncompleteInfo = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "promptIfIncompleteInfo" ), mPromptIfIncompleteInfo, true );
  addItem( itemPromptIfIncompleteInfo, TQString::fromLatin1( "promptIfIncompleteInfo" ) );

  setCurrentGroup( TQString::fromLatin1( "General" ) );

  TDEConfigSkeleton::ItemBool  *itemRemoveCompletedJobs;
  itemRemoveCompletedJobs = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "removeCompletedJobs" ), mRemoveCompletedJobs, true );
  addItem( itemRemoveCompletedJobs, TQString::fromLatin1( "removeCompletedJobs" ) );
  TDEConfigSkeleton::ItemString  *itemReplaceInput;
  itemReplaceInput = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "selection" ), mReplaceInput );
  addItem( itemReplaceInput, TQString::fromLatin1( "replaceInput" ) );
  TDEConfigSkeleton::ItemString  *itemReplaceOutput;
  itemReplaceOutput = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "replace" ), mReplaceOutput );
  addItem( itemReplaceOutput, TQString::fromLatin1( "replaceOutput" ) );
  TDEConfigSkeleton::ItemBool  *itemSeperateMultiArtist;
  itemSeperateMultiArtist = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "seperateMultiArtist" ), mSeperateMultiArtist, false );
  addItem( itemSeperateMultiArtist, TQString::fromLatin1( "seperateMultiArtist" ) );
  TDEConfigSkeleton::ItemString  *itemGenericArtist;
  itemGenericArtist = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "genericArtist" ), mGenericArtist, TQString::fromLatin1( "Various Artists" ) );
  addItem( itemGenericArtist, TQString::fromLatin1( "genericArtist" ) );
  TDEConfigSkeleton::ItemString  *itemDelimiter;
  itemDelimiter = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "delimiter" ), mDelimiter, TQString::fromLatin1( " - " ) );
  addItem( itemDelimiter, TQString::fromLatin1( "delimiter" ) );
  TDEConfigSkeleton::ItemBool  *itemFormat_artistTitle;
  itemFormat_artistTitle = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "format_artistTitle" ), mFormat_artistTitle, true );
  addItem( itemFormat_artistTitle, TQString::fromLatin1( "format_artistTitle" ) );
  TDEConfigSkeleton::ItemBool  *itemFormat_titleArtist;
  itemFormat_titleArtist = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "format_titleArtist" ), mFormat_titleArtist, false );
  addItem( itemFormat_titleArtist, TQString::fromLatin1( "format_titleArtist" ) );

  setCurrentGroup( TQString::fromLatin1( "Encoder" ) );

  TDEConfigSkeleton::ItemInt  *itemCurrentEncoder;
  itemCurrentEncoder = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "encoderChoice" ), mCurrentEncoder, 0 );
  addItem( itemCurrentEncoder, TQString::fromLatin1( "currentEncoder" ) );
  TDEConfigSkeleton::ItemInt  *itemLastKnownEncoder;
  itemLastKnownEncoder = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "lastKnownEncoder" ), mLastKnownEncoder, 0 );
  addItem( itemLastKnownEncoder, TQString::fromLatin1( "lastKnownEncoder" ) );
  TDEConfigSkeleton::ItemInt  *itemNumberOfCpus;
  itemNumberOfCpus = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "numberOfCpus" ), mNumberOfCpus, 1 );
  addItem( itemNumberOfCpus, TQString::fromLatin1( "numberOfCpus" ) );
  TDEConfigSkeleton::ItemString  *itemFileFormat;
  itemFileFormat = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "fileFormat" ), mFileFormat, TQString::fromLatin1( "~/%{extension}/%{albumartist}/%{albumtitle}/%{artist} - %{number} - %{title}.%{extension}" ) );
  addItem( itemFileFormat, TQString::fromLatin1( "fileFormat" ) );
  TDEConfigSkeleton::ItemInt  *itemNiceLevel;
  itemNiceLevel = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "NiceLevel" ), mNiceLevel, 0 );
  itemNiceLevel->setMinValue(-19);
  itemNiceLevel->setMaxValue(19);
  addItem( itemNiceLevel, TQString::fromLatin1( "NiceLevel" ) );
  TDEConfigSkeleton::ItemBool  *itemFullDecoderDebug;
  itemFullDecoderDebug = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "FullDecoderDebug" ), mFullDecoderDebug, false );
  addItem( itemFullDecoderDebug, TQString::fromLatin1( "FullDecoderDebug" ) );

  setCurrentGroup( TQString::fromLatin1( "Ripper" ) );

  TDEConfigSkeleton::ItemInt  *itemMaxWavFiles;
  itemMaxWavFiles = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "maxWavFiles" ), mMaxWavFiles, 1 );
  addItem( itemMaxWavFiles, TQString::fromLatin1( "maxWavFiles" ) );
  TDEConfigSkeleton::ItemBool  *itemBeepAfterRip;
  itemBeepAfterRip = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "beepAfterRip" ), mBeepAfterRip, true );
  addItem( itemBeepAfterRip, TQString::fromLatin1( "beepAfterRip" ) );
  TDEConfigSkeleton::ItemBool  *itemAutoEjectAfterRip;
  itemAutoEjectAfterRip = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "autoEjectAfterRip" ), mAutoEjectAfterRip, false );
  addItem( itemAutoEjectAfterRip, TQString::fromLatin1( "autoEjectAfterRip" ) );
  TDEConfigSkeleton::ItemInt  *itemAutoEjectDelay;
  itemAutoEjectDelay = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "autoEjectDelay" ), mAutoEjectDelay, 0 );
  addItem( itemAutoEjectDelay, TQString::fromLatin1( "autoEjectDelay" ) );
  TDEConfigSkeleton::ItemBool  *itemEnableTempDir;
  itemEnableTempDir = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "enableTempDir" ), mEnableTempDir, false );
  addItem( itemEnableTempDir, TQString::fromLatin1( "enableTempDir" ) );
  TDEConfigSkeleton::ItemString  *itemTempDir;
  itemTempDir = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "tempDir" ), mTempDir );
  addItem( itemTempDir, TQString::fromLatin1( "tempDir" ) );
}

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

