libzypp: zypp/repo/ServiceRepos.h Source File

libzypp 17.25.10

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 {
25 class ServiceRepos : private base::NonCopyable
26 {
27 public:
32 typedef function< bool( const RepoInfo & )> ProcessRepo;
33
38 ServiceRepos( const Pathname & root_r,
39 const ServiceInfo & service,
40 const ProcessRepo & callback,
41 const ProgressData::ReceiverFnc &progress = ProgressData::ReceiverFnc() );
42 ~ServiceRepos();
43
44 public:
45 struct Impl;
46 private:
47 RW_pointer<Impl> _impl;
48 };
49 } // ns repo
50 } // ns zypp
51
52 #endif
NonCopyable.h
ProgressData.h
RepoInfo.h
ServiceInfo.h
zypp::ProgressData::ReceiverFnc
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition: ProgressData.h:139
zypp::RepoInfo
What is known about a repository.
Definition: RepoInfo.h:72
zypp::ServiceInfo
Service data.
Definition: ServiceInfo.h:37
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:45
zypp::repo::ServiceRepos
Retrieval of repository list for a service.
Definition: ServiceRepos.h:26
zypp::repo::ServiceRepos::~ServiceRepos
~ServiceRepos()
Definition: ServiceRepos.cc:105
zypp::repo::ServiceRepos::ProcessRepo
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
zypp::repo::ServiceRepos::_impl
RW_pointer< Impl > _impl
Expose type only.
Definition: ServiceRepos.h:45
zypp::repo::ServiceRepos::ServiceRepos
ServiceRepos(const Pathname &root_r, const ServiceInfo &service, const ProcessRepo &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
bsc#1080693: Explicitly pass the RemoManagers rootDir until it can be queried from the ServiceInfo.
Definition: ServiceRepos.cc:96
zypp::base::NonCopyable
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::RW_pointer
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:286
zypp::repo::ServiceRepos::Impl
Definition: ServiceRepos.cc:22