Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / media / MediaDISK.h
index acbe4a4..8427611 100644 (file)
@@ -35,7 +35,15 @@ namespace zypp {
 
       protected:
 
-        MEDIA_HANDLER_API;
+       virtual void attachTo (bool next = false);
+        virtual void releaseFrom( const std::string & ejectDev );
+       virtual void getFile( const Pathname & filename ) const;
+       virtual void getDir( const Pathname & dirname, bool recurse_r ) const;
+        virtual void getDirInfo( std::list<std::string> & retlist,
+                                 const Pathname & dirname, bool dots = true ) const;
+        virtual void getDirInfo( filesystem::DirContent & retlist,
+                                 const Pathname & dirname, bool dots = true ) const;
+        virtual bool getDoesFileExist( const Pathname & filename ) const;
 
       public:
 
@@ -43,6 +51,10 @@ namespace zypp {
                   const Pathname & attach_point_hint_r );
 
         virtual ~MediaDISK() { try { release(); } catch(...) {} }
+
+        virtual bool isAttached() const;
+
+        bool    verifyIfDiskVolume(const Pathname &name);
     };
 
 ///////////////////////////////////////////////////////////////////