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

#include "followupreminderagentsettings.h"

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

class FollowUpReminderAgentSettingsHelper
{
  public:
    FollowUpReminderAgentSettingsHelper() : q(nullptr) {}
    ~FollowUpReminderAgentSettingsHelper() { delete q; }
    FollowUpReminderAgentSettings *q;
};
Q_GLOBAL_STATIC(FollowUpReminderAgentSettingsHelper, s_globalFollowUpReminderAgentSettings)
FollowUpReminderAgentSettings *FollowUpReminderAgentSettings::self()
{
  if (!s_globalFollowUpReminderAgentSettings()->q) {
    new FollowUpReminderAgentSettings;
    s_globalFollowUpReminderAgentSettings()->q->read();
  }

  return s_globalFollowUpReminderAgentSettings()->q;
}

FollowUpReminderAgentSettings::FollowUpReminderAgentSettings(  )
  : KConfigSkeleton( QStringLiteral( "akonadi_followupreminder_agentrc" ) )
{
  Q_ASSERT(!s_globalFollowUpReminderAgentSettings()->q);
  s_globalFollowUpReminderAgentSettings()->q = this;
  setCurrentGroup( QStringLiteral( "General" ) );

  KConfigSkeleton::ItemBool  *itemEnabled;
  itemEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "enabled" ), mEnabled, true );
  addItem( itemEnabled, QStringLiteral( "enabled" ) );
}

FollowUpReminderAgentSettings::~FollowUpReminderAgentSettings()
{
  s_globalFollowUpReminderAgentSettings()->q = nullptr;
}

