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

#include "pluginsettings.h"

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

class PluginSettingsHelper
{
  public:
    PluginSettingsHelper() : q(0) {}
    ~PluginSettingsHelper() { delete q; }
    PluginSettings *q;
};
K_GLOBAL_STATIC(PluginSettingsHelper, s_globalPluginSettings)
PluginSettings *PluginSettings::self()
{
  if (!s_globalPluginSettings->q) {
    new PluginSettings;
    s_globalPluginSettings->q->readConfig();
  }

  return s_globalPluginSettings->q;
}

PluginSettings::PluginSettings(  )
  : KConfigSkeleton( QLatin1String( "icalendarexportpluginrc" ) )
{
  Q_ASSERT(!s_globalPluginSettings->q);
  s_globalPluginSettings->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

  KConfigSkeleton::ItemBool  *itemCreateAlarm;
  itemCreateAlarm = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "createAlarm" ), mCreateAlarm, TRUE );
  addItem( itemCreateAlarm, QLatin1String( "createAlarm" ) );
  KConfigSkeleton::ItemInt  *itemBeforeAfter;
  itemBeforeAfter = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "beforeAfter" ), mBeforeAfter, 0 );
  addItem( itemBeforeAfter, QLatin1String( "beforeAfter" ) );
  KConfigSkeleton::ItemInt  *itemTimeUnits;
  itemTimeUnits = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "timeUnits" ), mTimeUnits, 1 );
  addItem( itemTimeUnits, QLatin1String( "timeUnits" ) );
  KConfigSkeleton::ItemInt  *itemTimeUnitInSeconds;
  itemTimeUnitInSeconds = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "timeUnitInSeconds" ), mTimeUnitInSeconds, 2 );
  addItem( itemTimeUnitInSeconds, QLatin1String( "timeUnitInSeconds" ) );
  KConfigSkeleton::ItemBool  *itemRepeatingReminders;
  itemRepeatingReminders = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "repeatingReminders" ), mRepeatingReminders, TRUE );
  addItem( itemRepeatingReminders, QLatin1String( "repeatingReminders" ) );
  KConfigSkeleton::ItemInt  *itemIntervalBetweenRemindersTimeUnits;
  itemIntervalBetweenRemindersTimeUnits = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "intervalBetweenRemindersTimeUnits" ), mIntervalBetweenRemindersTimeUnits, 60 );
  addItem( itemIntervalBetweenRemindersTimeUnits, QLatin1String( "intervalBetweenRemindersTimeUnits" ) );
  KConfigSkeleton::ItemInt  *itemIntervalBetweenRemindersTimeUnitInSeconds;
  itemIntervalBetweenRemindersTimeUnitInSeconds = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "intervalBetweenRemindersTimeUnitInSeconds" ), mIntervalBetweenRemindersTimeUnitInSeconds, 0 );
  addItem( itemIntervalBetweenRemindersTimeUnitInSeconds, QLatin1String( "intervalBetweenRemindersTimeUnitInSeconds" ) );
  KConfigSkeleton::ItemInt  *itemNumberOfReminders;
  itemNumberOfReminders = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "numberOfReminders" ), mNumberOfReminders, 1 );
  addItem( itemNumberOfReminders, QLatin1String( "numberOfReminders" ) );
  KConfigSkeleton::ItemString  *itemIcalendarFile;
  itemIcalendarFile = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "icalendarFile" ), mIcalendarFile );
  addItem( itemIcalendarFile, QLatin1String( "icalendarFile" ) );
}

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

