libzypp 17.37.10

MediaISO.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_MEDIA_MEDIAISO_H
13#define ZYPP_MEDIA_MEDIAISO_H
14
15#include <zypp/media/MediaHandler.h>
16#include <zypp/media/MediaManager.h>
17
19 namespace zypp
20{
21
23 namespace media
24 {
25
26
28 //
29 // CLASS NAME : MediaISO
30 //
35 class MediaISO : public MediaHandler
36 {
37 private:
38 Pathname _isofile;
39 std::string _filesystem;
40
41 protected:
42
43 void attachTo (bool next = false) override;
44 void releaseFrom( const std::string & ejectDev = "" ) override;
45 void getFile( const OnMediaLocation & file ) const override;
46 void getDir( const Pathname & dirname, bool recurse_r ) const override;
47 void getDirInfo( std::list<std::string> & retlist,
48 const Pathname & dirname, bool dots = true ) const override;
49 void getDirInfo( filesystem::DirContent & retlist,
50 const Pathname & dirname, bool dots = true ) const override;
51 bool getDoesFileExist( const Pathname & filename ) const override;
52
53 public:
54
55 MediaISO(const MirroredOrigin &origin_r,
56 const Pathname &attach_point_hint_r);
57
58
59 ~MediaISO() override;
60
61 bool
62 isAttached() const override;
63 };
64
65
67 } // namespace media
69
71} // namespace zypp
73
74#endif // ZYPP_MEDIA_MEDIAISO_H
75
76// vim: set ts=2 sts=2 sw=2 ai et:
77
MediaHandler.h
MediaManager.h
zypp::MirroredOrigin
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
Definition MirroredOrigin.h:170
zypp::OnMediaLocation
Describes a resource file located on a medium.
Definition onmedialocation.h:37
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zypp::media::MediaHandler::MediaHandler
MediaHandler(MirroredOrigin origin_r, const Pathname &attach_point_r, Pathname urlpath_below_attachpoint_r, const bool does_download_r)
If the concrete media handler provides a nonempty attach_point, it must be an existing directory.
Definition MediaHandler.cc:55
zypp::media::MediaISO::~MediaISO
~MediaISO() override
Definition MediaISO.cc:115
zypp::media::MediaISO::attachTo
void attachTo(bool next=false) override
Call concrete handler to attach the media.
Definition MediaISO.cc:142
zypp::media::MediaISO::releaseFrom
void releaseFrom(const std::string &ejectDev="") override
Call concrete handler to release the media.
Definition MediaISO.cc:243
zypp::media::MediaISO::_filesystem
std::string _filesystem
Definition MediaISO.h:39
zypp::media::MediaISO::MediaISO
MediaISO(const MirroredOrigin &origin_r, const Pathname &attach_point_hint_r)
Definition MediaISO.cc:44
zypp::media::MediaISO::getDir
void getDir(const Pathname &dirname, bool recurse_r) const override
Call concrete handler to provide directory content (not recursive!) below attach point.
Definition MediaISO.cc:275
zypp::media::MediaISO::getDoesFileExist
bool getDoesFileExist(const Pathname &filename) const override
check if a file exists
Definition MediaISO.cc:297
zypp::media::MediaISO::getDirInfo
void getDirInfo(std::list< std::string > &retlist, const Pathname &dirname, bool dots=true) const override
Call concrete handler to provide a content list of directory on media via retlist.
Definition MediaISO.cc:282
zypp::media::MediaISO::getFile
void getFile(const OnMediaLocation &file) const override
Call concrete handler to provide file below attach point.
Definition MediaISO.cc:269
zypp::media::MediaISO::_isofile
Pathname _isofile
Definition MediaISO.h:38
zypp::media::MediaISO::isAttached
bool isAttached() const override
True if media is attached.
Definition MediaISO.cc:136
zypp::filesystem::DirContent
std::list< DirEntry > DirContent
Returned by readdir.
Definition PathInfo.h:526
zypp::media
Definition MediaNetworkRequestExecutor.h:22
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20