Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / url / UrlBase.h
index 3d3f801..b790784 100644 (file)
@@ -12,8 +12,8 @@
 #ifndef   ZYPP_URL_URLBASE_H
 #define   ZYPP_URL_URLBASE_H
 
-#include <zypp/url/UrlUtils.h>
-#include <zypp/base/PtrTypes.h>
+#include "zypp/url/UrlUtils.h"
+#include "zypp/base/PtrTypes.h"
 
 
 //////////////////////////////////////////////////////////////////////
@@ -263,7 +263,7 @@ namespace zypp
      *
      * The UrlBase class implements default behaviour for URL
      * manipulations and a base for implementation of scheme-
-     * specialized URL's for the Url class.
+     * specialized URLs for the Url class.
      *
      */
     class UrlBase
@@ -354,11 +354,11 @@ namespace zypp
        * or compatible to).
        *
        * For example, if your derived class implements special
-       * features of LDAP URL's, this method may return "ldap"
+       * features of LDAP URLs, this method may return "ldap"
        * and "ldaps" scheme names.
        *
        * The UrlBase class returns an empty vector, that signals
-       * that it is useable with all URL's.
+       * that it is useable with all URLs.
        *
        * \return A vector with scheme names known by this object.
        */
@@ -400,16 +400,6 @@ namespace zypp
       virtual bool
       isValid() const;
 
-      /**
-      * \brief Gets if url uses local network or pc scheme.
-      *
-      * Looks if url use local network scheme or uses internet
-      * scheme like http, ftp, smb.
-      *
-      *  \return True if url uses local network or pc scheme
-      */
-      virtual bool
-      isLocal() const;
 
       // -----------------
       /**
@@ -596,7 +586,7 @@ namespace zypp
        * Returns the encoded query string component of the URL.
        *
        * The query string is returned without first "?" (separator)
-       * character. Further "?" characters as in e.g. LDAP URL's
+       * character. Further "?" characters as in e.g. LDAP URLs
        * remains in the returned string.
        *
        * \return The encoded query string component of the URL.
@@ -872,6 +862,17 @@ namespace zypp
       virtual void
       setQueryParam(const std::string &param, const std::string &value);
 
+      /**
+       * \brief remove the specified query parameter.
+       * \param param The decoded query parameter name.
+       * \throws UrlNotSupportedException if parameter parsing
+       *         is not supported for a URL (scheme).
+       * \throws UrlDecodingException if the decoded result string
+       *         would contain a '\\0' character.
+       */
+      virtual void
+      delQueryParam(const std::string &param);
+
 
       // -----------------
       /**