From: Claudio Cambra Date: Tue, 6 Feb 2024 05:35:01 +0000 (+0800) Subject: Make XPC pointer publicly available X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~111^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=90c26c3effd20c96c049f14098b2f4d23cba82cb;p=nextcloud-desktop.git Make XPC pointer publicly available Signed-off-by: Claudio Cambra --- 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