libzypp 17.37.10

provideres.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9
10#include "provideres.h"
11#include "private/provideres_p.h"
12
13 namespace zyppng {
14
15 ProvideRes::ProvideRes( std::shared_ptr<ProvideResourceData> dataPtr ) : _data(dataPtr)
16 { }
17
18 ProvideRes::~ProvideRes()
19 { }
20
21 const zypp::filesystem::Pathname ProvideRes::file() const
22 {
23 return _data->_myFile;
24 }
25
26 const zypp::ManagedFile & ProvideRes::asManagedFile () const
27 {
28 return _data->_myFile;
29 }
30
31 const ProvideMediaHandle &ProvideRes::mediaHandle () const
32 {
33 return _data->_mediaHandle;
34 }
35
36 const zypp::Url &ProvideRes::resourceUrl () const
37 {
38 return _data->_resourceUrl;
39 }
40
41 const HeaderValueMap &ProvideRes::headers () const
42 {
43 return _data->_responseHeaders;
44 }
45
46}
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:55
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 MediaNetworkRequestExecutor.h:16
provideres.h
provideres_p.h