libzypp  17.32.5
repomanagerwf.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 #ifndef ZYPP_NG_REPOMANAGER_WORKFLOW_INCLUDED
10 #define ZYPP_NG_REPOMANAGER_WORKFLOW_INCLUDED
11 
12 
13 #include <zypp-core/zyppng/pipelines/AsyncResult>
14 #include <zypp-core/zyppng/pipelines/Expected>
15 
17 
18 // for the status enums, we should refactor those out
19 #include <zypp/RepoManager.h>
20 
21 //@ TODO move required types into their own files... e.g. CheckStatus
22 #include <zypp/ng/repo/Refresh>
23 
24 
25 namespace zyppng {
26 
28  ZYPP_FWD_DECL_TYPE_WITH_REFS (SyncContext);
29  ZYPP_FWD_DECL_TYPE_WITH_REFS (ProgressObserver);
30 
31  class ProvideMediaHandle;
32  class SyncMediaHandle;
33 
34  namespace RepoManagerWorkflow {
35 
36  AsyncOpRef<expected<zypp::repo::RepoType> > probeRepoType( ContextRef ctx, ProvideMediaHandle medium, zypp::Pathname path, std::optional<zypp::Pathname> targetPath = {} );
37  expected<zypp::repo::RepoType> probeRepoType ( SyncContextRef ctx, SyncMediaHandle medium, zypp::Pathname path, std::optional<zypp::Pathname> targetPath = {} );
38 
39  AsyncOpRef<expected<repo::RefreshCheckStatus> > checkIfToRefreshMetadata( repo::AsyncRefreshContextRef refCtx, ProvideMediaHandle medium, ProgressObserverRef progressObserver = nullptr );
40  expected<repo::RefreshCheckStatus> checkIfToRefreshMetadata( repo::SyncRefreshContextRef refCtx, SyncMediaHandle medium, ProgressObserverRef progressObserver = nullptr );
41 
42  AsyncOpRef<expected<repo::AsyncRefreshContextRef> > refreshMetadata( repo::AsyncRefreshContextRef refCtx, ProvideMediaHandle medium, ProgressObserverRef progressObserver = nullptr );
43  expected<repo::SyncRefreshContextRef> refreshMetadata( repo::SyncRefreshContextRef refCtx, SyncMediaHandle medium, ProgressObserverRef progressObserver = nullptr );
44 
45  AsyncOpRef<expected<repo::AsyncRefreshContextRef> > buildCache( repo::AsyncRefreshContextRef refCtx, ProgressObserverRef progressObserver = nullptr );
46  expected<repo::SyncRefreshContextRef> buildCache( repo::SyncRefreshContextRef refCtx, ProgressObserverRef progressObserver = nullptr );
47 
48  }
49 }
50 
51 
52 #endif
ZYPP_FWD_DECL_TYPE_WITH_REFS(Context)
AsyncOpRef< expected< repo::RefreshCheckStatus > > checkIfToRefreshMetadata(repo::AsyncRefreshContextRef refCtx, ProvideMediaHandle medium, ProgressObserverRef progressObserver=nullptr)
AsyncOpRef< expected< zypp::repo::RepoType > > probeRepoType(ContextRef ctx, ProvideMediaHandle medium, zypp::Pathname path, std::optional< zypp::Pathname > targetPath={})
AsyncOpRef< expected< repo::AsyncRefreshContextRef > > refreshMetadata(repo::AsyncRefreshContextRef refCtx, ProvideMediaHandle medium, ProgressObserverRef progressObserver)
AsyncOpRef< expected< repo::AsyncRefreshContextRef > > buildCache(repo::AsyncRefreshContextRef refCtx, ProgressObserverRef progressObserver=nullptr)