libzypp
17.14.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
MediaDIR.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_MEDIA_MEDIADIR_H
13
#define ZYPP_MEDIA_MEDIADIR_H
14
15
#include "
zypp/media/MediaHandler.h
"
16
17
namespace
zypp {
18
namespace
media {
19
21
//
22
// CLASS NAME : MediaDIR
23
28
class
MediaDIR
:
public
MediaHandler
{
29
30
protected
:
31
32
virtual
void
attachTo
(
bool
next =
false
)
override
;
33
virtual
void
releaseFrom
(
const
std::string & ejectDev )
override
;
34
virtual
void
getFile
(
const
Pathname & filename,
const
ByteCount
&expectedFileSize_r )
const override
;
35
virtual
void
getDir
(
const
Pathname & dirname,
bool
recurse_r )
const override
;
36
virtual
void
getDirInfo
( std::list<std::string> & retlist,
37
const
Pathname & dirname,
bool
dots =
true
)
const override
;
38
virtual
void
getDirInfo
(
filesystem::DirContent
& retlist,
39
const
Pathname & dirname,
bool
dots =
true
)
const override
;
40
virtual
bool
getDoesFileExist
(
const
Pathname & filename )
const override
;
41
42
public
:
43
44
MediaDIR
(
const
Url
& url_r,
45
const
Pathname & attach_point_hint_r );
46
47
virtual
~MediaDIR
()
override
{
try
{
release
(); }
catch
(...) {} }
48
};
49
51
52
}
// namespace media
53
}
// namespace zypp
54
55
#endif // ZYPP_MEDIA_MEDIADIR_H
zypp
media
MediaDIR.h
Generated by
1.8.2