libzypp
17.36.2
MediaPlugin.cc
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#include <iostream>
13
14
#include <
zypp/base/LogTools.h
>
15
#include <
zypp/base/String.h
>
16
17
#include <
zypp/ExternalProgram.h
>
18
19
#include <
zypp/media/MediaPlugin.h
>
20
#include <
zypp/media/MediaManager.h
>
21
22
using
std::endl;
23
25
namespace
zypp
26
{
28
namespace
media
29
{
30
31
MediaPlugin::MediaPlugin
(
const
Url
& url_r,
const
Pathname
& attach_point_hint_r )
32
:
MediaHandler
( url_r, attach_point_hint_r,
/*path below attachpoint*/
"/"
,
/*does_download*/
false )
33
{
34
MIL
<<
"MediaPlugin::MediaPlugin("
<< url_r <<
", "
<< attach_point_hint_r <<
")"
<< endl;
35
}
36
void
MediaPlugin::attachTo
(
bool
next_r )
37
{}
38
39
void
MediaPlugin::releaseFrom
(
const
std::string & ejectDev_r )
40
{}
41
42
void
MediaPlugin::getFile
(
const
OnMediaLocation
&file )
const
43
{}
44
45
void
MediaPlugin::getDir
(
const
Pathname
& dirname_r,
bool
recurse_r )
const
46
{}
47
48
void
MediaPlugin::getDirInfo
( std::list<std::string> & retlist_r,
const
Pathname
& dirname_r,
bool
dots_r )
const
49
{}
50
51
void
MediaPlugin::getDirInfo
(
filesystem::DirContent
& retlist_r,
const
Pathname
& dirname_r,
bool
dots_r )
const
52
{}
53
54
bool
MediaPlugin::getDoesFileExist
(
const
Pathname
& filename_r )
const
55
{
return
false
; }
56
58
}
// namespace media
61
}
// namespace zypp
MediaManager.h
MediaPlugin.h
zypp::OnMediaLocation
Describes a resource file located on a medium.
Definition
onmedialocation.h:37
zypp::Url
Url manipulation class.
Definition
Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition
Pathname.h:47
zypp::media::MediaHandler::MediaHandler
MediaHandler(Url url_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::MediaPlugin::attachTo
void attachTo(bool next_r=false) override
Call concrete handler to attach the media.
Definition
MediaPlugin.cc:36
zypp::media::MediaPlugin::getFile
void getFile(const OnMediaLocation &file) const override
Call concrete handler to provide file below attach point.
Definition
MediaPlugin.cc:42
zypp::media::MediaPlugin::getDoesFileExist
bool getDoesFileExist(const Pathname &filename_r) const override
check if a file exists
Definition
MediaPlugin.cc:54
zypp::media::MediaPlugin::getDir
void getDir(const Pathname &dirname_r, bool recurse_r) const override
Call concrete handler to provide directory content (not recursive!) below attach point.
Definition
MediaPlugin.cc:45
zypp::media::MediaPlugin::releaseFrom
void releaseFrom(const std::string &ejectDev_r) override
Call concrete handler to release the media.
Definition
MediaPlugin.cc:39
zypp::media::MediaPlugin::getDirInfo
void getDirInfo(std::list< std::string > &retlist_r, const Pathname &dirname_r, bool dots_r=true) const override
Call concrete handler to provide a content list of directory on media via retlist.
Definition
MediaPlugin.cc:48
zypp::media::MediaPlugin::MediaPlugin
MediaPlugin(const Url &url_r, const Pathname &attach_point_hint_r)
Definition
MediaPlugin.cc:31
zypp::filesystem::DirContent
std::list< DirEntry > DirContent
Returned by readdir.
Definition
PathInfo.h:526
zypp::media
Definition
MediaCD.cc:47
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition
Application.cc:20
MIL
#define MIL
Definition
Logger.h:100
ExternalProgram.h
LogTools.h
String.h
zypp
media
MediaPlugin.cc
Generated by
1.13.2