Top | ![]() |
![]() |
![]() |
![]() |
GQuark | ide_device_error_quark () |
const gchar * | ide_device_get_display_name () |
void | ide_device_set_display_name () |
const gchar * | ide_device_get_icon_name () |
void | ide_device_set_icon_name () |
const gchar * | ide_device_get_id () |
void | ide_device_set_id () |
void | ide_device_prepare_configuration () |
void | ide_device_get_info_async () |
IdeDeviceInfo * | ide_device_get_info_finish () |
enum | IdeDeviceError |
#define | IDE_TYPE_DEVICE |
#define | IDE_DEVICE_ERROR |
struct | IdeDeviceClass |
IdeDevice |
const gchar *
ide_device_get_display_name (IdeDevice *self
);
This function returns the name of the device. If no name has been set, then
NULL
is returned.
In some cases, this value wont be available until additional information has been probed from the device.
void ide_device_set_display_name (IdeDevice *self
,const gchar *display_name
);
const gchar *
ide_device_get_icon_name (IdeDevice *self
);
Gets the icon to use when displaying the device in UI elements.
Since: 3.28
void ide_device_set_icon_name (IdeDevice *self
,const gchar *icon_name
);
Sets the icon-name property.
This is the icon that is displayed with the device name in UI elements.
Since: 3.28
const gchar *
ide_device_get_id (IdeDevice *self
);
Retrieves the "id" property of the IdeDevice. This is generally not a user friendly name as it is often a guid.
void ide_device_prepare_configuration (IdeDevice *self
,IdeConfiguration *configuration
);
void ide_device_get_info_async (IdeDevice *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests information about the device.
Some information may not be available until after a connection has been established. This allows the device to connect before fetching that information.
self |
an IdeDevice |
|
cancellable |
a GCancellable or |
[nullable] |
callback |
a callback to execute upon completion |
|
user_data |
closure data for |
Since: 3.28
IdeDeviceInfo * ide_device_get_info_finish (IdeDevice *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous request to load the information about a device.
self |
an IdeDevice |
|
result |
a GAsyncResult provided to callback |
|
error |
a location for a GError, or |
Since: 3.28
struct IdeDeviceClass { IdeObjectClass parent; void (*prepare_configuration) (IdeDevice *self, IdeConfiguration *configuration); void (*get_info_async) (IdeDevice *self, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); IdeDeviceInfo *(*get_info_finish) (IdeDevice *self, GAsyncResult *result, GError **error); gpointer _reserved[32]; };
“display-name”
property “display-name” gchar *
The display name of the device.
Flags: Read / Write
Default value: NULL
“icon-name”
property “icon-name” gchar *
The "icon-name" property is the icon to display with the device in various UI elements of Builder.
Flags: Read / Write
Default value: NULL
Since: 3.28