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

#include "nowlisteningconfig.h"

#include <kstaticdeleter.h>

NowListeningConfig *NowListeningConfig::mSelf = 0;
static KStaticDeleter<NowListeningConfig> staticNowListeningConfigDeleter;

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

  return mSelf;
}

NowListeningConfig::NowListeningConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kopeterc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Now Listening Plugin" ) );

  TDEConfigSkeleton::ItemString  *itemHeader;
  itemHeader = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Header" ), mHeader, i18n("Now listening to:") );
  addItem( itemHeader, TQString::fromLatin1( "Header" ) );
  TDEConfigSkeleton::ItemString  *itemPerTrack;
  itemPerTrack = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "PerTrack" ), mPerTrack, i18n("%track( by %artist)( on %album)") );
  addItem( itemPerTrack, TQString::fromLatin1( "PerTrack" ) );
  TDEConfigSkeleton::ItemString  *itemConjunction;
  itemConjunction = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Conjunction" ), mConjunction, i18n(", and ") );
  addItem( itemConjunction, TQString::fromLatin1( "Conjunction" ) );
  TDEConfigSkeleton::ItemBool  *itemExplicitAdvertising;
  itemExplicitAdvertising = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ExplicitAdvertising" ), mExplicitAdvertising, true );
  addItem( itemExplicitAdvertising, TQString::fromLatin1( "ExplicitAdvertising" ) );
  TDEConfigSkeleton::ItemBool  *itemChatAdvertising;
  itemChatAdvertising = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ChatAdvertising" ), mChatAdvertising, false );
  addItem( itemChatAdvertising, TQString::fromLatin1( "ChatAdvertising" ) );
  TDEConfigSkeleton::ItemBool  *itemStatusAdvertising;
  itemStatusAdvertising = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "StatusAdvertising" ), mStatusAdvertising, false );
  addItem( itemStatusAdvertising, TQString::fromLatin1( "StatusAdvertising" ) );
  TDEConfigSkeleton::ItemBool  *itemAppendStatusAdvertising;
  itemAppendStatusAdvertising = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AppendStatusAdvertising" ), mAppendStatusAdvertising, false );
  addItem( itemAppendStatusAdvertising, TQString::fromLatin1( "AppendStatusAdvertising" ) );
  TDEConfigSkeleton::ItemBool  *itemUseSpecifiedMediaPlayer;
  itemUseSpecifiedMediaPlayer = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseSpecifiedMediaPlayer" ), mUseSpecifiedMediaPlayer, false );
  addItem( itemUseSpecifiedMediaPlayer, TQString::fromLatin1( "UseSpecifiedMediaPlayer" ) );
  TDEConfigSkeleton::ItemInt  *itemSelectedMediaPlayer;
  itemSelectedMediaPlayer = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "SelectedMediaPlayer" ), mSelectedMediaPlayer );
  addItem( itemSelectedMediaPlayer, TQString::fromLatin1( "SelectedMediaPlayer" ) );
}

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

