// This file is generated by kconfig_compiler_kf5 from kcalprefs.kcfg.
// All changes you do to this file will be lost.
#ifndef CALENDARSUPPORT_KCALPREFSBASE_H
#define CALENDARSUPPORT_KCALPREFSBASE_H

#include <calendarsupport_export.h>

#include <qglobal.h>
#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>

namespace CalendarSupport {

class CALENDARSUPPORT_EXPORT KCalPrefsBase : public KConfigSkeleton
{
  public:
    enum EnumSendPolicy { InvitationPolicySend, InvitationPolicyAsk, InvitationPolicyDontSend };
    enum EnumExpiryUnit { UnitDays, UnitWeeks, UnitMonths };
    enum EnumArchiveAction { actionDelete, actionArchive };

    KCalPrefsBase( );
    ~KCalPrefsBase();

    /**
      Set Use email settings from System Settings
    */
    void setEmailControlCenter( bool v )
    {
      if (!isImmutable( QStringLiteral( "EmailControlCenter" ) ))
        mEmailControlCenter = v;
    }

    /**
      Get Use email settings from System Settings
    */
    bool emailControlCenter() const
    {
      return mEmailControlCenter;
    }

    /**
      Get Item object corresponding to EmailControlCenter()
    */
    ItemBool *emailControlCenterItem()
    {
      return mEmailControlCenterItem;
    }

    /**
      Set Default appointment time
    */
    void setStartTime( const QDateTime & v )
    {
      if (!isImmutable( QStringLiteral( "StartTime" ) ))
        mStartTime = v;
    }

    /**
      Get Default appointment time
    */
    QDateTime startTime() const
    {
      return mStartTime;
    }

    /**
      Get Item object corresponding to StartTime()
    */
    ItemDateTime *startTimeItem()
    {
      return mStartTimeItem;
    }

    /**
      Set Default duration of new appointment (HH:MM)
    */
    void setDefaultDuration( const QDateTime & v )
    {
      if (!isImmutable( QStringLiteral( "DefaultDuration" ) ))
        mDefaultDuration = v;
    }

    /**
      Get Default duration of new appointment (HH:MM)
    */
    QDateTime defaultDuration() const
    {
      return mDefaultDuration;
    }

    /**
      Get Item object corresponding to DefaultDuration()
    */
    ItemDateTime *defaultDurationItem()
    {
      return mDefaultDurationItem;
    }

    /**
      Set Enable a default sound file for audio reminders
    */
    void setDefaultAudioFileReminders( bool v )
    {
      if (!isImmutable( QStringLiteral( "defaultAudioFileReminders" ) ))
        mDefaultAudioFileReminders = v;
    }

    /**
      Get Enable a default sound file for audio reminders
    */
    bool defaultAudioFileReminders() const
    {
      return mDefaultAudioFileReminders;
    }

    /**
      Get Item object corresponding to defaultAudioFileReminders()
    */
    ItemBool *defaultAudioFileRemindersItem()
    {
      return mDefaultAudioFileRemindersItem;
    }

    /**
      Set Default audio file
    */
    void setAudioFilePath( const QString & v )
    {
      if (!isImmutable( QStringLiteral( "audioFilePath" ) ))
        mAudioFilePath = v;
    }

    /**
      Get Default audio file
    */
    QString audioFilePath() const
    {
      return mAudioFilePath;
    }

    /**
      Get Item object corresponding to audioFilePath()
    */
    ItemPath *audioFilePathItem()
    {
      return mAudioFilePathItem;
    }

    /**
      Set Enable reminders for new Events
    */
    void setDefaultEventReminders( bool v )
    {
      if (!isImmutable( QStringLiteral( "defaultEventReminders" ) ))
        mDefaultEventReminders = v;
    }

    /**
      Get Enable reminders for new Events
    */
    bool defaultEventReminders() const
    {
      return mDefaultEventReminders;
    }

    /**
      Get Item object corresponding to defaultEventReminders()
    */
    ItemBool *defaultEventRemindersItem()
    {
      return mDefaultEventRemindersItem;
    }

