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

#include "privacyconfig.h"

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

class PrivacyConfigHelper
{
  public:
    PrivacyConfigHelper() : q(nullptr) {}
    ~PrivacyConfigHelper() { delete q; q = nullptr; }
    PrivacyConfigHelper(const PrivacyConfigHelper&) = delete;
    PrivacyConfigHelper& operator=(const PrivacyConfigHelper&) = delete;
    PrivacyConfig *q;
};
Q_GLOBAL_STATIC(PrivacyConfigHelper, s_globalPrivacyConfig)
PrivacyConfig *PrivacyConfig::self()
{
  if (!s_globalPrivacyConfig()->q) {
    new PrivacyConfig;
    s_globalPrivacyConfig()->q->read();
  }

  return s_globalPrivacyConfig()->q;
}

PrivacyConfig::PrivacyConfig( )
  : KConfigSkeleton( QStringLiteral( "kopeterc" ) )
{
  Q_ASSERT(!s_globalPrivacyConfig()->q);
  s_globalPrivacyConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Privacy Plugin" ) );

  KConfigSkeleton::ItemBool  *itemSender_AllowAll;
  itemSender_AllowAll = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Sender_AllowAll" ), mSender_AllowAll, true );
  addItem( itemSender_AllowAll, QStringLiteral( "Sender_AllowAll" ) );
  KConfigSkeleton::ItemBool  *itemSender_AllowNoneButWhiteList;
  itemSender_AllowNoneButWhiteList = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Sender_AllowNoneButWhiteList" ), mSender_AllowNoneButWhiteList, false );
  addItem( itemSender_AllowNoneButWhiteList, QStringLiteral( "Sender_AllowNoneButWhiteList" ) );
  KConfigSkeleton::ItemBool  *itemSender_AllowAllButBlackList;
  itemSender_AllowAllButBlackList = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Sender_AllowAllButBlackList" ), mSender_AllowAllButBlackList, false );
  addItem( itemSender_AllowAllButBlackList, QStringLiteral( "Sender_AllowAllButBlackList" ) );
  KConfigSkeleton::ItemBool  *itemSender_AllowNoneButContactList;
  itemSender_AllowNoneButContactList = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Sender_AllowNoneButContactList" ), mSender_AllowNoneButContactList, false );
  addItem( itemSender_AllowNoneButContactList, QStringLiteral( "Sender_AllowNoneButContactList" ) );
  KConfigSkeleton::ItemStringList  *itemWhiteList;
  itemWhiteList = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "WhiteList" ), mWhiteList );
  addItem( itemWhiteList, QStringLiteral( "WhiteList" ) );
  KConfigSkeleton::ItemStringList  *itemBlackList;
  itemBlackList = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "BlackList" ), mBlackList );
  addItem( itemBlackList, QStringLiteral( "BlackList" ) );
  KConfigSkeleton::ItemBool  *itemContent_DropIfAny;
  itemContent_DropIfAny = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Content_DropIfAny" ), mContent_DropIfAny, false );
  addItem( itemContent_DropIfAny, QStringLiteral( "Content_DropIfAny" ) );
  KConfigSkeleton::ItemString  *itemDropIfAny;
  itemDropIfAny = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "DropIfAny" ), mDropIfAny );
  addItem( itemDropIfAny, QStringLiteral( "DropIfAny" ) );
  KConfigSkeleton::ItemBool  *itemContent_DropIfAll;
  itemContent_DropIfAll = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Content_DropIfAll" ), mContent_DropIfAll, false );
  addItem( itemContent_DropIfAll, QStringLiteral( "Content_DropIfAll" ) );
  KConfigSkeleton::ItemString  *itemDropIfAll;
  itemDropIfAll = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "DropIfAll" ), mDropIfAll );
  addItem( itemDropIfAll, QStringLiteral( "DropIfAll" ) );
}

PrivacyConfig::~PrivacyConfig()
{
  if (s_globalPrivacyConfig.exists() && !s_globalPrivacyConfig.isDestroyed()) {
    s_globalPrivacyConfig()->q = nullptr;
  }
}

