libzypp  10.5.0
ServiceRepos.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00009 
00010 #ifndef ZYPP_REPO_SERVICE_REPOS
00011 #define ZYPP_REPO_SERVICE_REPOS
00012 
00013 #include "zypp/base/NonCopyable.h"
00014 #include "zypp/ProgressData.h"
00015 #include "zypp/ServiceInfo.h"
00016 #include "zypp/RepoInfo.h"
00017 
00018 namespace zypp
00019 {
00020   namespace repo
00021   {
00026     class ServiceRepos : private base::NonCopyable
00027     {
00028     public:
00029 
00038       typedef function< bool( const RepoInfo & )> ProcessRepo;
00039 
00040       ServiceRepos(const ServiceInfo &service,
00041                    const ProcessRepo & callback,
00042                    const ProgressData::ReceiverFnc &progress = ProgressData::ReceiverFnc() );
00043       ~ServiceRepos();
00044 
00046       class Impl;
00047     private:
00048       RW_pointer<Impl> _impl;
00049     };
00050   } // ns repo
00051 } // ns zypp
00052 
00053 #endif