    /**
      Set Enable reminders for new To-dos
    */
    void setDefaultTodoReminders( bool v )
    {
      if (!isImmutable( QStringLiteral( "defaultTodoReminders" ) ))
        mDefaultTodoReminders = v;
    }

    /**
      Get Enable reminders for new To-dos
    */
    bool defaultTodoReminders() const
    {
      return mDefaultTodoReminders;
    }

    /**
      Get Item object corresponding to defaultTodoReminders()
    */
    ItemBool *defaultTodoRemindersItem()
    {
      return mDefaultTodoRemindersItem;
    }

    /**
      Set Default reminder time
    */
    void setReminderTime( int v )
    {
      if (!isImmutable( QStringLiteral( "ReminderTime" ) ))
        mReminderTime = v;
    }

    /**
      Get Default reminder time
    */
    int reminderTime() const
    {
      return mReminderTime;
    }

    /**
      Get Item object corresponding to ReminderTime()
    */
    ItemInt *reminderTimeItem()
    {
      return mReminderTimeItem;
    }

    /**
      Set Default Reminder Time Units
    */
    void setReminderTimeUnits( int v )
    {
      if (!isImmutable( QStringLiteral( "ReminderTimeUnits" ) ))
        mReminderTimeUnits = v;
    }

    /**
      Get Default Reminder Time Units
    */
    int reminderTimeUnits() const
    {
      return mReminderTimeUnits;
    }

    /**
      Get Item object corresponding to ReminderTimeUnits()
    */
    ItemInt *reminderTimeUnitsItem()
    {
      return mReminderTimeUnitsItem;
    }

    /**
      Set Day begins at
    */
    void setDayBegins( const QDateTime & v )
    {
      if (!isImmutable( QStringLiteral( "DayBegins" ) ))
        mDayBegins = v;
    }

    /**
      Get Day begins at
    */
    QDateTime dayBegins() const
    {
      return mDayBegins;
    }

    /**
      Get Item object corresponding to DayBegins()
    */
    ItemDateTime *dayBeginsItem()
    {
      return mDayBeginsItem;
    }

    /**
      Set Exclude holidays
    */
    void setExcludeHolidays( bool v )
    {
      if (!isImmutable( QStringLiteral( "ExcludeHolidays" ) ))
        mExcludeHolidays = v;
    }

    /**
      Get Exclude holidays
    */
    bool excludeHolidays() const
    {
      return mExcludeHolidays;
    }

    /**
      Get Item object corresponding to ExcludeHolidays()
    */
    ItemBool *excludeHolidaysItem()
    {
      return mExcludeHolidaysItem;
    }

    /**
      Set Use holiday regions:
    */
    void setHolidays( const QStringList & v )
    {
      if (!isImmutable( QStringLiteral( "Holidays" ) ))
        mHolidays = v;
    }

    /**
      Get Use holiday regions:
    */
    QStringList holidays() const
    {
      return mHolidays;
    }

    /**
      Get Item object corresponding to Holidays()
    */
    ItemStringList *holidaysItem()
    {
      return mHolidaysItem;
    }

    /**
      Set Use Groupware communication
    */
    void setUseGroupwareCommunication( bool v )
    {
      if (!isImmutable( QStringLiteral( "UseGroupwareCommunication" ) ))
        mUseGroupwareCommunication = v;
    }

    /**
      Get Use Groupware communication
    */
    bool useGroupwareCommunication() const
    {
      return mUseGroupwareCommunication;
    }

    /**
      Get Item object corresponding to UseGroupwareCommunication()
    */
    ItemBool *useGroupwareCommunicationItem()
    {
      return mUseGroupwareCommunicationItem;
    }

    /**
      Set Default policy for invitations to other users:
    */
    void setSendPolicy( int v )
    {
      if (!isImmutable( QStringLiteral( "SendPolicy" ) ))
        mSendPolicy = v;
    }

    /**
      Get Default policy for invitations to other users:
    */
    int sendPolicy() const
    {
      return mSendPolicy;
    }

