Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / url / UrlBase.h
index 9ed50a5..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"
 
 
 //////////////////////////////////////////////////////////////////////
@@ -181,8 +181,7 @@ namespace zypp
       /**
        * Create instance with default combination of view options.
        */
-      ViewOption(): opt(DEFAULTS.opt)
-      {}
+      ViewOption();
 
 
       /**
@@ -232,7 +231,7 @@ namespace zypp
       }
 
     private:
-      ViewOption(int o): opt(o) {}
+      ViewOption(int option);
       int opt;
     };
 
@@ -264,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
@@ -355,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.
        */
@@ -587,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.
@@ -863,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);
+
 
       // -----------------
       /**