MediaSMB.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_MEDIA_MEDIASMB_H
00013 #define ZYPP_MEDIA_MEDIASMB_H
00014 
00015 #include "zypp/media/MediaHandler.h"
00016 
00017 namespace zypp {
00018   namespace media {
00019 
00021     //
00022     //  CLASS NAME : MediaSMB
00031     class MediaSMB : public MediaHandler {
00032 
00033     private:
00034 
00040       const char* _vfstype;
00041 
00042     protected:
00043 
00044       MEDIA_HANDLER_API;
00045 
00050       void mountAsCIFS() { _vfstype = "cifs"; }
00051 
00052     public:
00053 
00054       MediaSMB( const Url&       url_r,
00055                 const Pathname & attach_point_hint_r );
00056 
00057       virtual ~MediaSMB() { try { release(); } catch(...) {} }
00058 
00059       virtual bool isAttached() const;
00060     };
00061 
00063   } // namespace media
00064 } // namespace zypp
00065 
00066 #endif // ZYPP_MEDIA_MEDIASMB_H

Generated on Thu Jul 6 00:07:21 2006 for zypp by  doxygen 1.4.6