#include "zypp/media/MediaSource.h"
#include "zypp/media/MediaException.h"
-#include "zypp/base/Deprecated.h"
+#include "zypp/APIConfig.h"
namespace zypp {
namespace media {
*
* dir, false => user specified attach point (not removed)
*/
- AttachPoint _AttachPointHint;
+ AttachPoint _attachPointHint;
/**
* The relative root directory of the data on the media.
/** timestamp of the the last attach verification */
mutable time_t _attach_mtime;
+ /** file usable for delta downloads */
+ mutable Pathname _deltafile;
+
protected:
/**
* Url to handle
* mount table (nfs, smb and cifs) or from mediaSource
* while compare of a mount entry with mediaSource.
*/
- void forceRelaseAllMedia(bool matchMountFs,
- bool autoMountedOny=true);
+ void forceRelaseAllMedia(bool matchMountFs);
void forceRelaseAllMedia(const MediaSourceRef &ref,
- bool matchMountFs,
- bool autoMountedOnly=true);
- virtual bool isAutoMountedMedia(const AttachedMedia &media);
+ bool matchMountFs);
protected:
/**
* True if media is attached.
**/
- virtual bool isAttached() const { return _mediaSource; }
+ virtual bool isAttached() const { return _mediaSource != nullptr; }
/**
* Return the local directory that corresponds to medias url,
**/
void releasePath( Pathname pathname ) const;
+ /*
+ * set a deltafile to be used in the next download
+ */
+ void setDeltafile( const Pathname &filename = Pathname()) const;
+
+ /*
+ * return the deltafile set with setDeltafile()
+ */
+ Pathname deltafile () const;
+
public:
/**