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

#include "xmlstoragesettings.h"

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

class XMLStorageSettingsHelper
{
  public:
    XMLStorageSettingsHelper() : q(0) {}
    ~XMLStorageSettingsHelper() { delete q; }
    XMLStorageSettings *q;
};
Q_GLOBAL_STATIC(XMLStorageSettingsHelper, s_globalXMLStorageSettings)
XMLStorageSettings *XMLStorageSettings::self()
{
  if (!s_globalXMLStorageSettings()->q) {
    new XMLStorageSettings;
    s_globalXMLStorageSettings()->q->read();
  }

  return s_globalXMLStorageSettings()->q;
}

XMLStorageSettings::XMLStorageSettings(  )
  : KConfigSkeleton( QStringLiteral( "kmymoney/kmymoneyrc" ) )
{
  Q_ASSERT(!s_globalXMLStorageSettings()->q);
  s_globalXMLStorageSettings()->q = this;
}

XMLStorageSettings::~XMLStorageSettings()
{
  s_globalXMLStorageSettings()->q = 0;
}

