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

#include "settings.h"

#include <kstaticdeleter.h>

KCFGUserAccount *KCFGUserAccount::mSelf = 0;
static KStaticDeleter<KCFGUserAccount> staticKCFGUserAccountDeleter;

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

  return mSelf;
}

KCFGUserAccount::KCFGUserAccount(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "tdm/tdmrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "X-*-Greeter" ) );

  TDEConfigSkeleton::ItemPath  *itemFaceDir;
  itemFaceDir = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "faceDir" ), mFaceDir, 
				TDEGlobal::dirs()->resourceDirs("data").last() + "tdm/faces"  + '/'
			 );
  addItem( itemFaceDir, TQString::fromLatin1( "faceDir" ) );
  TDEConfigSkeleton::ItemPath  *itemUserFaceDir;
  itemUserFaceDir = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "UserFaceDir" ), mUserFaceDir, TQString::fromLatin1( "$HOME/.faces/" ) );
  addItem( itemUserFaceDir, TQString::fromLatin1( "UserFaceDir" ) );
  TDEConfigSkeleton::ItemString  *itemFaceSource;
  itemFaceSource = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "FaceSource" ), mFaceSource, TQString::fromLatin1( "PreferAdmin" ) );
  addItem( itemFaceSource, TQString::fromLatin1( "FaceSource" ) );
  TDEConfigSkeleton::ItemInt  *itemFaceSize;
  itemFaceSize = new TDEConfigSkeleton::ItemInt( currentGroup(), TQString::fromLatin1( "FaceSize" ), mFaceSize, 64 );
  addItem( itemFaceSize, TQString::fromLatin1( "FaceSize" ) );
  TDEConfigSkeleton::ItemPath  *itemDefaultFile;
  itemDefaultFile = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "DefaultFile" ), mDefaultFile, TQString::fromLatin1( ".default.face.icon" ) );
  addItem( itemDefaultFile, TQString::fromLatin1( "DefaultFile" ) );
  TDEConfigSkeleton::ItemPath  *itemCustomFaceFile;
  itemCustomFaceFile = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "CustomFaceFile" ), mCustomFaceFile, TQString::fromLatin1( "Custom.png" ) );
  addItem( itemCustomFaceFile, TQString::fromLatin1( "CustomFaceFile" ) );
  TDEConfigSkeleton::ItemPath  *itemFaceFile;
  itemFaceFile = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "FaceFile" ), mFaceFile, TQString::fromLatin1( "$HOME/.face.icon" ) );
  addItem( itemFaceFile, TQString::fromLatin1( "FaceFile" ) );
  TDEConfigSkeleton::ItemString  *itemCustomKey;
  itemCustomKey = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CustomKey" ), mCustomKey, TQString::fromLatin1( "Zz_custom" ) );
  addItem( itemCustomKey, TQString::fromLatin1( "CustomKey" ) );
}

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

