Imported Upstream version 15.0.0
[platform/upstream/libzypp.git] / zypp / media / TransferSettings.h
index 567fff9..210b586 100644 (file)
@@ -33,18 +33,24 @@ public:
   TransferSettings( const zypp::Url &url );
 
   typedef std::vector<std::string> Headers;
+
+  /**
+   * reset the settings to the defaults
+   */
+  void reset();
+
   /**
    * add a header, on the form "Foo: Bar"
    */
   void addHeader( const std::string &header );
 
   /**
-   * begin iterators to additional headers 
+   * begin iterators to additional headers
    */
   Headers::const_iterator headersBegin() const;
 
   /**
-   * end iterators to additional headers 
+   * end iterators to additional headers
    */
   Headers::const_iterator headersEnd() const;
 
@@ -79,7 +85,7 @@ public:
   std::string password() const;
 
   /**
-   * returns the user and password as 
+   * returns the user and password as
    * a user:pass string
    */
   std::string userPassword() const;
@@ -130,7 +136,7 @@ public:
   std::string proxyPassword() const;
 
   /**
-   * returns the proxy user and password as 
+   * returns the proxy user and password as
    * a user:pass string
    */
   std::string proxyUserPassword() const;
@@ -170,7 +176,7 @@ public:
    * until the connection is dropped
    */
   long minDownloadSpeed() const;
-  
+
   /**
    * Set minimum download speed (bytes per second)
    * until the connection is dropped
@@ -228,6 +234,36 @@ public:
    */
   void setCertificateAuthoritiesPath( const zypp::Pathname &path );
 
+  /**
+   * set the allowed authentication types
+   */
+  void setAuthType( const std::string &authtype );
+
+  /**
+   * get the allowed authentication types
+   */
+  std::string authType() const;
+
+  /**
+   * set whether HEAD requests are allowed
+   */
+  void setHeadRequestsAllowed(bool allowed);
+
+  /**
+   * whether HEAD requests are allowed
+   */
+  bool headRequestsAllowed() const;
+
+  /**
+   * SSL client certificate file
+   */
+  Pathname clientCertificatePath() const;
+
+  /**
+   * Sets the SSL client certificate file
+   */
+  void setClientCertificatePath( const zypp::Pathname &path );
+
 protected:
   class Impl;
   RWCOW_pointer<Impl> _impl;