Add fileproviderutils namespace
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 1 Nov 2023 05:20:51 +0000 (13:20 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 19 Feb 2024 14:45:16 +0000 (22:45 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/CMakeLists.txt
src/gui/macOS/fileproviderutils.h [new file with mode: 0644]
src/gui/macOS/fileproviderutils_mac.mm [new file with mode: 0644]

index db37c388b65da2e6fb36bfa03e7b41be785b8456..99dcde464653be999e5d27f7f031d6493114c9ce 100644 (file)
@@ -308,6 +308,8 @@ IF( APPLE )
             macOS/fileprovidersocketserver_mac.mm
             macOS/fileproviderstorageuseenumerationobserver.h
             macOS/fileproviderstorageuseenumerationobserver.m
+            macOS/fileproviderutils.h
+            macOS/fileproviderutils_mac.mm
             macOS/fileproviderxpc.h
             macOS/fileproviderxpc_mac.mm
             macOS/fileproviderxpc_mac_utils.h
diff --git a/src/gui/macOS/fileproviderutils.h b/src/gui/macOS/fileproviderutils.h
new file mode 100644 (file)
index 0000000..af9cfbc
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2023 (c) Claudio Cambra <claudio.cambra@nextcloud.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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 General Public License
+ * for more details.
+ */
+
+#pragma once
+
+#import <FileProvider/FileProvider.h>
+
+/**
+ * This file contains the FileProviderUtils namespace, which contains
+ * utility functions for the FileProvider extension.
+ *
+ * Unlike other classes or namespaces in this module, this does not have
+ * a clear file separation between C++ and Objective C++ code.
+ * This is intended as a completely Objective-C++ namespace!
+ *
+ * You should threfore try to avoid using this in C++ code wherever possible
+ * and only use this in *_mac.mm implementation files.
+ */
+
+namespace OCC {
+
+namespace Mac {
+
+namespace FileProviderUtils {
+
+
+
+} // namespace FileProviderUtils
+
+} // namespace Mac
+
+} // namespace OCC
diff --git a/src/gui/macOS/fileproviderutils_mac.mm b/src/gui/macOS/fileproviderutils_mac.mm
new file mode 100644 (file)
index 0000000..059ce34
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2023 (c) Claudio Cambra <claudio.cambra@nextcloud.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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 General Public License
+ * for more details.
+ */
+
+#include "fileproviderutils.h"
+
+namespace OCC {
+
+namespace Mac {
+
+namespace FileProviderUtils {
+
+} // namespace FileProviderUtils
+
+} // namespace Mac
+
+} // namespace OCC