summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-07-13 16:51:16 +0200
committerRichard Steinmetz <richard@steinmetz.cloud>2024-07-16 09:18:33 +0200
commite42bceac9fc5845ad3614d3254bbb270e0d9d847 (patch)
tree53062f9f3ee11966417266a241c0f2800514c7ad /lib/public
parent70dd8d513bf73c8d56fea2aae4a02718a328f6e3 (diff)
downloadnextcloud-server-e42bceac9fc5845ad3614d3254bbb270e0d9d847.tar.gz
nextcloud-server-e42bceac9fc5845ad3614d3254bbb270e0d9d847.zip
feat: hide caldav server settings if no app uses the caldav backend
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/App/IAppManager.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php
index 508143426f5..e11bb0c36f5 100644
--- a/lib/public/App/IAppManager.php
+++ b/lib/public/App/IAppManager.php
@@ -20,6 +20,11 @@ use OCP\IUser;
*/
interface IAppManager {
/**
+ * @since 30.0.0
+ */
+ public const BACKEND_CALDAV = 'caldav';
+
+ /**
* Returns the app information from "appinfo/info.xml".
*
* @param string|null $lang
@@ -261,4 +266,14 @@ interface IAppManager {
* @since 28.0.0
*/
public function setDefaultApps(array $defaultApps): void;
+
+ /**
+ * Check whether the given backend is required by at least one app.
+ *
+ * @param self::BACKEND_* $backend Name of the backend, one of `self::BACKEND_*`
+ * @return bool True if at least one app requires the backend
+ *
+ * @since 30.0.0
+ */
+ public function isBackendRequired(string $backend): bool;
}