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

#include "globalsettings_incidenceeditor.h"

#include <klocalizedstring.h>

using namespace IncidenceEditorNG;

IncidenceEditorSettingsBase::IncidenceEditorSettingsBase( )
  : KConfigSkeleton( QStringLiteral( "incidenceeditorrc" ) )
{
  setCurrentGroup( QStringLiteral( "AttachmentHandling" ) );

  QList<KConfigSkeleton::ItemEnum::Choice> valuesDefaultEmailAttachMethod;
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Ask");
    choice.label = i18nd("libincidenceeditors", "Always ask");
    valuesDefaultEmailAttachMethod.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("Link");
    choice.label = i18nd("libincidenceeditors", "Only attach link to message");
    valuesDefaultEmailAttachMethod.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("InlineFull");
    choice.label = i18nd("libincidenceeditors", "Attach complete message");
    valuesDefaultEmailAttachMethod.append( choice );
  }
  {
    KConfigSkeleton::ItemEnum::Choice choice;
    choice.name = QStringLiteral("InlineBody");
    choice.label = i18nd("libincidenceeditors", "Attach message without attachments");
    valuesDefaultEmailAttachMethod.append( choice );
  }
  mDefaultEmailAttachMethodItem = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "DefaultEmailAttachMethod" ), mDefaultEmailAttachMethod, valuesDefaultEmailAttachMethod, Ask );
  mDefaultEmailAttachMethodItem->setLabel( i18nd("libincidenceeditors", "Default Email Attachment Method") );
  mDefaultEmailAttachMethodItem->setToolTip( i18nd("libincidenceeditors", "Choose the default way of attaching dropped emails to an event") );
  mDefaultEmailAttachMethodItem->setWhatsThis( i18nd("libincidenceeditors", "The default way of attaching dropped emails to an event") );
  addItem( mDefaultEmailAttachMethodItem, QStringLiteral( "DefaultEmailAttachMethod" ) );

  setCurrentGroup( QStringLiteral( "Collection" ) );

  mLastSelectedFolderItem = new KConfigSkeleton::ItemLongLong( currentGroup(), QStringLiteral( "LastSelectedFolder" ), mLastSelectedFolder, -1 );
  mLastSelectedFolderItem->setLabel( i18nd("libincidenceeditors", "LastSelectedFolder") );
  mLastSelectedFolderItem->setWhatsThis( i18nd("libincidenceeditors", "The last selected folder.") );
  addItem( mLastSelectedFolderItem, QStringLiteral( "LastSelectedFolder" ) );
}

IncidenceEditorSettingsBase::~IncidenceEditorSettingsBase()
{
}

