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

#include "settings.h"

#include <kstaticdeleter.h>

using namespace DNSSD;

Configuration *Configuration::mSelf = 0;
static KStaticDeleter<Configuration> staticConfigurationDeleter;

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

  return mSelf;
}

Configuration::Configuration(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "tdednssdrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "browsing" ) );

  TDEConfigSkeleton::ItemStringList  *itemDomainList;
  itemDomainList = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "DomainList" ), mDomainList );
  addItem( itemDomainList, TQString::fromLatin1( "DomainList" ) );
  TDEConfigSkeleton::ItemBool  *itemBrowseLocal;
  itemBrowseLocal = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "BrowseLocal" ), mBrowseLocal, true );
  addItem( itemBrowseLocal, TQString::fromLatin1( "BrowseLocal" ) );
  TDEConfigSkeleton::ItemBool  *itemRecursive;
  itemRecursive = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "Recursive" ), mRecursive, false );
  addItem( itemRecursive, TQString::fromLatin1( "Recursive" ) );

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

  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesPublishType;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "LAN" );
    valuesPublishType.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "WAN" );
    valuesPublishType.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemPublishType;
  itemPublishType = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "PublishType" ), mPublishType, valuesPublishType, EnumPublishType::LAN );
  addItem( itemPublishType, TQString::fromLatin1( "PublishType" ) );
  TDEConfigSkeleton::ItemString  *itemPublishDomain;
  itemPublishDomain = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "PublishDomain" ), mPublishDomain );
  addItem( itemPublishDomain, TQString::fromLatin1( "PublishDomain" ) );
}

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

