libzypp  17.34.1
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>
15 
16 namespace zyppng {
17 
19  {
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
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition: progressdata.h:140
What is known about a repository.
Definition: RepoInfo.h:71
Repo manager settings.
std::shared_ptr< AsyncOp< T > > AsyncOpRef
Definition: asyncop.h:255
#define ZYPP_DECLARE_PUBLIC(Class)
Definition: zyppglobal.h:97
Url manipulation class.
Definition: Url.h:91
#define ZYPP_LOCAL
Definition: Globals.h:61