libzypp 17.37.17
provideres.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9
10#include "provideres.h"
12
13namespace zyppng {
14
15 ProvideRes::ProvideRes( std::shared_ptr<ProvideResourceData> dataPtr ) : _data(dataPtr)
16 { }
17
20
22 {
23 return _data->_myFile;
24 }
25
27 {
28 return _data->_myFile;
29 }
30
32 {
33 return _data->_mediaHandle;
34 }
35
37 {
38 return _data->_resourceUrl;
39 }
40
42 {
43 return _data->_responseHeaders;
44 }
45
46}
Url manipulation class.
Definition Url.h:93
const HeaderValueMap & headers() const
Definition provideres.cc:41
virtual ~ProvideRes()
Definition provideres.cc:18
const zypp::Url & resourceUrl() const
Definition provideres.cc:36
const ProvideMediaHandle & mediaHandle() const
Definition provideres.cc:31
const zypp::Pathname file() const
Definition provideres.cc:21
const zypp::ManagedFile & asManagedFile() const
Definition provideres.cc:26
std::shared_ptr< ProvideResourceData > _data
Definition provideres.h:69
ProvideRes(std::shared_ptr< ProvideResourceData > dataPtr)
Definition provideres.cc:15
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
Definition ManagedFile.h:27