// This file is generated by tdeconfig_compiler from kscd.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( "kscdrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "GENERAL" ) );

  TDEConfigSkeleton::ItemUInt  *itemVolume;
  itemVolume = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "Volume" ), mVolume, 40 );
  addItem( itemVolume, TQString::fromLatin1( "Volume" ) );
  TDEConfigSkeleton::ItemBool  *itemRandomPlay;
  itemRandomPlay = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "RandomPlay" ), mRandomPlay, false );
  addItem( itemRandomPlay, TQString::fromLatin1( "RandomPlay" ) );
  TDEConfigSkeleton::ItemBool  *itemDocking;
  itemDocking = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DOCKING" ), mDocking, true );
  addItem( itemDocking, TQString::fromLatin1( "Docking" ) );
  TDEConfigSkeleton::ItemBool  *itemTrackAnnouncement;
  itemTrackAnnouncement = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TrackAnnouncement" ), mTrackAnnouncement, false );
  addItem( itemTrackAnnouncement, TQString::fromLatin1( "TrackAnnouncement" ) );
  TDEConfigSkeleton::ItemBool  *itemAutoplay;
  itemAutoplay = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AUTOPLAY" ), mAutoplay, false );
  addItem( itemAutoplay, TQString::fromLatin1( "Autoplay" ) );
  TDEConfigSkeleton::ItemBool  *itemStopExit;
  itemStopExit = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "STOPEXIT" ), mStopExit, true );
  addItem( itemStopExit, TQString::fromLatin1( "StopExit" ) );
  TDEConfigSkeleton::ItemBool  *itemEjectOnFinish;
  itemEjectOnFinish = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "EJECTONFINISH" ), mEjectOnFinish, false );
  addItem( itemEjectOnFinish, TQString::fromLatin1( "EjectOnFinish" ) );
  TDEConfigSkeleton::ItemBool  *itemLooping;
  itemLooping = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Looping" ), mLooping, false );
  addItem( itemLooping, TQString::fromLatin1( "Looping" ) );
  TDEConfigSkeleton::ItemUInt  *itemSkipDelta;
  itemSkipDelta = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "SkipDelta" ), mSkipDelta, 30 );
  addItem( itemSkipDelta, TQString::fromLatin1( "SkipDelta" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesTimeDisplayMode;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "TRACK_SEC" );
    valuesTimeDisplayMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "TRACK_REM" );
    valuesTimeDisplayMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "TOTAL_SEC" );
    valuesTimeDisplayMode.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "TOTAL_REM" );
    valuesTimeDisplayMode.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemTimeDisplayMode;
  itemTimeDisplayMode = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "TimeDisplay" ), mTimeDisplayMode, valuesTimeDisplayMode, EnumTimeDisplayMode::TRACK_SEC );
  addItem( itemTimeDisplayMode, TQString::fromLatin1( "TimeDisplayMode" ) );
  TDEConfigSkeleton::ItemString  *itemCdDevice;
  itemCdDevice = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CDDevice" ), mCdDevice );
  addItem( itemCdDevice, TQString::fromLatin1( "cdDevice" ) );
  TDEConfigSkeleton::ItemString  *itemAudioSystem;
  itemAudioSystem = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "AudioSystem" ), mAudioSystem );
  addItem( itemAudioSystem, TQString::fromLatin1( "AudioSystem" ) );
  TDEConfigSkeleton::ItemString  *itemAudioDevice;
  itemAudioDevice = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "AudioDevice" ), mAudioDevice );
  addItem( itemAudioDevice, TQString::fromLatin1( "AudioDevice" ) );
  TDEConfigSkeleton::ItemBool  *itemDigitalPlayback;
  itemDigitalPlayback = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DigitalPlayback" ), mDigitalPlayback, true );
  addItem( itemDigitalPlayback, TQString::fromLatin1( "DigitalPlayback" ) );
  TDEConfigSkeleton::ItemColor  *itemLedColor;
  itemLedColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "ledColor" ), mLedColor, TQColor( "#e2e0ff" ) );
  addItem( itemLedColor, TQString::fromLatin1( "ledColor" ) );
  TDEConfigSkeleton::ItemFont  *itemLedFont;
  itemLedFont = new TDEConfigSkeleton::ItemFont( currentGroup(), TQString::fromLatin1( "ledFont" ), mLedFont, TQFont(TDEGlobalSettings::generalFont().family(), 10, TQFont::Bold) );
  addItem( itemLedFont, TQString::fromLatin1( "ledFont" ) );
  TDEConfigSkeleton::ItemColor  *itemBackColor;
  itemBackColor = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "BackColor" ), mBackColor, TQColor( "black" ) );
  addItem( itemBackColor, TQString::fromLatin1( "BackColor" ) );
  TDEConfigSkeleton::ItemBool  *itemSelectEncoding;
  itemSelectEncoding = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SelectEncoding" ), mSelectEncoding, false );
  addItem( itemSelectEncoding, TQString::fromLatin1( "SelectEncoding" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesSelectedEncoding;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "AUTO" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "utf8" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1250" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1251" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1252" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1253" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1254" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1255" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1256" );
    valuesSelectedEncoding.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "CP1257" );
    valuesSelectedEncoding.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSelectedEncoding;
  itemSelectedEncoding = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "SelectedEncoding" ), mSelectedEncoding, valuesSelectedEncoding, EnumSelectedEncoding::utf8 );
  addItem( itemSelectedEncoding, TQString::fromLatin1( "SelectedEncoding" ) );
}

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

