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

#include "AutomounterSettingsBase.h"

#include <qglobal.h>
#include <QFile>

class AutomounterSettingsBaseHelper
{
  public:
    AutomounterSettingsBaseHelper() : q(nullptr) {}
    ~AutomounterSettingsBaseHelper() { delete q; }
    AutomounterSettingsBaseHelper(const AutomounterSettingsBaseHelper&) = delete;
    AutomounterSettingsBaseHelper& operator=(const AutomounterSettingsBaseHelper&) = delete;
    AutomounterSettingsBase *q;
};
Q_GLOBAL_STATIC(AutomounterSettingsBaseHelper, s_globalAutomounterSettingsBase)
AutomounterSettingsBase *AutomounterSettingsBase::self()
{
  if (!s_globalAutomounterSettingsBase()->q) {
    new AutomounterSettingsBase;
    s_globalAutomounterSettingsBase()->q->read();
  }

  return s_globalAutomounterSettingsBase()->q;
}

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

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

AutomounterSettingsBase::~AutomounterSettingsBase()
{
  s_globalAutomounterSettingsBase()->q = nullptr;
}

