00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_MEDIA_MEDIANFS_H
00013 #define ZYPP_MEDIA_MEDIANFS_H
00014
00015 #include "zypp/media/MediaHandler.h"
00016
00017 namespace zypp {
00018 namespace media {
00019
00021
00022
00027 class MediaNFS : public MediaHandler {
00028
00029 protected:
00030
00031 virtual void attachTo (bool next = false);
00032 virtual void releaseFrom( bool eject );
00033 virtual void getFile( const Pathname & filename ) const;
00034 virtual void getDir( const Pathname & dirname, bool recurse_r ) const;
00035 virtual void getDirInfo( std::list<std::string> & retlist,
00036 const Pathname & dirname, bool dots = true ) const;
00037 virtual void getDirInfo( filesystem::DirContent & retlist,
00038 const Pathname & dirname, bool dots = true ) const;
00039 virtual bool getDoesFileExist( const Pathname & filename ) const;
00040
00041 public:
00042
00043 MediaNFS( const Url& url_r,
00044 const Pathname & attach_point_hint_r );
00045
00046 virtual ~MediaNFS() { try { release(); } catch(...) {} }
00047
00048 virtual bool isAttached() const;
00049 };
00050
00052 }
00053 }
00054
00055 #endif // ZYPP_MEDIA_MEDIANFS_H