libzypp 17.37.17
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>
17#include <memory>
18
19
20namespace zyppng
21{
22
24
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
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