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

#include "AutomounterSettingsBase.h"

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

class AutomounterSettingsBaseHelper
{
  public:
    AutomounterSettingsBaseHelper() : q(0) {}
    ~AutomounterSettingsBaseHelper() { delete q; }
    AutomounterSettingsBase *q;
};
K_GLOBAL_STATIC(AutomounterSettingsBaseHelper, s_globalAutomounterSettingsBase)
AutomounterSettingsBase *AutomounterSettingsBase::self()
{
  if (!s_globalAutomounterSettingsBase->q) {
    new AutomounterSettingsBase;
    s_globalAutomounterSettingsBase->q->readConfig();
  }

  return s_globalAutomounterSettingsBase->q;
}

AutomounterSettingsBase::AutomounterSettingsBase(  )
  : KConfigSkeleton( QLatin1String( "kded_device_automounterrc" ) )
{
  Q_ASSERT(!s_globalAutomounterSettingsBase->q);
  s_globalAutomounterSettingsBase->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

  KConfigSkeleton::ItemBool  *itemAutomountOnLogin;
  itemAutomountOnLogin = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutomountOnLogin" ), mAutomountOnLogin, true );
  addItem( itemAutomountOnLogin, QLatin1String( "AutomountOnLogin" ) );
  KConfigSkeleton::ItemBool  *itemAutomountOnPlugin;
  itemAutomountOnPlugin = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutomountOnPlugin" ), mAutomountOnPlugin, true );
  addItem( itemAutomountOnPlugin, QLatin1String( "AutomountOnPlugin" ) );
  KConfigSkeleton::ItemBool  *itemAutomountUnknownDevices;
  itemAutomountUnknownDevices = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutomountUnknownDevices" ), mAutomountUnknownDevices, false );
  addItem( itemAutomountUnknownDevices, QLatin1String( "AutomountUnknownDevices" ) );
  KConfigSkeleton::ItemBool  *itemAutomountEnabled;
  itemAutomountEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutomountEnabled" ), mAutomountEnabled, false );
  addItem( itemAutomountEnabled, QLatin1String( "AutomountEnabled" ) );
}

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

