libzypp: zypp/ng/repo/workflows/rpmmd.h Source File

libzypp 17.36.6

rpmmd.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_RPMMD_WORKFLOW_INCLUDED
10#define ZYPP_NG_RPMMD_WORKFLOW_INCLUDED
11
12
13#include <zypp/RepoInfo.h>
14#include <zypp/ng/repo/Downloader>
15#include <zypp-core/zyppng/pipelines/AsyncResult>
16#include <zypp-core/zyppng/pipelines/Expected>
17
18#include <zypp/ManagedFile.h>
19
20
21namespace zyppng {
22 class ProvideMediaHandle;
23 class SyncMediaHandle;
24
25 ZYPP_FWD_DECL_TYPE_WITH_REFS( ProgressObserver );
26
32 namespace RpmmdWorkflows {
33 AsyncOpRef<expected<zypp::RepoStatus>> repoStatus( repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle );
34 expected<zypp::RepoStatus> repoStatus(repo::SyncDownloadContextRef dl, SyncMediaHandle mediaHandle );
35
36 AsyncOpRef<expected<repo::AsyncDownloadContextRef>> download ( repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle, ProgressObserverRef progressObserver = nullptr );
37 expected<repo::SyncDownloadContextRef> download ( repo::SyncDownloadContextRef dl, SyncMediaHandle mediaHandle, ProgressObserverRef progressObserver = nullptr );
38 }
39}
40
41
42#endif
RepoInfo.h
zyppng::ProgressObserver
Definition progressobserver.h:28
zyppng::ProvideMediaHandle
Definition provide.h:52
zyppng::SyncMediaHandle
Definition mediafacade.h:26
zyppng::RpmmdWorkflows
Downloader workspace for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files hav...
Definition rpmmd.cc:24
zyppng::RpmmdWorkflows::download
AsyncOpRef< expected< repo::AsyncDownloadContextRef > > download(repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle, ProgressObserverRef progressObserver)
Definition rpmmd.cc:171
zyppng::RpmmdWorkflows::repoStatus
AsyncOpRef< expected< zypp::RepoStatus > > repoStatus(repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle)
Definition rpmmd.cc:74
zyppng
Definition MediaCurl2.h:22
zyppng::AsyncOpRef
std::shared_ptr< AsyncOp< T > > AsyncOpRef
Definition asyncop.h:255
ManagedFile.h
ZYPP_FWD_DECL_TYPE_WITH_REFS
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126