summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Sections
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-10 20:15:13 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-10-18 20:21:51 +0200
commitf432dd2e2ea9fe4e7c19d5ea9d60481e662a0367 (patch)
tree69a867888c347607ba2e49c2040cb2594bc00491 /apps/settings/lib/Sections
parent643e85cfe81ac079bd2e5bcf1a344a20319f48db (diff)
downloadnextcloud-server-f432dd2e2ea9fe4e7c19d5ea9d60481e662a0367.tar.gz
nextcloud-server-f432dd2e2ea9fe4e7c19d5ea9d60481e662a0367.zip
Add scheduling availability settings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/settings/lib/Sections')
-rw-r--r--apps/settings/lib/Sections/Personal/Groupware.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/apps/settings/lib/Sections/Personal/Groupware.php b/apps/settings/lib/Sections/Personal/Groupware.php
new file mode 100644
index 00000000000..4c64e06cb3a
--- /dev/null
+++ b/apps/settings/lib/Sections/Personal/Groupware.php
@@ -0,0 +1,58 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * @author Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * Mail
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+namespace OCA\Settings\Sections\Personal;
+
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
+
+class Groupware implements IIconSection {
+
+ /** @var IL10N */
+ private $l;
+
+ /** @var IURLGenerator */
+ private $urlGenerator;
+
+ public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
+ $this->l = $l;
+ $this->urlGenerator = $urlGenerator;
+ }
+
+ public function getIcon(): string {
+ return $this->urlGenerator->imagePath('core', 'places/contacts.svg');
+ }
+
+ public function getID(): string {
+ return 'groupware';
+ }
+
+ public function getName(): string {
+ return $this->l->t('Groupware');
+ }
+
+ public function getPriority(): int {
+ return 50;
+ }
+}