DeviceInfo
Object Hierarchy:
Description:
[
CCode ( type_id =
"gupnp_device_info_get_type ()" ) ]
public abstract class DeviceInfo :
Object
Device information shared by local and remote devices
This class aggregates the information that is shared between remote and local devices.
Content:
Properties:
Creation methods:
Methods:
- public unowned Context get_context ()
- public string? get_description_value (string element)
This function provides generic access to the contents of arbitrary
elements in the device description file.
- public DeviceInfo? get_device (string type)
Get the device with type type directly contained in
this as a new object implementing DeviceInfo, or
null if no such device was found.
- public unowned string get_device_type ()
Get the UPnP device type of this
DeviceInfo, e.
- public string? get_friendly_name ()
Get the friendly name of the device.
- public async Bytes get_icon_async (string? requested_mime_type, int requested_depth, int requested_width, int requested_height, bool prefer_bigger, Cancellable? cancellable, out string mime, out int depth, out int width, out int height) throws Error
Download the device icon matching the request parameters.
- public string? get_icon_url (string? requested_mime_type, int requested_depth, int requested_width, int requested_height, bool prefer_bigger, out string mime_type, out int depth, out int width, out int height)
Get an URL pointing to the icon most closely matching the given
criteria, or null.
- public unowned string get_location ()
Get the URL of the device file
- public string? get_manufacturer ()
Get the manufacturer of the device.
- public string? get_manufacturer_url ()
Get an URL pointing to the manufacturer's website.
- public string? get_model_description ()
Get the description of the device model.
- public string? get_model_name ()
Get the model name of the device.
- public string? get_model_number ()
Get the model number of the device.
- public string? get_model_url ()
Get an URL pointing to the device model's website.
- public string? get_presentation_url ()
Get an URL pointing to the device's presentation page, for web-based
administration, if available.
- public unowned ResourceFactory get_resource_factory ()
- public string? get_serial_number ()
Get the serial number of the device.
- public ServiceInfo? get_service (string type)
Get the service with type type directly contained in
this as a new object implementing
ServiceInfo, or null if no such device was found.
- public unowned string get_udn ()
Get the Unique Device Name of the device.
- public string? get_upc ()
Get the Universal Product Code of the device.
- public unowned Uri get_url_base ()
Get the URL base of this device.
- public List<string>? list_device_types ()
Get a List of
strings representing the types of the devices directly contained in this.
- public List<DeviceInfo>? list_devices ()
Get a List of
new objects implementing DeviceInfo representing the devices directly contained in
this, excluding itself.
- public List<string>? list_dlna_capabilities ()
Get a List of
strings that represent the device capabilities as announced in the device description file using the <dlna:X_DLNACAP>
element.
- public List<string>? list_dlna_device_class_identifier ()
Get a list of strings that represent the device class and version as
announced in the device description file using the `<dlna:X_DLNADOC>` element, e.
- public List<string>? list_service_types ()
Get a List of
strings representing the types of the services directly contained in this, but not in its
subdevices.
- public List<ServiceInfo>? list_services ()
Get a List of
new objects implementing ServiceInfo representing the services directly
contained in this.
Inherited Members:
All known members inherited from class GLib.Object