Make XPC pointer publicly available

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-02-06 13:35:01 +08:00
parent ae524c0346
commit 90c26c3eff
2 changed files with 7 additions and 0 deletions

View file

@ -39,6 +39,8 @@ public:
[[nodiscard]] static bool fileProviderAvailable(); [[nodiscard]] static bool fileProviderAvailable();
[[nodiscard]] FileProviderXPC *xpc() const;
public slots: public slots:
void createDebugArchiveForDomain(const QString &domainIdentifier, const QString &filename) const; void createDebugArchiveForDomain(const QString &domainIdentifier, const QString &filename) const;

View file

@ -102,5 +102,10 @@ void FileProvider::createDebugArchiveForDomain(const QString &domainIdentifier,
_xpc->createDebugArchiveForExtension(domainIdentifier, filename); _xpc->createDebugArchiveForExtension(domainIdentifier, filename);
} }
FileProviderXPC *FileProvider::xpc() const
{
return _xpc.get();
}
} // namespace Mac } // namespace Mac
} // namespace OCC } // namespace OCC