1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/media/MediaDIR.h
12 #ifndef ZYPP_MEDIA_MEDIADIR_H
13 #define ZYPP_MEDIA_MEDIADIR_H
15 #include "zypp/media/MediaHandler.h"
20 ///////////////////////////////////////////////////////////////////
22 // CLASS NAME : MediaDIR
25 * @short Implementation class for DIR MediaHandler
28 class MediaDIR : public MediaHandler {
32 virtual void attachTo (bool next = false);
33 virtual void releaseFrom( const std::string & ejectDev );
34 virtual void getFile( const Pathname & filename, const ByteCount &expectedFileSize_r ) const override;
35 virtual void getDir( const Pathname & dirname, bool recurse_r ) const;
36 virtual void getDirInfo( std::list<std::string> & retlist,
37 const Pathname & dirname, bool dots = true ) const;
38 virtual void getDirInfo( filesystem::DirContent & retlist,
39 const Pathname & dirname, bool dots = true ) const;
40 virtual bool getDoesFileExist( const Pathname & filename ) const;
44 MediaDIR( const Url & url_r,
45 const Pathname & attach_point_hint_r );
47 virtual ~MediaDIR() { try { release(); } catch(...) {} }
50 ///////////////////////////////////////////////////////////////////
55 #endif // ZYPP_MEDIA_MEDIADIR_H