diff options
author | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2015-08-30 20:24:39 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-10-05 11:11:24 +0000 |
commit | 8ea85c264f22c76d393c0f78e9db7df51e2c868d (patch) | |
tree | 6eba89b06e917c175ae182ae33ca8506b7f2c138 /include/tools | |
parent | 8d65149d252b9daf6f4ee40aa94d0d150dab4948 (diff) |
Add isSchemeEqualTo(), isAnyKnownWebDAVScheme() to INetURLObject
...which will be used when rebasing
<https://gerrit.libreoffice.org/#/c/17189>
"tdf#82744: fix WebDAV lock/unlock behaviour - part 3" on top of
d3de490437df4c9093f32e97fc185066d64c0f46
"Add vnd.sun.star.webdavs URL scheme."
Change-Id: I19bd715d755a6f070b95ce897d8a1bbb4910d537
Reviewed-on: https://gerrit.libreoffice.org/18151
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/urlobj.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index 77786661152d..d487851eb575 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -390,6 +390,17 @@ public: inline INetProtocol GetProtocol() const { return m_eScheme; } + bool isSchemeEqualTo(INetProtocol scheme) const { return scheme == m_eScheme; } + + bool isSchemeEqualTo(OUString const & scheme) const; + + /** Check if the scheme is one of the WebDAV scheme + * we know about. + * + * @return true is one othe scheme either public scheme or private scheme. + */ + bool isAnyKnownWebDAVScheme() const; + /** Return the URL 'prefix' for a given scheme. @param eTheScheme One of the supported URL schemes. |