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

#include "smpppdcsconfig.h"

#include <kstaticdeleter.h>

SMPPPDCSConfig *SMPPPDCSConfig::mSelf = 0;
static KStaticDeleter<SMPPPDCSConfig> staticSMPPPDCSConfigDeleter;

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

  return mSelf;
}

SMPPPDCSConfig::SMPPPDCSConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kopeterc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "SMPPPDCS Plugin" ) );

  TDEConfigSkeleton::ItemString  *itemPassword;
  itemPassword = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Password" ), mPassword );
  addItem( itemPassword, TQString::fromLatin1( "Password" ) );
  TDEConfigSkeleton::ItemStringList  *itemIgnoredAccounts;
  itemIgnoredAccounts = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "ignoredAccounts" ), mIgnoredAccounts );
  addItem( itemIgnoredAccounts, TQString::fromLatin1( "ignoredAccounts" ) );
  TDEConfigSkeleton::ItemString  *itemServer;
  itemServer = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "server" ), mServer, TQString::fromLatin1( "localhost" ) );
  addItem( itemServer, TQString::fromLatin1( "server" ) );
  TDEConfigSkeleton::ItemUInt  *itemPort;
  itemPort = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "port" ), mPort, 3185 );
  addItem( itemPort, TQString::fromLatin1( "port" ) );
  TDEConfigSkeleton::ItemBool  *itemUseNetstat;
  itemUseNetstat = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useNetstat" ), mUseNetstat, true );
  addItem( itemUseNetstat, TQString::fromLatin1( "useNetstat" ) );
  TDEConfigSkeleton::ItemBool  *itemUseSmpppd;
  itemUseSmpppd = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "useSmpppd" ), mUseSmpppd, false );
  addItem( itemUseSmpppd, TQString::fromLatin1( "useSmpppd" ) );
}

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