    /**
      Get Item object corresponding to SendPolicy()
    */
    ItemEnum *sendPolicyItem()
    {
      return mSendPolicyItem;
    }

    /**
      Set AdditionalMails
    */
    void setAdditionalMails( const QStringList & v )
    {
      if (!isImmutable( QStringLiteral( "AdditionalMails" ) ))
        mAdditionalMails = v;
    }

    /**
      Get AdditionalMails
    */
    QStringList additionalMails() const
    {
      return mAdditionalMails;
    }

    /**
      Get Item object corresponding to AdditionalMails()
    */
    ItemStringList *additionalMailsItem()
    {
      return mAdditionalMailsItem;
    }

    /**
      Set Show timezone selectors in the event and todo editor dialog.
    */
    void setShowTimeZoneSelectorInIncidenceEditor( bool v )
    {
      if (!isImmutable( QStringLiteral( "ShowTimeZoneSelectorInIncidenceEditor" ) ))
        mShowTimeZoneSelectorInIncidenceEditor = v;
    }

    /**
      Get Show timezone selectors in the event and todo editor dialog.
    */
    bool showTimeZoneSelectorInIncidenceEditor() const
    {
      return mShowTimeZoneSelectorInIncidenceEditor;
    }

    /**
      Get Item object corresponding to ShowTimeZoneSelectorInIncidenceEditor()
    */
    ItemBool *showTimeZoneSelectorInIncidenceEditorItem()
    {
      return mShowTimeZoneSelectorInIncidenceEditorItem;
    }

    /**
      Set Regularly archive events
    */
    void setAutoArchive( bool v )
    {
      if (!isImmutable( QStringLiteral( "AutoArchive" ) ))
        mAutoArchive = v;
    }

    /**
      Get Regularly archive events
    */
    bool autoArchive() const
    {
      return mAutoArchive;
    }

    /**
      Get Item object corresponding to AutoArchive()
    */
    ItemBool *autoArchiveItem()
    {
      return mAutoArchiveItem;
    }

    /**
      Set If auto-archiving is enabled, events older than this amount will be archived. The unit of this value is specified in another field.
    */
    void setExpiryTime( int v )
    {
      if (!isImmutable( QStringLiteral( "ExpiryTime" ) ))
        mExpiryTime = v;
    }

    /**
      Get If auto-archiving is enabled, events older than this amount will be archived. The unit of this value is specified in another field.
    */
    int expiryTime() const
    {
      return mExpiryTime;
    }

    /**
      Get Item object corresponding to ExpiryTime()
    */
    ItemInt *expiryTimeItem()
    {
      return mExpiryTimeItem;
    }

    /**
      Set The unit in which the expiry time is expressed.
    */
    void setExpiryUnit( int v )
    {
      if (!isImmutable( QStringLiteral( "ExpiryUnit" ) ))
        mExpiryUnit = v;
    }

    /**
      Get The unit in which the expiry time is expressed.
    */
    int expiryUnit() const
    {
      return mExpiryUnit;
    }

    /**
      Get Item object corresponding to ExpiryUnit()
    */
    ItemEnum *expiryUnitItem()
    {
      return mExpiryUnitItem;
    }

    /**
      Set URL of the file where old events should be archived
    */
    void setArchiveFile( const QString & v )
    {
      if (!isImmutable( QStringLiteral( "ArchiveFile" ) ))
        mArchiveFile = v;
    }

    /**
      Get URL of the file where old events should be archived
    */
    QString archiveFile() const
    {
      return mArchiveFile;
    }

    /**
      Get Item object corresponding to ArchiveFile()
    */
    ItemString *archiveFileItem()
    {
      return mArchiveFileItem;
    }

    /**
      Set Archive events
    */
    void setArchiveEvents( bool v )
    {
      if (!isImmutable( QStringLiteral( "ArchiveEvents" ) ))
        mArchiveEvents = v;
    }

    /**
      Get Archive events
    */
    bool archiveEvents() const
    {
      return mArchiveEvents;
    }

    /**
      Get Item object corresponding to ArchiveEvents()
    */
    ItemBool *archiveEventsItem()
    {
      return mArchiveEventsItem;
    }

