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

#include "skgfile_settings.h"

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

class skgfile_settingsHelper
{
  public:
    skgfile_settingsHelper() : q(0) {}
    ~skgfile_settingsHelper() { delete q; }
    skgfile_settings *q;
};
K_GLOBAL_STATIC(skgfile_settingsHelper, s_globalskgfile_settings)
skgfile_settings *skgfile_settings::self()
{
  if (!s_globalskgfile_settings->q) {
    new skgfile_settings;
    s_globalskgfile_settings->q->readConfig();
  }

  return s_globalskgfile_settings->q;
}

skgfile_settings::skgfile_settings(  )
  : KConfigSkeleton()
{
  Q_ASSERT(!s_globalskgfile_settings->q);
  s_globalskgfile_settings->q = this;
  setCurrentGroup( QLatin1String( "File" ) );

  KConfigSkeleton::ItemBool  *itemOpenlastfile;
  itemOpenlastfile = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "openlastfile" ), mOpenlastfile, true );
  addItem( itemOpenlastfile, QLatin1String( "openlastfile" ) );
  KConfigSkeleton::ItemBool  *itemSaveonclose;
  itemSaveonclose = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "saveonclose" ), mSaveonclose, false );
  addItem( itemSaveonclose, QLatin1String( "saveonclose" ) );
  KConfigSkeleton::ItemBool  *itemStoreInKdeWallet;
  itemStoreInKdeWallet = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "storeInKdeWallet" ), mStoreInKdeWallet, false );
  addItem( itemStoreInKdeWallet, QLatin1String( "storeInKdeWallet" ) );
  KConfigSkeleton::ItemString  *itemSelectedWallet;
  itemSelectedWallet = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "selectedWallet" ), mSelectedWallet, QLatin1String( "kdewallet" ) );
  addItem( itemSelectedWallet, QLatin1String( "selectedWallet" ) );
  KConfigSkeleton::ItemBool  *itemBackup_enabled;
  itemBackup_enabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "backup_enabled" ), mBackup_enabled, true );
  addItem( itemBackup_enabled, QLatin1String( "backup_enabled" ) );
  KConfigSkeleton::ItemString  *itemPrefix;
  itemPrefix = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "prefix" ), mPrefix );
  addItem( itemPrefix, QLatin1String( "prefix" ) );
  KConfigSkeleton::ItemString  *itemSuffix;
  itemSuffix = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "suffix" ), mSuffix, QLatin1String( ".old" ) );
  addItem( itemSuffix, QLatin1String( "suffix" ) );
  KConfigSkeleton::ItemPath  *itemLastfilepath;
  itemLastfilepath = new KConfigSkeleton::ItemPath( currentGroup(), QLatin1String( "lastfilepath" ), mLastfilepath );
  addItem( itemLastfilepath, QLatin1String( "lastfilepath" ) );
}

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

