1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/media/MediaDISK.h
12 #ifndef ZYPP_MEDIA_MEDIADISK_H
13 #define ZYPP_MEDIA_MEDIADISK_H
15 #include "zypp/media/MediaHandler.h"
20 ///////////////////////////////////////////////////////////////////
22 // CLASS NAME : MediaDISK
24 * @short Implementation class for DISK MediaHandler
27 class MediaDISK : public MediaHandler {
31 std::string _filesystem;
35 virtual void attachTo (bool next = false) override;
36 virtual void releaseFrom( const std::string & ejectDev ) override;
37 virtual void getFile(const Pathname & filename, const ByteCount &expectedFileSize_r ) const override;
38 virtual void getDir( const Pathname & dirname, bool recurse_r ) const override;
39 virtual void getDirInfo( std::list<std::string> & retlist,
40 const Pathname & dirname, bool dots = true ) const override;
41 virtual void getDirInfo( filesystem::DirContent & retlist,
42 const Pathname & dirname, bool dots = true ) const override;
43 virtual bool getDoesFileExist( const Pathname & filename ) const override;
47 MediaDISK( const Url & url_r,
48 const Pathname & attach_point_hint_r );
50 virtual ~MediaDISK() override { try { release(); } catch(...) {} }
52 virtual bool isAttached() const override;
54 bool verifyIfDiskVolume(const Pathname &name);
57 ///////////////////////////////////////////////////////////////////
62 #endif // ZYPP_MEDIA_MEDIADISK_H