// This file is generated by kconfig_compiler from plasma-shell-desktop.kcfg.
// All changes you do to this file will be lost.

#include "plasma-shell-desktop.h"

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

class AppSettingsHelper
{
  public:
    AppSettingsHelper() : q(0) {}
    ~AppSettingsHelper() { delete q; }
    AppSettings *q;
};
K_GLOBAL_STATIC(AppSettingsHelper, s_globalAppSettings)
AppSettings *AppSettings::self()
{
  if (!s_globalAppSettings->q) {
    new AppSettings;
    s_globalAppSettings->q->readConfig();
  }

  return s_globalAppSettings->q;
}

AppSettings::AppSettings(  )
  : KConfigSkeleton()
{
  Q_ASSERT(!s_globalAppSettings->q);
  s_globalAppSettings->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

  KConfigSkeleton::ItemFont  *itemDesktopFont;
  itemDesktopFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "desktopFont" ), mDesktopFont, qApp->font() );
  addItem( itemDesktopFont, QLatin1String( "desktopFont" ) );
  KConfigSkeleton::ItemBool  *itemPerVirtualDesktopViews;
  itemPerVirtualDesktopViews = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "perVirtualDesktopViews" ), mPerVirtualDesktopViews, false );
  addItem( itemPerVirtualDesktopViews, QLatin1String( "perVirtualDesktopViews" ) );
}

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

