- SourceManager - provide ids of all installation sources
authorLadislav Slezak <lslezak@suse.cz>
Thu, 9 Feb 2006 12:35:37 +0000 (12:35 +0000)
committerLadislav Slezak <lslezak@suse.cz>
Thu, 9 Feb 2006 12:35:37 +0000 (12:35 +0000)
zypp/SourceManager.cc
zypp/SourceManager.h

index 65aead0..2a0bd51 100644 (file)
@@ -108,6 +108,18 @@ namespace zypp
     return res;
   }
 
+  std::list<unsigned int> SourceManager::allSources() const
+  {
+    std::list<unsigned int> res;
+    
+    for( SourceMap::const_iterator it = _sources.begin(); it != _sources.end(); it++)
+    {
+       res.push_back(it->first);
+    }
+    
+    return res;
+  }
+
   void SourceManager::store(Pathname root_r)
   {
     storage::PersistentStorage store;    
index a0c4233..cbe6b68 100644 (file)
@@ -87,6 +87,12 @@ namespace zypp
     std::list<unsigned int> enabledSources() const;
 
     /**
+     * Return ids of all sources
+     *
+     */
+    std::list<unsigned int> allSources() const;
+
+    /**
      * Add a new source
      *
      * \throws Exception