diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp index 91daee6a2..19c88e4c4 100644 --- a/wsd/DocumentBroker.hpp +++ b/wsd/DocumentBroker.hpp @@ -33,7 +33,9 @@ #include "common/SigUtil.hpp" +#if !MOBILEAPP #include "Admin.hpp" +#endif // Forwards. class PrisonerRequestDispatcher; diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp index e8b769d3f..484751352 100644 --- a/wsd/Storage.cpp +++ b/wsd/Storage.cpp @@ -462,14 +462,20 @@ std::map GetQueryParams(const Poco::URI& uri) } // anonymous namespace +#endif // !MOBILEAPP + void LockContext::initSupportsLocks() { +#if MOBILEAPP + _supportsLocks = false; +#else if (_supportsLocks) return; // first time token setup _supportsLocks = true; _lockToken = "lool-lock" + Util::rng::getHexString(8); +#endif } bool LockContext::needsRefresh(const std::chrono::steady_clock::time_point &now) const @@ -490,6 +496,8 @@ void LockContext::dumpState(std::ostream& os) os << " last locked: " << Util::getSteadyClockAsString(_lastLockTime) << "\n"; } +#if !MOBILEAPP + std::unique_ptr WopiStorage::getWOPIFileInfo(const Authorization& auth, LockContext &lockCtx) { // update the access_token to the one matching to the session @@ -1100,6 +1108,6 @@ StorageBase::SaveResult WebDAVStorage::saveLocalFileToStorage( return StorageBase::SaveResult(StorageBase::SaveResult::OK); } -#endif +#endif // !MOBILEAPP /* vim:set shiftwidth=4 softtabstop=4 expandtab: */