ref: refs/heads/master
commit 25ba6406e12b21b6005b72c56739717947f10222
Author: Duncan Mac-Vicar P
Date: Tue Mar 3 16:57:33 2009 +0100
method to reset the transfer settings
---
zypp/media/TransferSettings.cc | 5 +++++
zypp/media/TransferSettings.h | 6 ++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/zypp/media/TransferSettings.cc b/zypp/media/TransferSettings.cc
index 54ca112..75cae08 100644
--- a/zypp/media/TransferSettings.cc
+++ b/zypp/media/TransferSettings.cc
@@ -82,6 +82,11 @@ TransferSettings::TransferSettings()
}
+void TransferSettings::reset()
+{
+ _impl.reset(new TransferSettings::Impl());
+}
+
void TransferSettings::addHeader( const std::string &header )
{
_impl->_headers.push_back(header);
diff --git a/zypp/media/TransferSettings.h b/zypp/media/TransferSettings.h
index 567fff9..19ad61f 100644
--- a/zypp/media/TransferSettings.h
+++ b/zypp/media/TransferSettings.h
@@ -33,6 +33,12 @@ public:
TransferSettings( const zypp::Url &url );
typedef std::vectorstd::string Headers;
+
+ /**
+ * reset the settings to the defaults
+ */
+ void reset();
+
/**
* add a header, on the form "Foo: Bar"
*/
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org