12 #ifndef ZYPP_MEDIA_MEDIAACCESS_H
13 #define ZYPP_MEDIA_MEDIAACCESS_H
53 typedef intrusive_ptr<MediaAccess>
Ptr;
54 typedef intrusive_ptr<const MediaAccess>
constPtr;
77 bool exactIdMatch)
const;
95 void open(
const Url&
url,
const Pathname & preferred_attach_point =
"" );
138 void attach(
bool next =
false);
160 unsigned int & index)
const;
179 Pathname
localPath(
const Pathname & pathname )
const;
203 void release(
const std::string & ejectDev =
"" );
222 void provideFile(
const Pathname & filename )
const;
231 void releaseFile(
const Pathname & filename )
const;
242 void provideDir(
const Pathname & dirname )
const;
262 void releaseDir(
const Pathname & dirname )
const;
275 void releasePath(
const Pathname & pathname )
const;
297 void dirInfo( std::list<std::string> & retlist,
298 const Pathname & dirname,
bool dots =
true )
const;
313 const Pathname & dirname,
bool dots =
true )
const;
332 virtual std::ostream &
dumpOn( std::ostream & str )
const;
345 void getFile(
const Url &from,
const Pathname &to );
385 if (
_file.empty() ) {
435 std::ostream &
operator<<( std::ostream & str,
const MediaAccess & obj );
442 #endif // ZYPP_MEDIA_MEDIAACCESS_H
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
#define ZYPP_RETHROW(EXCPT)
Drops a logline and rethrows, updating the CodeLocation.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Provides API related macros.
std::list< DirEntry > DirContent
Returned by readdir.
Base class for reference counted objects.
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).