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

#include "calligraplanworksettings.h"

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

class PlanWorkSettingsHelper
{
  public:
    PlanWorkSettingsHelper() : q(nullptr) {}
    ~PlanWorkSettingsHelper() { delete q; }
    PlanWorkSettings *q;
};
Q_GLOBAL_STATIC(PlanWorkSettingsHelper, s_globalPlanWorkSettings)
PlanWorkSettings *PlanWorkSettings::self()
{
  if (!s_globalPlanWorkSettings()->q) {
    new PlanWorkSettings;
    s_globalPlanWorkSettings()->q->read();
  }

  return s_globalPlanWorkSettings()->q;
}

PlanWorkSettings::PlanWorkSettings(  )
  : KConfigSkeleton( QStringLiteral( "calligraplanworkrc" ) )
{
  Q_ASSERT(!s_globalPlanWorkSettings()->q);
  s_globalPlanWorkSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Views" ) );

  KConfigSkeleton::ItemInt  *itemCurrentView;
  itemCurrentView = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "CurrentView" ), mCurrentView );
  addItem( itemCurrentView, QStringLiteral( "CurrentView" ) );
  KConfigSkeleton::ItemString  *itemTaskWorkPackageView;
  itemTaskWorkPackageView = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "TaskWorkPackageView" ), mTaskWorkPackageView );
  addItem( itemTaskWorkPackageView, QStringLiteral( "TaskWorkPackageView" ) );
  KConfigSkeleton::ItemString  *itemTaskWPGanttView;
  itemTaskWPGanttView = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "TaskWPGanttView" ), mTaskWPGanttView );
  addItem( itemTaskWPGanttView, QStringLiteral( "TaskWPGanttView" ) );
}

PlanWorkSettings::~PlanWorkSettings()
{
  s_globalPlanWorkSettings()->q = nullptr;
}

