libzypp 17.37.10

serviceswf.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_SERVICES_WORKFLOW_INCLUDED
10#define ZYPP_NG_SERVICES_WORKFLOW_INCLUDED
11
12#include <zypp-core/zyppng/base/zyppglobal.h>
13
14#include <zypp-core/zyppng/pipelines/AsyncResult>
15#include <zypp-core/zyppng/pipelines/Expected>
16
17#include <zypp/RepoManagerFlags.h>
18#include <zypp/ng/repomanager.h>
19
20#include <zypp/repo/ServiceType.h>
21#include <zypp/ServiceInfo.h>
22
23
24 namespace zyppng {
25
26 ZYPP_FWD_DECL_TYPE_WITH_REFS (Context);
27 ZYPP_FWD_DECL_TYPE_WITH_REFS (SyncContext);
28 ZYPP_FWD_DECL_TYPE_WITH_REFS (ProgressObserver);
29
30 namespace RepoServicesWorkflow {
31 AsyncOpRef<expected<std::pair<zypp::ServiceInfo, RepoInfoList>>> fetchRepoListfromService( ContextRef ctx, zypp::Pathname root_r, ServiceInfo service, ProgressObserverRef myProgress = nullptr );
32 expected<std::pair<zypp::ServiceInfo, RepoInfoList>> fetchRepoListfromService( SyncContextRef ctx, zypp::Pathname root_r, ServiceInfo service, ProgressObserverRef myProgress = nullptr );
33
34 AsyncOpRef<expected<zypp::repo::ServiceType> > probeServiceType( ContextRef ctx, const zypp::Url &url );
35 expected<zypp::repo::ServiceType> probeServiceType ( SyncContextRef ctx, const zypp::Url &url );
36
37 AsyncOpRef<expected<void>> refreshService ( AsyncRepoManagerRef repoMgr, zypp::ServiceInfo info, zypp::RepoManagerFlags::RefreshServiceOptions options );
38 expected<void> refreshService ( SyncRepoManagerRef repoMgr, zypp::ServiceInfo info, zypp::RepoManagerFlags::RefreshServiceOptions options );
39 }
40} // namespace zyppng;
41
42
43#endif
RepoManagerFlags.h
ServiceInfo.h
ServiceType.h
zyppng::Context
Definition context.h:39
zyppng::ProgressObserver
Definition progressobserver.h:28
zyppng::SyncContext
Definition contextfacade.h:27
zypp::RepoManagerFlags::RefreshServiceOptions
RefreshServiceFlags RefreshServiceOptions
Options tuning RefreshService.
Definition RepoManagerFlags.h:42
zyppng::RepoServicesWorkflow
Definition serviceswf.cc:33
zyppng::RepoServicesWorkflow::refreshService
AsyncOpRef< expected< void > > refreshService(AsyncRepoManagerRef repoMgr, ServiceInfo info, zypp::RepoManagerFlags::RefreshServiceOptions options)
Definition serviceswf.cc:763
zyppng::RepoServicesWorkflow::fetchRepoListfromService
AsyncOpRef< expected< std::pair< zypp::ServiceInfo, RepoInfoList > > > fetchRepoListfromService(ContextRef ctx, zypp::Pathname root_r, ServiceInfo service, ProgressObserverRef myProgress)
Definition serviceswf.cc:244
zyppng::RepoServicesWorkflow::probeServiceType
AsyncOpRef< expected< zypp::repo::ServiceType > > probeServiceType(ContextRef ctx, const zypp::Url &url)
Definition serviceswf.cc:306
zyppng
Definition MediaNetworkRequestExecutor.h:16
zyppng::AsyncOpRef
std::shared_ptr< AsyncOp< T > > AsyncOpRef
Definition asyncop.h:255
zyppng::ServiceInfo
zypp::ServiceInfo ServiceInfo
Definition repomanager.h:39
zyppng::SyncRepoManagerRef
RepoManagerRef< SyncContextRef > SyncRepoManagerRef
Definition repomanager.h:49
zyppng::AsyncRepoManagerRef
RepoManagerRef< ContextRef > AsyncRepoManagerRef
Definition repomanager.h:52
repomanager.h
zyppglobal.h
ZYPP_FWD_DECL_TYPE_WITH_REFS
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126