Imported Upstream version 14.47.0
[platform/upstream/libzypp.git] / zypp / media / MediaAccess.h
index e17f7b2..4bf4af2 100644 (file)
@@ -20,7 +20,7 @@
 #include "zypp/base/ReferenceCounted.h"
 #include "zypp/base/NonCopyable.h"
 #include "zypp/base/PtrTypes.h"
-#include "zypp/base/Deprecated.h"
+#include "zypp/APIConfig.h"
 
 #include "zypp/Pathname.h"
 #include "zypp/PathInfo.h"
@@ -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)