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;
std::string password() const;
/**
- * returns the user and password as
+ * returns the user and password as
* a user:pass string
*/
std::string userPassword() const;
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;
* until the connection is dropped
*/
long minDownloadSpeed() const;
-
+
/**
* Set minimum download speed (bytes per second)
* until the connection is dropped
*/
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;