#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()) | |
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. |
Definition at line 34 of file MediaSource.h.
|
Definition at line 37 of file MediaSource.h. |
|
Definition at line 47 of file MediaSource.h. |
|
Definition at line 53 of file MediaSource.h. |
|
Check if the both sources are equal.
Definition at line 59 of file MediaSource.h. References maj_nr, min_nr, name, and type. Referenced by zypp::media::isNewDevice(). |
|
Return media source as string for debuging purposes.
Definition at line 75 of file MediaSource.h. References maj_nr, min_nr, name, zypp::str::numstring(), and type. |
|
A major number if source is a device.
Definition at line 86 of file MediaSource.h. Referenced by asString(), and equals(). |
|
A minor number if source is a device.
Definition at line 87 of file MediaSource.h. Referenced by asString(), and equals(). |
|
A media handler specific source type.
Definition at line 88 of file MediaSource.h. Referenced by asString(), and equals(). |
|
A media handler specific source name.
Definition at line 89 of file MediaSource.h. Referenced by asString(), and equals(). |
|
Directory, the media may be bound to.
Definition at line 90 of file MediaSource.h. |