libzypp: zypp/ng/private/repomanager_p.h Source File

libzypp 17.38.6

repomanager_p.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_PRIVATE_REPOMANAGER_P_H
10#define ZYPP_NG_PRIVATE_REPOMANAGER_P_H
11
12#include <zypp/ng/repomanager.h>
13#include <zypp/zypp_detail/repomanagerbase_p.h>
14#include <zypp-core/ng/base/private/base_p.h>
15
16namespace zyppng {
17
18 class ZYPP_LOCAL RepoManagerPrivate : public BasePrivate, public zypp::RepoManagerBaseImpl
19 {
20 ZYPP_DECLARE_PUBLIC(RepoManager)
21 public:
22
23 RepoManagerPrivate( ContextRef ctx, RepoManagerOptions repoOpts, RepoManager &p );
24
25 AsyncOpRef<expected<zypp::repo::RepoType>> probe( const zypp::Url & url, const zypp::Pathname & path = zypp::Pathname() ) const;
26
27 ContextWeakRef _context; //< weak ref to our context to prevent a ref loop, this should always be valid
28
29 // RepoManagerBaseImpl interface
30 public:
31 void removeRepository(const zypp::RepoInfo &info, const zypp::ProgressData::ReceiverFnc &) override;
32 };
33
34}
35
36
37#endif
ZYPP_LOCAL
#define ZYPP_LOCAL
Definition Globals.h:71
base_p.h
zypp::ProgressData::ReceiverFnc
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition progressdata.h:140
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zyppng::BasePrivate::BasePrivate
BasePrivate(Base &b)
Definition base_p.h:17
zyppng::RepoManagerPrivate::probe
AsyncOpRef< expected< zypp::repo::RepoType > > probe(const zypp::Url &url, const zypp::Pathname &path=zypp::Pathname()) const
zyppng::RepoManagerPrivate::RepoManagerPrivate
RepoManagerPrivate(ContextRef ctx, RepoManagerOptions repoOpts, RepoManager &p)
zyppng::RepoManagerPrivate::removeRepository
void removeRepository(const zypp::RepoInfo &info, const zypp::ProgressData::ReceiverFnc &) override
zyppng::RepoManagerPrivate::_context
ContextWeakRef _context
Definition repomanager_p.h:27
zyppng::RepoManager
The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a giv...
Definition repomanager.h:241
zypp::url
Url details namespace.
Definition UrlBase.cc:58
zyppng
Definition MediaNetworkRequestExecutor.h:16
repomanager.h
zypp::RepoManagerOptions
Repo manager settings.
Definition RepoManagerOptions.h:26
ZYPP_DECLARE_PUBLIC
#define ZYPP_DECLARE_PUBLIC(Class)
Definition zyppglobal.h:91