diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-06-21 01:29:47 +1000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-06-21 04:37:53 +0200 |
commit | e7e87ad179d5d7383d1b6be58f624ba302c16d73 (patch) | |
tree | 4bc7e5904c50278cc7fa4dae900008bce750c4c1 /include/tools/urlobj.hxx | |
parent | cb28e48bfd7e8727797435dc05bdfe1652fb34f0 (diff) |
Extend INetURLObject::setName and drop INetURLObject::SetName
Change-Id: I488313eeb363d2a9344d6bc801900d5b1f913020
Reviewed-on: https://gerrit.libreoffice.org/74463
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/tools/urlobj.hxx')
-rw-r--r-- | include/tools/urlobj.hxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index f72f2521a2b2..a1244bd7eba6 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -574,12 +574,18 @@ public: @param rTheName The new name. + @param eMechanism See the general discussion for get-methods. + + @param eCharset See the general discussion for get-methods. + @return True if the name has successfully been modified (and the resulting URI is still valid). If the path is not hierarchical, or the specified segment does not exist, false is returned. If false is returned, the object is not modified. */ - bool setName(OUString const & rTheName); + bool setName(OUString const& rTheName, + EncodeMechanism eMechanism = EncodeMechanism::WasEncoded, + rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8); /** Get the base of the name of a segment. @@ -926,10 +932,6 @@ public: OUString GetBase() const; - void SetName(OUString const & rTheName, - EncodeMechanism eMechanism = EncodeMechanism::WasEncoded, - rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8); - void SetExtension(OUString const & rTheExtension); OUString CutExtension(); |