libzypp 17.38.5

plaindir.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_PLAINDIR_WORKFLOW_INCLUDED
10#define ZYPP_NG_PLAINDIR_WORKFLOW_INCLUDED
11
12#include <zypp/RepoInfo.h>
13#include <zypp/ng/repo/Downloader>
14#include <zypp-core/ng/async/task.h>
15#include <zypp-core/ng/pipelines/Expected>
16
17#include <zypp/ManagedFile.h>
18
19
20 namespace zyppng {
21 class ProvideMediaHandle;
22 class SyncMediaHandle;
23
24 ZYPP_FWD_DECL_TYPE_WITH_REFS( ProgressObserver );
25
26 namespace PlaindirWorkflows {
27 MaybeAwaitable<expected<zypp::RepoStatus>> repoStatus( repo::DownloadContextRef dl, ProvideMediaHandle mediaHandle );
28
29 MaybeAwaitable<expected<repo::DownloadContextRef>> download ( repo::DownloadContextRef dl, ProvideMediaHandle mediaHandle, ProgressObserverRef progressObserver = nullptr );
30 }
31}
32
33
34
35#endif // ZYPP_NG_PLAINDIR_WORKFLOW_INCLUDED
RepoInfo.h
zyppng::ProgressObserver
Definition progressobserver.h:28
zyppng::ProvideMediaHandle
Definition provide.h:27
zyppng::PlaindirWorkflows
Definition plaindir.cc:22
zyppng::PlaindirWorkflows::download
MaybeAwaitable< expected< repo::DownloadContextRef > > download(repo::DownloadContextRef dl, ProvideMediaHandle mediaHandle, ProgressObserverRef progressObserver)
Definition plaindir.cc:75
zyppng::PlaindirWorkflows::repoStatus
MaybeAwaitable< expected< zypp::RepoStatus > > repoStatus(repo::DownloadContextRef dl, ProvideMediaHandle mediaHandle)
Definition plaindir.cc:38
zyppng
Definition MediaNetworkRequestExecutor.h:16
ManagedFile.h
ZYPP_FWD_DECL_TYPE_WITH_REFS
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)
Definition zyppglobal.h:126