libzypp  15.28.6
ServiceRepos.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
10 #ifndef ZYPP_REPO_SERVICE_REPOS
11 #define ZYPP_REPO_SERVICE_REPOS
12 
13 #include "zypp/base/NonCopyable.h"
14 #include "zypp/ProgressData.h"
15 #include "zypp/ServiceInfo.h"
16 #include "zypp/RepoInfo.h"
17 
18 namespace zypp
19 {
20  namespace repo
21  {
26  {
27  public:
32  typedef function< bool( const RepoInfo & )> ProcessRepo;
33 
34  ServiceRepos( const ServiceInfo & service,
35  const ProcessRepo & callback,
37  ~ServiceRepos();
38 
39  public:
40  class Impl;
41  private:
43  };
44  } // ns repo
45 } // ns zypp
46 
47 #endif
Service data.
Definition: ServiceInfo.h:36
function< bool(const RepoInfo &)> ProcessRepo
Return false from the callback to get a AbortRequestException to be thrown and the processing to be c...
Definition: ServiceRepos.h:32
Retrieval of repository list for a service.
Definition: ServiceRepos.h:25
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition: ProgressData.h:139
ServiceRepos(const ServiceInfo &service, const ProcessRepo &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Definition: ServiceRepos.cc:83
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
RW_pointer< Impl > _impl
Expose type only.
Definition: ServiceRepos.h:40