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

#include "baloosettings.h"

BalooSettings::BalooSettings( QObject *parent )
  : KCoreConfigSkeleton( QStringLiteral( "baloofilerc" ) )
{
  setParent(parent);
  KConfigCompilerSignallingItem::NotifyFunction notifyFunction = static_cast<KConfigCompilerSignallingItem::NotifyFunction>(&BalooSettings::itemChanged);

  setCurrentGroup( QStringLiteral( "Basic Settings" ) );

  KConfigCompilerSignallingItem  *itemIndexingEnabled;
  KCoreConfigSkeleton::ItemBool  *innerItemIndexingEnabled;
  innerItemIndexingEnabled = new KCoreConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Indexing-Enabled" ), mIndexingEnabled, true );
  itemIndexingEnabled = new KConfigCompilerSignallingItem(innerItemIndexingEnabled, this, notifyFunction, signalIndexingEnabledChanged);
  addItem( itemIndexingEnabled, QStringLiteral( "indexingEnabled" ) );

  setCurrentGroup( QStringLiteral( "General" ) );

  KConfigCompilerSignallingItem  *itemIndexHiddenFolders;
  KCoreConfigSkeleton::ItemBool  *innerItemIndexHiddenFolders;
  innerItemIndexHiddenFolders = new KCoreConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "index hidden folders" ), mIndexHiddenFolders, false );
  itemIndexHiddenFolders = new KConfigCompilerSignallingItem(innerItemIndexHiddenFolders, this, notifyFunction, signalIndexHiddenFoldersChanged);
  addItem( itemIndexHiddenFolders, QStringLiteral( "indexHiddenFolders" ) );
  KConfigCompilerSignallingItem  *itemDbVersion;
  KCoreConfigSkeleton::ItemInt  *innerItemDbVersion;
  innerItemDbVersion = new KCoreConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "dbVersion" ), mDbVersion, 0 );
  itemDbVersion = new KConfigCompilerSignallingItem(innerItemDbVersion, this, notifyFunction, signalDbVersionChanged);
  addItem( itemDbVersion, QStringLiteral( "dbVersion" ) );
  KConfigCompilerSignallingItem  *itemOnlyBasicIndexing;
  KCoreConfigSkeleton::ItemBool  *innerItemOnlyBasicIndexing;
  innerItemOnlyBasicIndexing = new KCoreConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "only basic indexing" ), mOnlyBasicIndexing, false );
  itemOnlyBasicIndexing = new KConfigCompilerSignallingItem(innerItemOnlyBasicIndexing, this, notifyFunction, signalOnlyBasicIndexingChanged);
  addItem( itemOnlyBasicIndexing, QStringLiteral( "onlyBasicIndexing" ) );
  KConfigCompilerSignallingItem  *itemDisableInitialUpdate;
  KCoreConfigSkeleton::ItemBool  *innerItemDisableInitialUpdate;
  innerItemDisableInitialUpdate = new KCoreConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "disable initial update" ), mDisableInitialUpdate, true );
  itemDisableInitialUpdate = new KConfigCompilerSignallingItem(innerItemDisableInitialUpdate, this, notifyFunction, signalDisableInitialUpdateChanged);
  addItem( itemDisableInitialUpdate, QStringLiteral( "disableInitialUpdate" ) );
  KConfigCompilerSignallingItem  *itemExcludedFolders;
  KCoreConfigSkeleton::ItemPathList  *innerItemExcludedFolders;
  innerItemExcludedFolders = new KCoreConfigSkeleton::ItemPathList( currentGroup(), QStringLiteral( "exclude folders" ), mExcludedFolders, QStringList() );
  itemExcludedFolders = new KConfigCompilerSignallingItem(innerItemExcludedFolders, this, notifyFunction, signalExcludedFoldersChanged);
  addItem( itemExcludedFolders, QStringLiteral( "excludedFolders" ) );
  KConfigCompilerSignallingItem  *itemFolders;
  KCoreConfigSkeleton::ItemPathList  *innerItemFolders;
  innerItemFolders = new KCoreConfigSkeleton::ItemPathList( currentGroup(), QStringLiteral( "folders" ), mFolders, QStringList() << QDir::homePath() );
  itemFolders = new KConfigCompilerSignallingItem(innerItemFolders, this, notifyFunction, signalFoldersChanged);
  addItem( itemFolders, QStringLiteral( "folders" ) );
  KConfigCompilerSignallingItem  *itemExcludedMimetypes;
  KCoreConfigSkeleton::ItemStringList  *innerItemExcludedMimetypes;
  innerItemExcludedMimetypes = new KCoreConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "exclude mimetypes" ), mExcludedMimetypes, Baloo::defaultExcludeMimetypes() );
  itemExcludedMimetypes = new KConfigCompilerSignallingItem(innerItemExcludedMimetypes, this, notifyFunction, signalExcludedMimetypesChanged);
  addItem( itemExcludedMimetypes, QStringLiteral( "excludedMimetypes" ) );
  KConfigCompilerSignallingItem  *itemExcludedFilters;
  KCoreConfigSkeleton::ItemStringList  *innerItemExcludedFilters;
  innerItemExcludedFilters = new KCoreConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "exclude filters" ), mExcludedFilters, Baloo::defaultExcludeFilterList() );
  itemExcludedFilters = new KConfigCompilerSignallingItem(innerItemExcludedFilters, this, notifyFunction, signalExcludedFiltersChanged);
  addItem( itemExcludedFilters, QStringLiteral( "excludedFilters" ) );
  KConfigCompilerSignallingItem  *itemExcludedFiltersVersion;
  KCoreConfigSkeleton::ItemInt  *innerItemExcludedFiltersVersion;
  innerItemExcludedFiltersVersion = new KCoreConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "exclude filters version" ), mExcludedFiltersVersion, 0 );
  itemExcludedFiltersVersion = new KConfigCompilerSignallingItem(innerItemExcludedFiltersVersion, this, notifyFunction, signalExcludedFiltersVersionChanged);
  addItem( itemExcludedFiltersVersion, QStringLiteral( "excludedFiltersVersion" ) );
}

bool BalooSettings::defaultIndexingEnabledValue_helper() const
{

  return true;
}

bool BalooSettings::defaultIndexHiddenFoldersValue_helper() const
{

  return false;
}

int BalooSettings::defaultDbVersionValue_helper() const
{

  return 0;
}

bool BalooSettings::defaultOnlyBasicIndexingValue_helper() const
{

  return false;
}

bool BalooSettings::defaultDisableInitialUpdateValue_helper() const
{

  return true;
}

QStringList BalooSettings::defaultExcludedFoldersValue_helper() const
{

  return QStringList();
}

QStringList BalooSettings::defaultFoldersValue_helper() const
{

  return QStringList() << QDir::homePath();
}

QStringList BalooSettings::defaultExcludedMimetypesValue_helper() const
{

  return Baloo::defaultExcludeMimetypes();
}

QStringList BalooSettings::defaultExcludedFiltersValue_helper() const
{

  return Baloo::defaultExcludeFilterList();
}

int BalooSettings::defaultExcludedFiltersVersionValue_helper() const
{

  return 0;
}

BalooSettings::~BalooSettings()
{
}


void BalooSettings::itemChanged(quint64 flags) {

  if ( flags & signalIndexingEnabledChanged ) {
    Q_EMIT indexingEnabledChanged();
  }
  if ( flags & signalIndexHiddenFoldersChanged ) {
    Q_EMIT indexHiddenFoldersChanged();
  }
  if ( flags & signalDbVersionChanged ) {
    Q_EMIT dbVersionChanged();
  }
  if ( flags & signalOnlyBasicIndexingChanged ) {
    Q_EMIT onlyBasicIndexingChanged();
  }
  if ( flags & signalDisableInitialUpdateChanged ) {
    Q_EMIT disableInitialUpdateChanged();
  }
  if ( flags & signalExcludedFoldersChanged ) {
    Q_EMIT excludedFoldersChanged();
  }
  if ( flags & signalFoldersChanged ) {
    Q_EMIT foldersChanged();
  }
  if ( flags & signalExcludedMimetypesChanged ) {
    Q_EMIT excludedMimetypesChanged();
  }
  if ( flags & signalExcludedFiltersChanged ) {
    Q_EMIT excludedFiltersChanged();
  }
  if ( flags & signalExcludedFiltersVersionChanged ) {
    Q_EMIT excludedFiltersVersionChanged();
  }
}

#include "baloosettings.moc"

