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