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

#include "kmfconfig.h"

#include <kstaticdeleter.h>

using namespace KMF;

KMFConfig *KMFConfig::mSelf = 0;
static KStaticDeleter<KMFConfig> staticKMFConfigDeleter;

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

  return mSelf;
}

KMFConfig::KMFConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kmyfirewallrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "GENERAL" ) );

  TDEConfigSkeleton::ItemBool  *itemFirstRun;
  itemFirstRun = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "FirstRun" ), mFirstRun, true );
  addItem( itemFirstRun, TQString::fromLatin1( "FirstRun" ) );
  TDEConfigSkeleton::ItemBool  *itemConfigurationConverted;
  itemConfigurationConverted = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ConfigurationConverted" ), mConfigurationConverted, false );
  addItem( itemConfigurationConverted, TQString::fromLatin1( "ConfigurationConverted" ) );
  TDEConfigSkeleton::ItemInt  *itemMaxUndo;
  itemMaxUndo = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "MaxUndo" ), mMaxUndo, 100 );
  addItem( itemMaxUndo, TQString::fromLatin1( "MaxUndo" ) );
  TDEConfigSkeleton::ItemBool  *itemShowSplash;
  itemShowSplash = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowSplash" ), mShowSplash, true );
  addItem( itemShowSplash, TQString::fromLatin1( "ShowSplash" ) );
  TDEConfigSkeleton::ItemBool  *itemUseGenericInterface;
  itemUseGenericInterface = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseGenericInterface" ), mUseGenericInterface, true );
  addItem( itemUseGenericInterface, TQString::fromLatin1( "UseGenericInterface" ) );
  TDEConfigSkeleton::ItemBool  *itemUseSSHForLocalhost;
  itemUseSSHForLocalhost = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "UseSSHForLocalhost" ), mUseSSHForLocalhost, false );
  addItem( itemUseSSHForLocalhost, TQString::fromLatin1( "UseSSHForLocalhost" ) );
  TDEConfigSkeleton::ItemString  *itemOS;
  itemOS = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "OS" ), mOS, TQString::fromLatin1( "linux" ) );
  addItem( itemOS, TQString::fromLatin1( "OS" ) );
  TDEConfigSkeleton::ItemString  *itemBackend;
  itemBackend = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Backend" ), mBackend, TQString::fromLatin1( "iptables" ) );
  addItem( itemBackend, TQString::fromLatin1( "Backend" ) );
  TDEConfigSkeleton::ItemBool  *itemShowSelInterface;
  itemShowSelInterface = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowSelInterface" ), mShowSelInterface, true );
  addItem( itemShowSelInterface, TQString::fromLatin1( "ShowSelInterface" ) );

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

  TDEConfigSkeleton::ItemBool  *itemShowDocumentation;
  itemShowDocumentation = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowDocumentation" ), mShowDocumentation, true );
  addItem( itemShowDocumentation, TQString::fromLatin1( "ShowDocumentation" ) );
  TDEConfigSkeleton::ItemBool  *itemShowCommandLine;
  itemShowCommandLine = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowCommandLine" ), mShowCommandLine, false );
  addItem( itemShowCommandLine, TQString::fromLatin1( "ShowCommandLine" ) );
  TDEConfigSkeleton::ItemBool  *itemShowObjectID;
  itemShowObjectID = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "ShowObjectID" ), mShowObjectID, false );
  addItem( itemShowObjectID, TQString::fromLatin1( "ShowObjectID" ) );

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

  TDEConfigSkeleton::ItemString  *itemDistribution;
  itemDistribution = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Distribution" ), mDistribution, TQString::fromLatin1( "sysv" ) );
  addItem( itemDistribution, TQString::fromLatin1( "Distribution" ) );
  TDEConfigSkeleton::ItemString  *itemInitPath;
  itemInitPath = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "InitPath" ), mInitPath, TQString::fromLatin1( "/etc/init.d/" ) );
  addItem( itemInitPath, TQString::fromLatin1( "InitPath" ) );
  TDEConfigSkeleton::ItemString  *itemRcDefaultPath;
  itemRcDefaultPath = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "rcDefaultPath" ), mRcDefaultPath, TQString::fromLatin1( "/etc/init.d/rc5.d/" ) );
  addItem( itemRcDefaultPath, TQString::fromLatin1( "rcDefaultPath" ) );
  TDEConfigSkeleton::ItemString  *itemIPTPath;
  itemIPTPath = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "IPTPath" ), mIPTPath, TQString::fromLatin1( "/usr/sbin/iptables" ) );
  addItem( itemIPTPath, TQString::fromLatin1( "IPTPath" ) );
  TDEConfigSkeleton::ItemString  *itemModprobePath;
  itemModprobePath = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "ModprobePath" ), mModprobePath, TQString::fromLatin1( "/usr/sbin/modprobe" ) );
  addItem( itemModprobePath, TQString::fromLatin1( "ModprobePath" ) );
  TDEConfigSkeleton::ItemString  *itemCurrentConfiguration;
  itemCurrentConfiguration = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CurrentConfiguration" ), mCurrentConfiguration );
  addItem( itemCurrentConfiguration, TQString::fromLatin1( "CurrentConfiguration" ) );

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

  TQStringList defaultInterfaces;
  defaultInterfaces.append( TQString::fromUtf8( "lo" ) );

  TDEConfigSkeleton::ItemStringList  *itemInterfaces;
  itemInterfaces = new TDEConfigSkeleton::ItemStringList( currentGroup(), TQString::fromLatin1( "Interfaces" ), mInterfaces, defaultInterfaces );
  addItem( itemInterfaces, TQString::fromLatin1( "Interfaces" ) );
}

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

