Imported Upstream version 14.47.0
[platform/upstream/libzypp.git] / zypp / media / MediaAccess.h
index 1a43af9..4bf4af2 100644 (file)
@@ -105,16 +105,6 @@ namespace zypp {
         */
        bool        downloads() const;
 
-       /** \deprecated Use \ref Url::schemeIsDownloading */
-       static
-       ZYPP_DEPRECATED bool downloads(const Url &url)
-        { return url.schemeIsDownloading(); }
-
-       /** \deprecated Use \ref Url::schemeIsVolatile */
-       static
-       ZYPP_DEPRECATED bool canBeVolatile(const Url &url)
-        { return url.schemeIsVolatile(); }
-
        /**
         * Used Protocol if media is opened, otherwise 'unknown'.
         **/
@@ -229,7 +219,7 @@ namespace zypp {
         * \throws MediaException
         *
         **/
-       void provideFile( const Pathname & filename ) const;
+       void provideFile( const Pathname & filename, const ByteCount &expectedFileSize ) const;
 
        /**
         * Remove filename below attach point IFF handler downloads files
@@ -396,7 +386,7 @@ namespace zypp {
              ZYPP_THROW(MediaBadFilenameException(_file.asString()));
            } else if ( _media ) {
              try {
-               _media->provideFile( _file );
+               _media->provideFile( _file, 0 );
                _local_file = _media->localPath( _file );
              }
              catch (const MediaException & excpt_r)