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

#include "htmlexportsettings.h"

#include <klocale.h>

using namespace KCal;

HTMLExportSettings::HTMLExportSettings(  const QString & application )
  : KConfigSkeleton( QLatin1String( "libkcal_htmlexportrc" ) )
  , mParamapplication(application)
{
  setCurrentGroup( QString( QLatin1String( "%1-General" ) ).arg( mParamapplication ) );

  mNameItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Name" ), mName );
  mNameItem->setLabel( i18n("Full name of the calendar owner") );
  mNameItem->setWhatsThis( i18n("WhatsThis text for FullName setting") );
  addItem( mNameItem, QLatin1String( "Name" ) );
  mEMailItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "EMail" ), mEMail );
  mEMailItem->setLabel( i18n("Email of the calendar owner") );
  mEMailItem->setWhatsThis( i18n("WhatsThis text for Email setting") );
  addItem( mEMailItem, QLatin1String( "EMail" ) );
  mCreditNameItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Credit Name" ), mCreditName );
  mCreditNameItem->setLabel( i18n("Creator application") );
  mCreditNameItem->setWhatsThis( i18n("Creator application of the calendar") );
  addItem( mCreditNameItem, QLatin1String( "CreditName" ) );
  mCreditURLItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Credit URL" ), mCreditURL );
  mCreditURLItem->setLabel( i18n("Creator URL") );
  mCreditURLItem->setWhatsThis( i18n("URL of the creator application of the calendar.") );
  addItem( mCreditURLItem, QLatin1String( "CreditURL" ) );
  mPageTitleItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Page Title" ), mPageTitle, i18n("Calendar") );
  mPageTitleItem->setLabel( i18n("Page Title") );
  addItem( mPageTitleItem, QLatin1String( "PageTitle" ) );
  mDateStartItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QLatin1String( "Date Start" ), mDateStart );
  mDateStartItem->setLabel( i18n("Date start") );
  mDateStartItem->setWhatsThis( i18n("First day of the range that shall be exported to HTML.") );
  addItem( mDateStartItem, QLatin1String( "DateStart" ) );
  mDateEndItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QLatin1String( "Date End" ), mDateEnd );
  mDateEndItem->setLabel( i18n("Date end") );
  mDateEndItem->setWhatsThis( i18n("Last day of the range that shall be exported to HTML.") );
  addItem( mDateEndItem, QLatin1String( "DateEnd" ) );
  mOutputFileItem = new KConfigSkeleton::ItemPath( currentGroup(), QLatin1String( "Output File" ), mOutputFile, QLatin1String( "$HOME/calendar.html" ) );
  mOutputFileItem->setLabel( i18n("Output filename") );
  mOutputFileItem->setWhatsThis( i18n("The output file name for the HTML export.") );
  addItem( mOutputFileItem, QLatin1String( "OutputFile" ) );
  mStyleSheetItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Style Sheet" ), mStyleSheet );
  mStyleSheetItem->setLabel( i18n("Style sheet") );
  mStyleSheetItem->setWhatsThis( i18n("CSS style sheet to be used by the final HTML page. This string contains the actual contents of the CSS, not a path to the style sheet.") );
  addItem( mStyleSheetItem, QLatin1String( "StyleSheet" ) );
  mExcludePrivateItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Exclude Private" ), mExcludePrivate, true );
  mExcludePrivateItem->setLabel( i18n("Exclude private incidences from the export") );
  addItem( mExcludePrivateItem, QLatin1String( "ExcludePrivate" ) );
  mExcludeConfidentialItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Exclude Confidential" ), mExcludeConfidential, true );
  mExcludeConfidentialItem->setLabel( i18n("Exclude confidential incidences from the export") );
  addItem( mExcludeConfidentialItem, QLatin1String( "ExcludeConfidential" ) );

  setCurrentGroup( QString( QLatin1String( "%1-Events" ) ).arg( mParamapplication ) );

  mEventViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Event View" ), mEventView, false );
  mEventViewItem->setLabel( i18n("Export events as list") );
  addItem( mEventViewItem, QLatin1String( "EventView" ) );
  mMonthViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Month View" ), mMonthView, true );
  mMonthViewItem->setLabel( i18n("Export in month view") );
  addItem( mMonthViewItem, QLatin1String( "MonthView" ) );
  mWeekViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Week View" ), mWeekView, false );
  mWeekViewItem->setLabel( i18n("Export in week view") );
  addItem( mWeekViewItem, QLatin1String( "WeekView" ) );
  mEventTitleItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Title" ), mEventTitle, i18n("Calendar") );
  mEventTitleItem->setLabel( i18n("Title of the calendar") );
  addItem( mEventTitleItem, QLatin1String( "EventTitle" ) );
  mEventLocationItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Export Location" ), mEventLocation, true );
  mEventLocationItem->setLabel( i18n("Export location of the events") );
  addItem( mEventLocationItem, QLatin1String( "EventLocation" ) );
  mEventCategoriesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Export Categories" ), mEventCategories, true );
  mEventCategoriesItem->setLabel( i18n("Export categories of the events") );
  addItem( mEventCategoriesItem, QLatin1String( "EventCategories" ) );
  mEventAttendeesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Export Attendees" ), mEventAttendees, false );
  mEventAttendeesItem->setLabel( i18n("Export attendees of the events") );
  addItem( mEventAttendeesItem, QLatin1String( "EventAttendees" ) );

  setCurrentGroup( QString( QLatin1String( "%1-Todos" ) ).arg( mParamapplication ) );

  mTodoViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Todo View" ), mTodoView, true );
  mTodoViewItem->setLabel( i18n("Export to-do list") );
  addItem( mTodoViewItem, QLatin1String( "TodoView" ) );
  mTodoListTitleItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "TodoList Title" ), mTodoListTitle, i18n("To-do List") );
  mTodoListTitleItem->setLabel( i18n("Title of the to-do list") );
  addItem( mTodoListTitleItem, QLatin1String( "TodoListTitle" ) );
  mTaskDueDateItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Export Due Date" ), mTaskDueDate, true );
  mTaskDueDateItem->setLabel( i18n("Export due dates of the to-dos") );
  addItem( mTaskDueDateItem, QLatin1String( "TaskDueDate" ) );
  mTaskLocationItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Export Location" ), mTaskLocation, true );
  mTaskLocationItem->setLabel( i18n("Export location of the to-dos") );
  addItem( mTaskLocationItem, QLatin1String( "TaskLocation" ) );
  mTaskCategoriesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Export Categories" ), mTaskCategories, true );
  mTaskCategoriesItem->setLabel( i18n("Export categories of the to-dos") );
  addItem( mTaskCategoriesItem, QLatin1String( "TaskCategories" ) );
  mTaskAttendeesItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Export Attendees" ), mTaskAttendees, false );
  mTaskAttendeesItem->setLabel( i18n("Export attendees of the to-dos") );
  addItem( mTaskAttendeesItem, QLatin1String( "TaskAttendees" ) );

  setCurrentGroup( QString( QLatin1String( "%1-Journals" ) ).arg( mParamapplication ) );

  mJournalViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Journal View" ), mJournalView, false );
  mJournalViewItem->setLabel( i18n("Export journals") );
  addItem( mJournalViewItem, QLatin1String( "JournalView" ) );
  mJournalTitleItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Journal Title" ), mJournalTitle, i18n("Journals") );
  mJournalTitleItem->setLabel( i18n("Title of the journal list") );
  addItem( mJournalTitleItem, QLatin1String( "JournalTitle" ) );

  setCurrentGroup( QString( QLatin1String( "%1-FreeBusy" ) ).arg( mParamapplication ) );

  mFreeBusyViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FreeBusy View" ), mFreeBusyView, false );
  mFreeBusyViewItem->setLabel( i18n("Export journals") );
  addItem( mFreeBusyViewItem, QLatin1String( "FreeBusyView" ) );
  mFreeBusyTitleItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Free/Busy Title" ), mFreeBusyTitle, i18n("Busy times") );
  mFreeBusyTitleItem->setLabel( i18n("Title of the free/busy list") );
  addItem( mFreeBusyTitleItem, QLatin1String( "FreeBusyTitle" ) );
}

HTMLExportSettings::~HTMLExportSettings()
{
}

