MediaISO.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_MEDIA_MEDIAISO_H
00013 #define ZYPP_MEDIA_MEDIAISO_H
00014 
00015 #include "zypp/media/MediaHandler.h"
00016 #include "zypp/media/MediaManager.h"
00017 
00019 namespace zypp
00020 { 
00021 
00023   namespace media
00024   { 
00025 
00026 
00028     //
00029     // CLASS NAME : MediaISO
00030     //
00035     class MediaISO : public MediaHandler
00036     {
00037       private:
00038         Pathname      _isofile;
00039         MediaAccessId _isosource;
00040         std::string   _filesystem;
00041 
00042       protected:
00043 
00044         virtual void attachTo (bool next = false);
00045         virtual void releaseFrom( bool eject );
00046         virtual void getFile( const Pathname & filename ) const;
00047         virtual void getDir( const Pathname & dirname, bool recurse_r ) const;
00048         virtual void getDirInfo( std::list<std::string> & retlist,
00049                                  const Pathname & dirname, bool dots = true ) const;
00050         virtual void getDirInfo( filesystem::DirContent & retlist,
00051                                  const Pathname & dirname, bool dots = true ) const;
00052         virtual bool getDoesFileExist( const Pathname & filename ) const;
00053 
00054       public:
00055 
00056         MediaISO(const Url      &url_r,
00057                  const Pathname &attach_point_hint_r);
00058 
00059         virtual
00060         ~MediaISO();
00061 
00062         virtual bool
00063         isAttached() const;
00064     };
00065 
00066 
00068   } // namespace media
00070 
00072 } // namespace zypp
00074 
00075 #endif // ZYPP_MEDIA_MEDIAISO_H
00076 
00077 // vim: set ts=2 sts=2 sw=2 ai et:
00078 

Generated on Tue Sep 25 19:23:02 2007 for libzypp by  doxygen 1.5.3