diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-24 16:38:45 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-24 16:38:45 +0200 |
| commit | 0ac517403ead1135bc5fe0e05c2b8b00382052ae (patch) | |
| tree | 0112695473880aa173d5eb49928f15e23ce6e8f0 /src/config.h | |
| parent | 4818cf555141d83b0d8414c86c3b7aef26286dd3 (diff) | |
| download | qtmaildir-0ac517403ead1135bc5fe0e05c2b8b00382052ae.tar.gz qtmaildir-0ac517403ead1135bc5fe0e05c2b8b00382052ae.zip | |
feat: read the calendar's config keys
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h index c6f1cae..f50ff38 100644 --- a/src/config.h +++ b/src/config.h @@ -417,6 +417,15 @@ public: /// is simply the feature being off rather than a misconfiguration. QString contactsDir() const { return m_contactsDir; } + /// The vdirsyncer calendar root (item 206). Empty: the calendar is off. + QString calendarsDir() const { return m_calendarsDir; } + /// Directory name of the collection new events go to; empty means the + /// first collection by display name. + QString defaultCalendar() const { return m_defaultCalendar; } + /// Run after calendar writes. Empty: no sync. + QString calendarSyncCommand() const { return m_calendarSyncCommand; } + int calendarSyncDelayMs() const { return m_calendarSyncDelayMs; } + /// Matches every configured account's sent mail, or empty when no account /// configures one. /// @@ -592,6 +601,11 @@ private: int m_toolbarIconSize = 24; QString m_notmuchConfig; QString m_contactsDir; + QString m_calendarsDir; + QString m_defaultCalendar; + QString m_calendarSyncCommand = + QStringLiteral("flock -w 60 /tmp/vdirsyncer.lock vdirsyncer sync calendars"); + int m_calendarSyncDelayMs = 2000; QString m_dateFormat; QStringList m_forwardPrefixes; QString m_language; |
