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

#include "historyconfig.h"

#include <kstaticdeleter.h>

HistoryConfig *HistoryConfig::mSelf = 0;
static KStaticDeleter<HistoryConfig> staticHistoryConfigDeleter;

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

  return mSelf;
}

HistoryConfig::HistoryConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kopeterc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "History Plugin" ) );

  TDEConfigSkeleton::ItemBool  *itemAuto_chatwindow;
  itemAuto_chatwindow = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Auto_chatwindow" ), mAuto_chatwindow, false );
  addItem( itemAuto_chatwindow, TQString::fromLatin1( "Auto_chatwindow" ) );
  TDEConfigSkeleton::ItemUInt  *itemNumber_Auto_chatwindow;
  itemNumber_Auto_chatwindow = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "Number_Auto_chatwindow" ), mNumber_Auto_chatwindow, 7 );
  addItem( itemNumber_Auto_chatwindow, TQString::fromLatin1( "Number_Auto_chatwindow" ) );
  TDEConfigSkeleton::ItemUInt  *itemNumber_ChatWindow;
  itemNumber_ChatWindow = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "Number_ChatWindow" ), mNumber_ChatWindow, 20 );
  addItem( itemNumber_ChatWindow, TQString::fromLatin1( "Number_ChatWindow" ) );
  TDEConfigSkeleton::ItemColor  *itemHistory_color;
  itemHistory_color = new TDEConfigSkeleton::ItemColor( currentGroup(), TQString::fromLatin1( "History_color" ), mHistory_color, TQColor( 170, 170, 127 ) );
  addItem( itemHistory_color, TQString::fromLatin1( "History_color" ) );
  TDEConfigSkeleton::ItemPath  *itemBrowserStyle;
  itemBrowserStyle = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "BrowserStyle" ), mBrowserStyle );
  addItem( itemBrowserStyle, TQString::fromLatin1( "BrowserStyle" ) );
}

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

