libzypp: zypp-media/ng/provideres.h Source File

libzypp 17.36.6

provideres.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
11#ifndef ZYPP_MEDIA_PROVIDERES_H_INCLUDED
12#define ZYPP_MEDIA_PROVIDERES_H_INCLUDED
13
14#include <zypp-media/ng/ProvideFwd>
15#include <zypp-core/Pathname.h>
16#include <zypp-core/ManagedFile.h>
17#include <memory>
18
19
20namespace zyppng
21{
22
23 struct ProvideResourceData;
24
35 class ProvideRes
36 {
37 public:
38 ProvideRes( std::shared_ptr<ProvideResourceData> dataPtr );
39 virtual ~ProvideRes();
40
44 const zypp::Pathname file () const;
45
51 const zypp::ManagedFile & asManagedFile () const;
52
56 const ProvideMediaHandle &mediaHandle () const;
57
61 const zypp::Url &resourceUrl () const;
62
66 const HeaderValueMap &headers () const;
67
68 private:
69 std::shared_ptr<ProvideResourceData> _data;
70 };
71}
72
73
74#endif
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zyppng::HeaderValueMap
Definition headervaluemap.h:67
zyppng::ProvideMediaHandle
Definition provide.h:52
zyppng::ProvideRes::headers
const HeaderValueMap & headers() const
Definition provideres.cc:41
zyppng::ProvideRes::~ProvideRes
virtual ~ProvideRes()
Definition provideres.cc:18
zyppng::ProvideRes::resourceUrl
const zypp::Url & resourceUrl() const
Definition provideres.cc:36
zyppng::ProvideRes::mediaHandle
const ProvideMediaHandle & mediaHandle() const
Definition provideres.cc:31
zyppng::ProvideRes::file
const zypp::Pathname file() const
Definition provideres.cc:21
zyppng::ProvideRes::asManagedFile
const zypp::ManagedFile & asManagedFile() const
Definition provideres.cc:26
zyppng::ProvideRes::_data
std::shared_ptr< ProvideResourceData > _data
Definition provideres.h:69
zyppng::ProvideRes::ProvideRes
ProvideRes(std::shared_ptr< ProvideResourceData > dataPtr)
Definition provideres.cc:15
zypp::ManagedFile
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
Definition ManagedFile.h:27
zyppng
Definition MediaCurl2.h:22
zyppng::ProvideResourceData
Definition provideres_p.h:15
ManagedFile.h
Pathname.h