summaryrefslogtreecommitdiffstats
path: root/tdecore/kurl.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-19 10:12:55 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-19 10:12:55 -0500
commiteefe7203109ee4da56a5f93cfbfb760589b97dc9 (patch)
tree5c76349b8725446fb8941892a300cea3a519cc09 /tdecore/kurl.h
parente2c42b9bb60335db0820468dbdca9582035ce56c (diff)
downloadtdelibs-eefe7203109ee4da56a5f93cfbfb760589b97dc9.tar.gz
tdelibs-eefe7203109ee4da56a5f93cfbfb760589b97dc9.zip
Add ability to ignore internal reference URLs in KURL equality comparison
Diffstat (limited to 'tdecore/kurl.h')
-rw-r--r--tdecore/kurl.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/tdecore/kurl.h b/tdecore/kurl.h
index bcb44907e..740c8a0df 100644
--- a/tdecore/kurl.h
+++ b/tdecore/kurl.h
@@ -1483,7 +1483,23 @@ public:
*
* @since 3.1
*/
- bool equals( const KURL &u, bool ignore_trailing = false ) const; // TODO KDE4: add bool _ignore_ref = false
+ bool equals( const KURL &u, bool ignore_trailing = false ) const;
+
+ /**
+ * @brief Compares this URL with another one
+ *
+ * @param u the URL to compare this one with
+ * @param ignore_trailing set to @c true to ignore trailing @c '/' characters
+ * @param ignore_internalReferenceURLS set to @c true to ignore the internal reference URLs during comparison
+ *
+ * @return @c true if both urls are the same
+ *
+ * @see operator==. This function should be used if you want to
+ * ignore trailing @c '/' characters
+ *
+ * @since R14.0.0
+ */
+ bool equals( const KURL &u, bool ignore_trailing, bool ignore_internalReferenceURLS ) const; // TODO KDE4: add bool _ignore_ref = false
/**
* @brief Tests if the given URL is parent of this URL