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

#include "planworksettings.h"

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

class PlanWorkSettingsHelper
{
  public:
    PlanWorkSettingsHelper() : q(0) {}
    ~PlanWorkSettingsHelper() { delete q; }
    PlanWorkSettings *q;
};
K_GLOBAL_STATIC(PlanWorkSettingsHelper, s_globalPlanWorkSettings)
PlanWorkSettings *PlanWorkSettings::self()
{
  if (!s_globalPlanWorkSettings->q) {
    new PlanWorkSettings;
    s_globalPlanWorkSettings->q->readConfig();
  }

  return s_globalPlanWorkSettings->q;
}

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

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

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

