MediaUserAuth: Do not expose libcurl header files.
authorMichael Andres <ma@suse.de>
Fri, 22 Jul 2011 11:17:57 +0000 (13:17 +0200)
committerMichael Andres <ma@suse.de>
Fri, 22 Jul 2011 11:17:57 +0000 (13:17 +0200)
zypp/media/MediaUserAuth.cc
zypp/media/MediaUserAuth.h

index 20f43a1..d599a71 100644 (file)
@@ -11,6 +11,8 @@
  */
 
 #include <list>
+#include <curl/curl.h>
+
 #include <boost/format.hpp>
 
 #include "zypp/base/Gettext.h"
@@ -64,12 +66,23 @@ std::ostream & AuthData::dumpAsIniOn( std::ostream & str ) const
   return str;
 }
 
+CurlAuthData::CurlAuthData()
+  : AuthData()
+  , _auth_type_str()
+  , _auth_type(CURLAUTH_NONE)
+{}
+
+CurlAuthData::CurlAuthData(const AuthData & authData)
+  : AuthData(authData)
+  , _auth_type_str()
+  , _auth_type(CURLAUTH_NONE)
+{}
+
 bool CurlAuthData::valid() const
 {
   return username().size() && password().size();
 }
 
-
 std::ostream & CurlAuthData::dumpOn( std::ostream & str ) const
 {
   AuthData::dumpOn(str) << " auth_type: " << _auth_type_str
index afa58de..e2780ae 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef ZYPP_MEDIA_USER_AUTH_H
 #define ZYPP_MEDIA_USER_AUTH_H
 
-#include <curl/curl.h>
-
 #include "zypp/base/Deprecated.h"
 
 #include "zypp/Url.h"
@@ -79,14 +77,9 @@ public:
    * Default constructor. Initializes username and password to empty strings
    * and authetication type to CURLAUTH_NONE.
    */
-  CurlAuthData() : AuthData(), _auth_type_str(), _auth_type(CURLAUTH_NONE)
-  {}
+  CurlAuthData();
 
-  CurlAuthData(const AuthData & authData)
-    : AuthData(authData)
-    , _auth_type_str()
-    , _auth_type(CURLAUTH_NONE)
-  {}
+  CurlAuthData(const AuthData & authData);
 
   CurlAuthData(std::string & username, std::string & password, std::string & auth_type)
     : AuthData(username,password), _auth_type_str(auth_type)