DeviceProvider
Object Hierarchy:
Description:
[
CCode ( type_id =
"gst_device_provider_get_type ()" ) ]
[
Version ( since =
"1.4" ) ]
public abstract class DeviceProvider :
Object
A DeviceProvider subclass is provided by a plugin that handles devices if there is a way to
programmatically list connected devices.
It can also optionally provide updates to the list of connected devices.
Each DeviceProvider subclass is a singleton, a plugin should normally provide a single subclass for
all devices.
Applications would normally use a DeviceMonitor to monitor devices from all relevant
providers.
Content:
Static methods:
Creation methods:
Methods:
- public class void add_metadata (string key, string value)
Set key
with value
as metadata in
this.
- public class void add_static_metadata (string key, owned string value)
Set key
with value
as metadata in
this.
- public bool can_monitor ()
- public class unowned string? class_get_metadata (string key)
Get metadata with key
in this
.
- public void device_add (Device device)
Posts a message on the provider's
Bus to inform applications that a new device has been added.
- public void device_changed (Device device, Device changed_device)
This function is used when changed_device
was modified
into its new form device
.
- public void device_remove (Device device)
Posts a message on the provider's
Bus to inform applications that a device has been removed.
- public Bus get_bus ()
Gets the Bus of this
DeviceProvider
- public List<Device> get_devices ()
Gets a list of devices that this provider understands.
- public unowned DeviceProviderFactory? get_factory ()
Retrieves the factory that was used to create this device provider.
- public string[] get_hidden_providers ()
Get the provider factory names of the
DeviceProvider instances that are hidden by this.
- public unowned string get_metadata (string key)
Get metadata with key
in this
.
- public void hide_provider (string name)
Make this hide the devices from the
factory with name
.
- public bool is_started ()
This function can be used to know if the
this was successfully started.
- public class void set_metadata (string longname, string classification, string description, string author)
Sets the detailed information for a
DeviceProvider.
- public class void set_static_metadata (owned string longname, owned string classification, owned string description, owned string author)
Sets the detailed information for a
DeviceProvider.
- public virtual bool start ()
Starts providering the devices.
- public virtual void stop ()
Decreases the use-count by one.
- public void unhide_provider (string name)
Make this unhide the devices from
factory name
.
Signals:
Fields:
Inherited Members:
All known members inherited from class Gst.Object
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref