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

#include "settings.h"

#include <klocalizedstring.h>

using namespace Akonadi_Aknotes_Resource;

Settings::Settings( KSharedConfig::Ptr config )
  : KConfigSkeleton( std::move( config ) )
{
  setCurrentGroup( QStringLiteral( "General" ) );

  mPathItem = new KConfigSkeleton::ItemPath( currentGroup(), QStringLiteral( "Path" ), mPath );
  mPathItem->setLabel( i18n("Path to iCal file.") );
  addItem( mPathItem, QStringLiteral( "Path" ) );
  mDisplayNameItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "DisplayName" ), mDisplayName );
  mDisplayNameItem->setLabel( i18n("Display name.") );
  addItem( mDisplayNameItem, QStringLiteral( "DisplayName" ) );
  mReadOnlyItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ReadOnly" ), mReadOnly, false );
  mReadOnlyItem->setLabel( i18n("Do not change the actual backend data.") );
  addItem( mReadOnlyItem, QStringLiteral( "ReadOnly" ) );
  mAutosaveIntervalItem = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "AutosaveInterval" ), mAutosaveInterval, 1 );
  mAutosaveIntervalItem->setLabel( i18n("Autosave interval time (in minutes).") );
  addItem( mAutosaveIntervalItem, QStringLiteral( "AutosaveInterval" ) );
  mMonitorFileItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "MonitorFile" ), mMonitorFile, true );
  mMonitorFileItem->setLabel( i18n("Monitor file for changes.") );
  addItem( mMonitorFileItem, QStringLiteral( "MonitorFile" ) );
}

Settings::~Settings()
{
}

