MediaAccess::FileProvider Class Reference
#include <MediaAccess.h>
List of all members.
Detailed Description
Helper class that provides file on construction and cleans up on destruction.
Caution: There's no synchronisation between multiple FileProvider instances, that provide the same file from the same media. If the first one goes out of scope, the file is cleaned. It's just a convenience for 'access and forgett'.
Caution: We should either store the reference MediaAccess' MediaHandler here (for this MediaHandler must become a ref counting pointer class), or we need more info from MediaHandler (whether he's downloading to the local fs. If not, no releasefile is necessary). Currently we can not releaseFile after the media was closed (it's passed to the handler, which is deleted on close).
Member Typedef Documentation
Constructor & Destructor Documentation
MediaAccess::FileProvider::FileProvider |
( |
const FileProvider & |
|
) |
[private] |
|
MediaAccess::FileProvider::FileProvider |
( |
constMediaAccessPtr |
media_r, |
|
|
const Pathname & |
file_r |
|
) |
[inline] |
|
Member Function Documentation
PMError MediaAccess::FileProvider::error |
( |
|
) |
const [inline] |
|
|
If no error, expect operator() to return the local Pathname of the provided file. |
Pathname MediaAccess::FileProvider::operator() |
( |
|
) |
const [inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Fri Nov 9 14:30:32 2007 for yast2-packagemanager by
1.3.6