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

#include "LayoutSettings.h"

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

class LayoutSettingsHelper
{
  public:
    LayoutSettingsHelper() : q(0) {}
    ~LayoutSettingsHelper() { delete q; }
    LayoutSettings *q;
};
K_GLOBAL_STATIC(LayoutSettingsHelper, s_globalLayoutSettings)
LayoutSettings *LayoutSettings::self()
{
  if (!s_globalLayoutSettings->q) {
    new LayoutSettings;
    s_globalLayoutSettings->q->readConfig();
  }

  return s_globalLayoutSettings->q;
}

LayoutSettings::LayoutSettings(  )
  : KConfigSkeleton( QLatin1String( "device_automounter_kcmrc" ) )
{
  Q_ASSERT(!s_globalLayoutSettings->q);
  s_globalLayoutSettings->q = this;
  setCurrentGroup( QLatin1String( "Layout" ) );

  QList<int> defaultHeaderWidths;

  KConfigSkeleton::ItemIntList  *itemHeaderWidths;
  itemHeaderWidths = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "HeaderWidths" ), mHeaderWidths, defaultHeaderWidths );
  addItem( itemHeaderWidths, QLatin1String( "HeaderWidths" ) );
  KConfigSkeleton::ItemBool  *itemAttachedExpanded;
  itemAttachedExpanded = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AttachedExpanded" ), mAttachedExpanded, true );
  addItem( itemAttachedExpanded, QLatin1String( "AttachedExpanded" ) );
  KConfigSkeleton::ItemBool  *itemDetatchedExpanded;
  itemDetatchedExpanded = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "DetatchedExpanded" ), mDetatchedExpanded, false );
  addItem( itemDetatchedExpanded, QLatin1String( "DetatchedExpanded" ) );
}

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

