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

libzypp 17.36.6

susetags.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9#ifndef ZYPP_NG_SUSETAGS_WORKFLOW_INCLUDED
10#define ZYPP_NG_SUSETAGS_WORKFLOW_INCLUDED
11
12#include <zypp/RepoInfo.h>
13#include <zypp/ng/repo/Downloader>
14#include <zypp-core/zyppng/pipelines/AsyncResult>
15#include <zypp-core/zyppng/pipelines/Expected>
16
17#include <zypp/ManagedFile.h>
18
19
20namespace zyppng {
21 class ProvideMediaHandle;
22 class SyncMediaHandle;
23
24 ZYPP_FWD_DECL_TYPE_WITH_REFS( ProgressObserver );
25
31 namespace SuseTagsWorkflows {
32
36 AsyncOpRef<expected<zypp::RepoStatus>> repoStatus( repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle );
37 expected<zypp::RepoStatus> repoStatus( repo::SyncDownloadContextRef dl, SyncMediaHandle mediaHandle );
38
42 AsyncOpRef<expected<repo::AsyncDownloadContextRef>> download ( repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle, ProgressObserverRef progressObserver = nullptr );
43 expected<repo::SyncDownloadContextRef> download ( repo::SyncDownloadContextRef dl, SyncMediaHandle mediaHandle, ProgressObserverRef progressObserver = nullptr );
44 }
45}
46
47
48
49#endif // ZYPP_NG_SUSETAGS_WORKFLOW_INCLUDED
RepoInfo.h
zyppng::ProgressObserver
Definition progressobserver.h:28
zyppng::ProvideMediaHandle
Definition provide.h:52
zyppng::SyncMediaHandle
Definition mediafacade.h:26
zyppng::SuseTagsWorkflows
Download workflow namespace for SUSETags (YaST2) repositories Encapsulates all the knowledge of which...
Definition susetags.cc:28
zyppng::SuseTagsWorkflows::download
AsyncOpRef< expected< repo::AsyncDownloadContextRef > > download(repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle, ProgressObserverRef progressObserver)
Definition susetags.cc:330
zyppng::SuseTagsWorkflows::repoStatus
AsyncOpRef< expected< zypp::RepoStatus > > repoStatus(repo::AsyncDownloadContextRef dl, ProvideMediaHandle mediaHandle)
Definition susetags.cc:84
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