// 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 <QFile>

class FollowUpReminderAgentSettingsHelper
{
  public:
    FollowUpReminderAgentSettingsHelper() : q(nullptr) {}
    ~FollowUpReminderAgentSettingsHelper() { delete q; q = nullptr; }
    FollowUpReminderAgentSettingsHelper(const FollowUpReminderAgentSettingsHelper&) = delete;
    FollowUpReminderAgentSettingsHelper& operator=(const FollowUpReminderAgentSettingsHelper&) = delete;
    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()
{
  if (s_globalFollowUpReminderAgentSettings.exists() && !s_globalFollowUpReminderAgentSettings.isDestroyed()) {
    s_globalFollowUpReminderAgentSettings()->q = nullptr;
  }
}

