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

#include "pass.h"

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

class KCFGPasswordHelper
{
  public:
    KCFGPasswordHelper() : q(0) {}
    ~KCFGPasswordHelper() { delete q; }
    KCFGPassword *q;
};
K_GLOBAL_STATIC(KCFGPasswordHelper, s_globalKCFGPassword)
KCFGPassword *KCFGPassword::self()
{
  if (!s_globalKCFGPassword->q) {
    new KCFGPassword;
    s_globalKCFGPassword->q->readConfig();
  }

  return s_globalKCFGPassword->q;
}

KCFGPassword::KCFGPassword(  )
  : KConfigSkeleton( QLatin1String( "kdeglobals" ) )
{
  Q_ASSERT(!s_globalKCFGPassword->q);
  s_globalKCFGPassword->q = this;
  setCurrentGroup( QLatin1String( "Passwords" ) );

  QList<KConfigSkeleton::ItemEnum::Choice2> valuesEchoMode;
  {
    KConfigSkeleton::ItemEnum::Choice2 choice;
    choice.name = QLatin1String("OneStar");
    valuesEchoMode.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice2 choice;
    choice.name = QLatin1String("ThreeStars");
    valuesEchoMode.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice2 choice;
    choice.name = QLatin1String("NoEcho");
    valuesEchoMode.append( choice );
  }
  KConfigSkeleton::ItemEnum  *itemEchoMode;
  itemEchoMode = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "EchoMode" ), mEchoMode, valuesEchoMode, EnumEchoMode::OneStar );
  addItem( itemEchoMode, QLatin1String( "EchoMode" ) );
}

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

