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

#include "sidebarsettings.h"

#include <kstaticdeleter.h>

using namespace KSB_News;

SidebarSettings *SidebarSettings::mSelf = 0;
static KStaticDeleter<SidebarSettings> staticSidebarSettingsDeleter;

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

  return mSelf;
}

SidebarSettings::SidebarSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "konq_sidebarnewsrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "RSS sources" ) );

  TQStringList defaultSources;
  defaultSources.append( TQString::fromUtf8( "http://www.kde.org/dotkdeorg.rdf" ) );

  TDEConfigSkeleton::ItemStringList  *itemSources;
  itemSources = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "Sources" ), mSources, defaultSources );
  addItem( itemSources, TQString::fromLatin1( "Sources" ) );
}

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

