Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / media / MediaHandler.h
index acc7d8c..9fd8782 100644 (file)
@@ -82,7 +82,7 @@ class MediaHandler {
         *
         *      dir, false => user specified attach point (not removed)
         */
-       AttachPoint     _AttachPointHint;
+       AttachPoint     _attachPointHint;
 
        /**
         * The relative root directory of the data on the media.
@@ -172,9 +172,10 @@ class MediaHandler {
 
        /**
         * Try to create a default / temporary attach point.
-        * It trys to create it in attachPrefix if avaliable,
+        * It tries to create it in attachPrefix if avaliable,
         * then in built-in directories.
-        * \return The name of the new attach point or empty path name.
+        * \throws MediaBadAttachPointException if no attach point can be created
+        * \return The name of the new attach point
         */
        Pathname         createAttachPoint() const;
        /**
@@ -357,7 +358,7 @@ class MediaHandler {
         * \throws MediaException
         *
         **/
-       virtual void getFile( const Pathname & filename, const ByteCount &expectedFileSize_r ) const;
+       virtual void getFile( const Pathname & filename ) const = 0;
 
         /**
          * Call concrete handler to provide a file under a different place
@@ -370,7 +371,7 @@ class MediaHandler {
         * \throws MediaException
         *
          **/
-        virtual void getFileCopy( const Pathname & srcFilename, const Pathname & targetFilename, const ByteCount &expectedFileSize_r ) const;
+        virtual void getFileCopy( const Pathname & srcFilename, const Pathname & targetFilename ) const;
 
 
        /**
@@ -570,7 +571,7 @@ class MediaHandler {
         * \throws MediaException
         *
         **/
-       void provideFile( Pathname filename, const ByteCount &expectedFileSize_r ) const;
+       void provideFile( Pathname filename ) const;
 
        /**
         * Call concrete handler to provide a copy of a file under a different place
@@ -583,7 +584,7 @@ class MediaHandler {
         * \throws MediaException
         *
         **/
-        void provideFileCopy( Pathname srcFilename, Pathname targetFilename, const ByteCount &expectedFileSize_r ) const;
+        void provideFileCopy( Pathname srcFilename, Pathname targetFilename) const;
 
        /**
         * Use concrete handler to provide directory denoted