Pimcommon

incidencesforwidget.cpp
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3 SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "incidencesforwidget.h"
9using namespace Qt::Literals::StringLiterals;
10
11#include <KLocalizedString>
12
13using namespace PimCommon;
14IncidencesForWidget::IncidencesForWidget(QWidget *parent)
15 : QComboBox(parent)
16{
17 addItem(i18n("Nobody"));
18 addItem(i18n("Admins of This Folder"));
19 addItem(i18n("All Readers of This Folder"));
20
21 setObjectName("contentstypecombobox"_L1);
22 const QString whatsThisForMyOwnFolders = i18n(
23 "This setting defines which users sharing "
24 "this folder should get \"busy\" periods in their freebusy lists "
25 "and should see the alarms for the events or tasks in this folder. "
26 "The setting applies to Calendar and Task folders only "
27 "(for tasks, this setting is only used for alarms).\n\n"
28 "Example use cases: if the boss shares a folder with his secretary, "
29 "only the boss should be marked as busy for his meetings, so he should "
30 "select \"Admins\", since the secretary has no admin rights on the folder.\n"
31 "On the other hand if a working group shares a Calendar for "
32 "group meetings, all readers of the folders should be marked "
33 "as busy for meetings.\n"
34 "A company-wide folder with optional events in it would use \"Nobody\" "
35 "since it is not known who will go to those events.");
36 setWhatsThis(whatsThisForMyOwnFolders);
37}
38
39IncidencesForWidget::~IncidencesForWidget() = default;
40
42{
43 return i18n("Generate free/&busy and activate alarms for:");
44}
45
46#include "moc_incidencesforwidget.cpp"
static QString labelName()
Label name of the combobox.
QString i18n(const char *text, const TYPE &arg...)
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.