    /**
      Set Archive to-dos
    */
    void setArchiveTodos( bool v )
    {
      if (!isImmutable( QStringLiteral( "ArchiveTodos" ) ))
        mArchiveTodos = v;
    }

    /**
      Get Archive to-dos
    */
    bool archiveTodos() const
    {
      return mArchiveTodos;
    }

    /**
      Get Item object corresponding to ArchiveTodos()
    */
    ItemBool *archiveTodosItem()
    {
      return mArchiveTodosItem;
    }

    /**
      Set What to do when archiving
    */
    void setArchiveAction( int v )
    {
      if (!isImmutable( QStringLiteral( "ArchiveAction" ) ))
        mArchiveAction = v;
    }

    /**
      Get What to do when archiving
    */
    int archiveAction() const
    {
      return mArchiveAction;
    }

    /**
      Get Item object corresponding to ArchiveAction()
    */
    ItemEnum *archiveActionItem()
    {
      return mArchiveActionItem;
    }

    /**
      Set Work Week Mask
    */
    void setWorkWeekMask( int v )
    {
      if (!isImmutable( QStringLiteral( "WorkWeekMask" ) ))
        mWorkWeekMask = v;
    }

    /**
      Get Work Week Mask
    */
    int workWeekMask() const
    {
      return mWorkWeekMask;
    }

    /**
      Get Item object corresponding to WorkWeekMask()
    */
    ItemInt *workWeekMaskItem()
    {
      return mWorkWeekMaskItem;
    }

    /**
      Set Full &name
    */
    void setUserName( const QString & v )
    {
      if (!isImmutable( QStringLiteral( "UserName" ) ))
        mUserName = v;
    }

    /**
      Get Full &name
    */
    QString userName() const
    {
      return mUserName;
    }

    /**
      Get Item object corresponding to UserName()
    */
    ItemString *userNameItem()
    {
      return mUserNameItem;
    }

    /**
      Set E&mail address
    */
    void setUserEmail( const QString & v )
    {
      if (!isImmutable( QStringLiteral( "UserEmail" ) ))
        mUserEmail = v;
    }

    /**
      Get E&mail address
    */
    QString userEmail() const
    {
      return mUserEmail;
    }

    /**
      Get Item object corresponding to UserEmail()
    */
    ItemString *userEmailItem()
    {
      return mUserEmailItem;
    }

    /**
      Set EventTemplates
    */
    void setEventTemplates( const QStringList & v )
    {
      if (!isImmutable( QStringLiteral( "EventTemplates" ) ))
        mEventTemplates = v;
    }

    /**
      Get EventTemplates
    */
    QStringList eventTemplates() const
    {
      return mEventTemplates;
    }

    /**
      Get Item object corresponding to EventTemplates()
    */
    ItemStringList *eventTemplatesItem()
    {
      return mEventTemplatesItem;
    }

    /**
      Set TodoTemplates
    */
    void setTodoTemplates( const QStringList & v )
    {
      if (!isImmutable( QStringLiteral( "TodoTemplates" ) ))
        mTodoTemplates = v;
    }

    /**
      Get TodoTemplates
    */
    QStringList todoTemplates() const
    {
      return mTodoTemplates;
    }

    /**
      Get Item object corresponding to TodoTemplates()
    */
    ItemStringList *todoTemplatesItem()
    {
      return mTodoTemplatesItem;
    }

    /**
      Set JournalTemplates
    */
    void setJournalTemplates( const QStringList & v )
    {
      if (!isImmutable( QStringLiteral( "JournalTemplates" ) ))
        mJournalTemplates = v;
    }

    /**
      Get JournalTemplates
    */
    QStringList journalTemplates() const
    {
      return mJournalTemplates;
    }

    /**
      Get Item object corresponding to JournalTemplates()
    */
    ItemStringList *journalTemplatesItem()
    {
      return mJournalTemplatesItem;
    }

