MediaNFS.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_MEDIA_MEDIANFS_H
00013 #define ZYPP_MEDIA_MEDIANFS_H
00014 
00015 #include "zypp/media/MediaHandler.h"
00016 
00024 #define NFS_MOUNT_TIMEOUT 300
00025 
00026 namespace zypp {
00027   namespace media {
00028 
00030     //
00031     //  CLASS NAME : MediaNFS
00036     class MediaNFS : public MediaHandler {
00037 
00038       protected:
00039 
00040         virtual void attachTo (bool next = false);
00041         virtual void releaseFrom( bool eject );
00042         virtual void getFile( const Pathname & filename ) const;
00043         virtual void getDir( const Pathname & dirname, bool recurse_r ) const;
00044         virtual void getDirInfo( std::list<std::string> & retlist,
00045                                  const Pathname & dirname, bool dots = true ) const;
00046         virtual void getDirInfo( filesystem::DirContent & retlist,
00047                                  const Pathname & dirname, bool dots = true ) const;
00048         virtual bool getDoesFileExist( const Pathname & filename ) const;
00049 
00050       public:
00051 
00052         MediaNFS( const Url&       url_r,
00053                   const Pathname & attach_point_hint_r );
00054 
00055         virtual ~MediaNFS() { try { release(); } catch(...) {} }
00056 
00057         virtual bool isAttached() const;
00058     };
00059 
00061   } // namespace media
00062 } // namespace zypp
00063 
00064 #endif // ZYPP_MEDIA_MEDIANFS_H

Generated on Thu Apr 24 02:24:49 2008 for zypp by  doxygen 1.4.6