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 unsigned long _mountflags;
34 std::string _filesystem;
38 virtual void attachTo (bool next = false);
39 virtual void releaseFrom( const std::string & ejectDev );
40 virtual void getFile( const Pathname & filename ) const;
41 virtual void getDir( const Pathname & dirname, bool recurse_r ) const;
42 virtual void getDirInfo( std::list<std::string> & retlist,
43 const Pathname & dirname, bool dots = true ) const;
44 virtual void getDirInfo( filesystem::DirContent & retlist,
45 const Pathname & dirname, bool dots = true ) const;
46 virtual bool getDoesFileExist( const Pathname & filename ) const;
50 MediaDISK( const Url & url_r,
51 const Pathname & attach_point_hint_r );
53 virtual ~MediaDISK() { try { release(); } catch(...) {} }
55 virtual bool isAttached() const;
57 bool verifyIfDiskVolume(const Pathname &name);
60 ///////////////////////////////////////////////////////////////////
65 #endif // ZYPP_MEDIA_MEDIADISK_H