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

#include "settings.h"

#include <kglobal.h>
#include <QtCore/QFile>

class KCFGUserAccountHelper
{
  public:
    KCFGUserAccountHelper() : q(0) {}
    ~KCFGUserAccountHelper() { delete q; }
    KCFGUserAccount *q;
};
K_GLOBAL_STATIC(KCFGUserAccountHelper, s_globalKCFGUserAccount)
KCFGUserAccount *KCFGUserAccount::self()
{
  if (!s_globalKCFGUserAccount->q) {
    new KCFGUserAccount;
    s_globalKCFGUserAccount->q->readConfig();
  }

  return s_globalKCFGUserAccount->q;
}

KCFGUserAccount::KCFGUserAccount(  )
  : KConfigSkeleton( QLatin1String( "kdm/kdmrc" ) )
{
  Q_ASSERT(!s_globalKCFGUserAccount->q);
  s_globalKCFGUserAccount->q = this;
  setCurrentGroup( QLatin1String( "X-*-Greeter" ) );

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

KCFGUserAccount::~KCFGUserAccount()
{
  if (!s_globalKCFGUserAccount.isDestroyed()) {
    s_globalKCFGUserAccount->q = 0;
  }
}