    /**
      Set ActiveDesignerFields
    */
    void setActiveDesignerFields( const QStringList & v )
    {
      if (!isImmutable( QStringLiteral( "ActiveDesignerFields" ) ))
        mActiveDesignerFields = v;
    }

    /**
      Get ActiveDesignerFields
    */
    QStringList activeDesignerFields() const
    {
      return mActiveDesignerFields;
    }

    /**
      Get Item object corresponding to ActiveDesignerFields()
    */
    ItemStringList *activeDesignerFieldsItem()
    {
      return mActiveDesignerFieldsItem;
    }

    /**
      Set "No category" color (for "Only category" drawing schemes)
    */
    void setUnsetCategoryColor( const QColor & v )
    {
      if (!isImmutable( QStringLiteral( "UnsetCategoryColor" ) ))
        mUnsetCategoryColor = v;
    }

    /**
      Get "No category" color (for "Only category" drawing schemes)
    */
    QColor unsetCategoryColor() const
    {
      return mUnsetCategoryColor;
    }

    /**
      Get Item object corresponding to UnsetCategoryColor()
    */
    ItemColor *unsetCategoryColorItem()
    {
      return mUnsetCategoryColorItem;
    }

  protected:
  public:

    // Personal Settings
    bool mEmailControlCenter;

    // Default Datetimes
    QDateTime mStartTime;
    QDateTime mDefaultDuration;
    bool mDefaultAudioFileReminders;
    QString mAudioFilePath;
    bool mDefaultEventReminders;
    bool mDefaultTodoReminders;
    int mReminderTime;
    int mReminderTimeUnits;

    // Time & Date
    QDateTime mDayBegins;
    bool mExcludeHolidays;
    QStringList mHolidays;

    // Group Scheduling
    bool mUseGroupwareCommunication;
    int mSendPolicy;
    QStringList mAdditionalMails;

    // Hidden Options
    bool mShowTimeZoneSelectorInIncidenceEditor;

    // Archive Dialog
    bool mAutoArchive;
    int mExpiryTime;
    int mExpiryUnit;
    QString mArchiveFile;
    bool mArchiveEvents;
    bool mArchiveTodos;
    int mArchiveAction;

    // Internal Settings
    int mWorkWeekMask;
    QString mUserName;
    QString mUserEmail;
    QStringList mEventTemplates;
    QStringList mTodoTemplates;
    QStringList mJournalTemplates;
    QStringList mActiveDesignerFields;

    // Colors
    QColor mUnsetCategoryColor;

  private:
    ItemBool *mEmailControlCenterItem;
    ItemDateTime *mStartTimeItem;
    ItemDateTime *mDefaultDurationItem;
    ItemBool *mDefaultAudioFileRemindersItem;
    ItemPath *mAudioFilePathItem;
    ItemBool *mDefaultEventRemindersItem;
    ItemBool *mDefaultTodoRemindersItem;
    ItemInt *mReminderTimeItem;
    ItemInt *mReminderTimeUnitsItem;
    ItemDateTime *mDayBeginsItem;
    ItemBool *mExcludeHolidaysItem;
    ItemStringList *mHolidaysItem;
    ItemBool *mUseGroupwareCommunicationItem;
    ItemEnum *mSendPolicyItem;
    ItemStringList *mAdditionalMailsItem;
    ItemBool *mShowTimeZoneSelectorInIncidenceEditorItem;
    ItemBool *mAutoArchiveItem;
    ItemInt *mExpiryTimeItem;
    ItemEnum *mExpiryUnitItem;
    ItemString *mArchiveFileItem;
    ItemBool *mArchiveEventsItem;
    ItemBool *mArchiveTodosItem;
    ItemEnum *mArchiveActionItem;
    ItemInt *mWorkWeekMaskItem;
    ItemString *mUserNameItem;
    ItemString *mUserEmailItem;
    ItemStringList *mEventTemplatesItem;
    ItemStringList *mTodoTemplatesItem;
    ItemStringList *mJournalTemplatesItem;
    ItemStringList *mActiveDesignerFieldsItem;
    ItemColor *mUnsetCategoryColorItem;
};

}

#endif

