#include <MediaSource.h>
Public Member Functions | |
MediaSource (const std::string &_type, const std::string &_name, unsigned int _maj=0, unsigned int _min=0, const std::string &_bdir=std::string(), bool _own=true) | |
MediaSource () | |
virtual | ~MediaSource () |
virtual bool | equals (const MediaSource &src) const |
Check if the both sources are equal. | |
virtual std::string | asString () const |
Return media source as string for debuging purposes. | |
Public Attributes | |
unsigned int | maj_nr |
A major number if source is a device. | |
unsigned int | min_nr |
A minor number if source is a device. | |
std::string | type |
A media handler specific source type. | |
std::string | name |
A media handler specific source name. | |
std::string | bdir |
Directory, the media may be bound to. | |
bool | iown |
True, if mounted by media manager. | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const MediaSource &obj) |
Definition at line 36 of file MediaSource.h.
zypp::media::MediaSource::MediaSource | ( | const std::string & | _type, | |
const std::string & | _name, | |||
unsigned int | _maj = 0 , |
|||
unsigned int | _min = 0 , |
|||
const std::string & | _bdir = std::string() , |
|||
bool | _own = true | |||
) | [inline] |
Definition at line 39 of file MediaSource.h.
zypp::media::MediaSource::MediaSource | ( | ) | [inline] |
Definition at line 50 of file MediaSource.h.
virtual zypp::media::MediaSource::~MediaSource | ( | ) | [inline, virtual] |
Definition at line 56 of file MediaSource.h.
virtual bool zypp::media::MediaSource::equals | ( | const MediaSource & | src | ) | const [inline, virtual] |
Check if the both sources are equal.
Definition at line 62 of file MediaSource.h.
References maj_nr, min_nr, name, and type.
Referenced by zypp::media::MediaCD::attachTo().
virtual std::string zypp::media::MediaSource::asString | ( | ) | const [inline, virtual] |
Return media source as string for debuging purposes.
Definition at line 78 of file MediaSource.h.
References maj_nr, min_nr, name, zypp::str::numstring(), and type.
Referenced by operator<<().
std::ostream & operator<< | ( | std::ostream & | str, | |
const MediaSource & | obj | |||
) | [related] |
unsigned int zypp::media::MediaSource::maj_nr |
A major number if source is a device.
Definition at line 89 of file MediaSource.h.
Referenced by asString(), zypp::media::MediaCD::attachTo(), and equals().
unsigned int zypp::media::MediaSource::min_nr |
A minor number if source is a device.
Definition at line 90 of file MediaSource.h.
Referenced by asString(), zypp::media::MediaCD::attachTo(), and equals().
std::string zypp::media::MediaSource::type |
A media handler specific source type.
Definition at line 91 of file MediaSource.h.
Referenced by asString(), and equals().
std::string zypp::media::MediaSource::name |
A media handler specific source name.
Definition at line 92 of file MediaSource.h.
Referenced by asString(), zypp::media::MediaCD::attachTo(), and equals().
std::string zypp::media::MediaSource::bdir |