- cosmetics
authorJan Kupec <jkupec@suse.cz>
Thu, 24 Jul 2008 13:18:43 +0000 (13:18 +0000)
committerJan Kupec <jkupec@suse.cz>
Thu, 24 Jul 2008 13:18:43 +0000 (13:18 +0000)
zypp/RepoInfo.h
zypp/Service.cc
zypp/Service.h

index 327a78b..152264c 100644 (file)
@@ -239,8 +239,8 @@ namespace zypp
     bool keepPackages() const;
 
     /**
-     * Gets service name which add it or empty string if this repository
-     * is added manually.
+     * Gets name of the service to which this repository belongs or empty string
+     * if it has been added manually.
      */
     std::string service() const;
 
index 39c2c28..75b3816 100644 (file)
@@ -1,3 +1,14 @@
+/*---------------------------------------------------------------------\
+|                          ____ _   __ __ ___                          |
+|                         |__  / \ / / . \ . \                         |
+|                           / / \ V /|  _/  _/                         |
+|                          / /__ | | | | | |                           |
+|                         /_____||_| |_| |_|                           |
+|                                                                      |
+\---------------------------------------------------------------------*/
+/** \file       zypp/Service.cc
+ *
+ */
 #include "zypp/Service.h"
 
 #include <ostream>
 #include "zypp/parser/RepoindexFileReader.h"
 
 using namespace std;
+
 ///////////////////////////////////////////////////////////////////////////////
 namespace zypp 
 {//////////////////////////////////////////////////////////////////////////////
 
-  struct RepoInfoCollector {
-    std::vector<RepoInfo> repos;
+
+  struct RepoInfoCollector
+  {
+    vector<RepoInfo> repos;
     bool collect(const RepoInfo& info)
     {
       repos.push_back(info);
@@ -22,31 +36,36 @@ namespace zypp
     }
   };
 
-  class Service::Impl{
-    public:
-      string name;
-      Url url;
-      DefaultIntegral<bool,false> enabled;
-      Pathname loc;
-
-      Impl() : name("") {};
-      Impl(const string& name_) : name(name_) {};
-      Impl(const string& name_, const Url& url_) : name(name_), url(url_) {};
-    private:
-      friend Impl * rwcowClone<Impl>( const Impl * rhs );
-      /** clone for RWCOW_pointer */
-      Impl * clone() const
-      { return new Impl( *this ); }
+
+  class Service::Impl
+  {
+  public:
+    string name;
+    Url url;
+    DefaultIntegral<bool,false> enabled;
+    Pathname loc;
+
+    Impl() : name("") {};
+    Impl(const string& name_) : name(name_) {};
+    Impl(const string& name_, const Url& url_) : name(name_), url(url_) {};
+
+  private:
+    friend Impl * rwcowClone<Impl>( const Impl * rhs );
+
+    /** clone for RWCOW_pointer */
+    Impl * clone() const
+    { return new Impl( *this ); }
   };
 
+
+  const Service Service::noService;
+
   Service::Service() : _pimpl( new Impl() ) {};
 
   Service::Service(const string& name) : _pimpl( new Impl(name) ) {};
   Service::Service(const string& name, const Url& url)
     : _pimpl( new Impl(name,url) ) {};
 
-  const Service Service::noService;
-
   string Service::name() const { return _pimpl->name; }
   void Service::setName( const std::string& name ) { _pimpl->name = name; }
 
index 33a9388..6a71c71 100644 (file)
@@ -13,8 +13,9 @@
 #define ZYPP_SERVICE_H
 
 #include <string>
+
 #include "zypp/Url.h"
-#include "zypp/RepoManager.h"
+#include "zypp/Pathname.h"
 
 
 ///////////////////////////////////////////////////////////////////