From 90c26c3effd20c96c049f14098b2f4d23cba82cb Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 6 Feb 2024 13:35:01 +0800 Subject: [PATCH] Make XPC pointer publicly available Signed-off-by: Claudio Cambra --- src/gui/macOS/fileprovider.h | 2 ++ src/gui/macOS/fileprovider_mac.mm | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/gui/macOS/fileprovider.h b/src/gui/macOS/fileprovider.h index 8132c11b3..a76b29af8 100644 --- a/src/gui/macOS/fileprovider.h +++ b/src/gui/macOS/fileprovider.h @@ -39,6 +39,8 @@ public: [[nodiscard]] static bool fileProviderAvailable(); + [[nodiscard]] FileProviderXPC *xpc() const; + public slots: void createDebugArchiveForDomain(const QString &domainIdentifier, const QString &filename) const; diff --git a/src/gui/macOS/fileprovider_mac.mm b/src/gui/macOS/fileprovider_mac.mm index 94b1d9f01..d54608a6e 100644 --- a/src/gui/macOS/fileprovider_mac.mm +++ b/src/gui/macOS/fileprovider_mac.mm @@ -102,5 +102,10 @@ void FileProvider::createDebugArchiveForDomain(const QString &domainIdentifier, _xpc->createDebugArchiveForExtension(domainIdentifier, filename); } +FileProviderXPC *FileProvider::xpc() const +{ + return _xpc.get(); +} + } // namespace Mac } // namespace OCC -- 2.30.2