| UDisks Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Prerequisites | Known Implementations | Properties | Signals | ||||
UDisksDrive; struct UDisksDriveIface; GDBusInterfaceInfo * udisks_drive_interface_info (void); guint udisks_drive_override_properties (GObjectClass *klass,guint property_id_begin); void udisks_drive_call_eject (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_drive_call_eject_finish (UDisksDrive *proxy,GAsyncResult *res,GError **error); gboolean udisks_drive_call_eject_sync (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_drive_complete_eject (UDisksDrive *object,GDBusMethodInvocation *invocation); void udisks_drive_call_set_configuration (UDisksDrive *proxy,GVariant *arg_value,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_drive_call_set_configuration_finish (UDisksDrive *proxy,GAsyncResult *res,GError **error); gboolean udisks_drive_call_set_configuration_sync (UDisksDrive *proxy,GVariant *arg_value,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_drive_complete_set_configuration (UDisksDrive *object,GDBusMethodInvocation *invocation); void udisks_drive_call_power_off (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_drive_call_power_off_finish (UDisksDrive *proxy,GAsyncResult *res,GError **error); gboolean udisks_drive_call_power_off_sync (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_drive_complete_power_off (UDisksDrive *object,GDBusMethodInvocation *invocation); const gchar * udisks_drive_get_connection_bus (UDisksDrive *object); gboolean udisks_drive_get_removable (UDisksDrive *object); gboolean udisks_drive_get_ejectable (UDisksDrive *object); const gchar * udisks_drive_get_seat (UDisksDrive *object); const gchar * udisks_drive_get_media (UDisksDrive *object); const gchar *const * udisks_drive_get_media_compatibility (UDisksDrive *object); gboolean udisks_drive_get_media_removable (UDisksDrive *object); gboolean udisks_drive_get_media_available (UDisksDrive *object); gboolean udisks_drive_get_media_change_detected (UDisksDrive *object); guint64 udisks_drive_get_time_detected (UDisksDrive *object); guint64 udisks_drive_get_time_media_detected (UDisksDrive *object); guint64 udisks_drive_get_size (UDisksDrive *object); gboolean udisks_drive_get_optical (UDisksDrive *object); gboolean udisks_drive_get_optical_blank (UDisksDrive *object); guint udisks_drive_get_optical_num_tracks (UDisksDrive *object); guint udisks_drive_get_optical_num_audio_tracks (UDisksDrive *object); guint udisks_drive_get_optical_num_data_tracks (UDisksDrive *object); guint udisks_drive_get_optical_num_sessions (UDisksDrive *object); const gchar * udisks_drive_get_model (UDisksDrive *object); const gchar * udisks_drive_get_revision (UDisksDrive *object); gint udisks_drive_get_rotation_rate (UDisksDrive *object); const gchar * udisks_drive_get_serial (UDisksDrive *object); const gchar * udisks_drive_get_vendor (UDisksDrive *object); const gchar * udisks_drive_get_wwn (UDisksDrive *object); const gchar * udisks_drive_get_sort_key (UDisksDrive *object); GVariant * udisks_drive_get_configuration (UDisksDrive *object); const gchar * udisks_drive_get_id (UDisksDrive *object); gboolean udisks_drive_get_can_power_off (UDisksDrive *object); const gchar * udisks_drive_get_sibling_id (UDisksDrive *object); gchar * udisks_drive_dup_connection_bus (UDisksDrive *object); gchar * udisks_drive_dup_seat (UDisksDrive *object); gchar * udisks_drive_dup_media (UDisksDrive *object); gchar ** udisks_drive_dup_media_compatibility (UDisksDrive *object); gchar * udisks_drive_dup_model (UDisksDrive *object); gchar * udisks_drive_dup_revision (UDisksDrive *object); gchar * udisks_drive_dup_serial (UDisksDrive *object); gchar * udisks_drive_dup_vendor (UDisksDrive *object); gchar * udisks_drive_dup_wwn (UDisksDrive *object); gchar * udisks_drive_dup_sort_key (UDisksDrive *object); GVariant * udisks_drive_dup_configuration (UDisksDrive *object); gchar * udisks_drive_dup_id (UDisksDrive *object); gchar * udisks_drive_dup_sibling_id (UDisksDrive *object); void udisks_drive_set_connection_bus (UDisksDrive *object,const gchar *value); void udisks_drive_set_removable (UDisksDrive *object,gboolean value); void udisks_drive_set_ejectable (UDisksDrive *object,gboolean value); void udisks_drive_set_seat (UDisksDrive *object,const gchar *value); void udisks_drive_set_media (UDisksDrive *object,const gchar *value); void udisks_drive_set_media_compatibility (UDisksDrive *object,const gchar *const *value); void udisks_drive_set_media_removable (UDisksDrive *object,gboolean value); void udisks_drive_set_media_available (UDisksDrive *object,gboolean value); void udisks_drive_set_media_change_detected (UDisksDrive *object,gboolean value); void udisks_drive_set_time_detected (UDisksDrive *object,guint64 value); void udisks_drive_set_time_media_detected (UDisksDrive *object,guint64 value); void udisks_drive_set_size (UDisksDrive *object,guint64 value); void udisks_drive_set_optical (UDisksDrive *object,gboolean value); void udisks_drive_set_optical_blank (UDisksDrive *object,gboolean value); void udisks_drive_set_optical_num_tracks (UDisksDrive *object,guint value); void udisks_drive_set_optical_num_audio_tracks (UDisksDrive *object,guint value); void udisks_drive_set_optical_num_data_tracks (UDisksDrive *object,guint value); void udisks_drive_set_optical_num_sessions (UDisksDrive *object,guint value); void udisks_drive_set_model (UDisksDrive *object,const gchar *value); void udisks_drive_set_revision (UDisksDrive *object,const gchar *value); void udisks_drive_set_rotation_rate (UDisksDrive *object,gint value); void udisks_drive_set_serial (UDisksDrive *object,const gchar *value); void udisks_drive_set_vendor (UDisksDrive *object,const gchar *value); void udisks_drive_set_wwn (UDisksDrive *object,const gchar *value); void udisks_drive_set_sort_key (UDisksDrive *object,const gchar *value); void udisks_drive_set_configuration (UDisksDrive *object,GVariant *value); void udisks_drive_set_id (UDisksDrive *object,const gchar *value); void udisks_drive_set_can_power_off (UDisksDrive *object,gboolean value); void udisks_drive_set_sibling_id (UDisksDrive *object,const gchar *value); struct UDisksDriveProxy; struct UDisksDriveProxyClass; void udisks_drive_proxy_new (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); UDisksDrive * udisks_drive_proxy_new_finish (GAsyncResult *res,GError **error); UDisksDrive * udisks_drive_proxy_new_sync (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); void udisks_drive_proxy_new_for_bus (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); UDisksDrive * udisks_drive_proxy_new_for_bus_finish (GAsyncResult *res,GError **error); UDisksDrive * udisks_drive_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); struct UDisksDriveSkeleton; struct UDisksDriveSkeletonClass; UDisksDrive * udisks_drive_skeleton_new (void);
GInterface +----UDisksDrive
GObject
+----GDBusProxy
+----UDisksDriveProxy
GObject
+----GDBusInterfaceSkeleton
+----UDisksDriveSkeleton
+----UDisksLinuxDrive
UDisksDriveProxy implements GDBusInterface, GInitable, GAsyncInitable and UDisksDrive.
UDisksDriveSkeleton implements GDBusInterface and UDisksDrive.
UDisksDrive is implemented by UDisksDriveProxy, UDisksDriveSkeleton and UDisksLinuxDrive.
"can-power-off" gboolean : Read / Write "configuration" GVariant* : Read / Write "connection-bus" gchar* : Read / Write "ejectable" gboolean : Read / Write "id" gchar* : Read / Write "media" gchar* : Read / Write "media-available" gboolean : Read / Write "media-change-detected" gboolean : Read / Write "media-compatibility" GStrv : Read / Write "media-removable" gboolean : Read / Write "model" gchar* : Read / Write "optical" gboolean : Read / Write "optical-blank" gboolean : Read / Write "optical-num-audio-tracks" guint : Read / Write "optical-num-data-tracks" guint : Read / Write "optical-num-sessions" guint : Read / Write "optical-num-tracks" guint : Read / Write "removable" gboolean : Read / Write "revision" gchar* : Read / Write "rotation-rate" gint : Read / Write "seat" gchar* : Read / Write "serial" gchar* : Read / Write "sibling-id" gchar* : Read / Write "size" guint64 : Read / Write "sort-key" gchar* : Read / Write "time-detected" guint64 : Read / Write "time-media-detected" guint64 : Read / Write "vendor" gchar* : Read / Write "wwn" gchar* : Read / Write
"handle-eject" :Run Last"handle-power-off" :Run Last"handle-set-configuration" :Run Last
This section contains code for working with the org.freedesktop.UDisks2.Drive D-Bus interface in C.
typedef struct _UDisksDrive UDisksDrive;
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Drive.
struct UDisksDriveIface {
GTypeInterface parent_iface;
gboolean (*handle_eject) (
UDisksDrive *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*handle_set_configuration) (
UDisksDrive *object,
GDBusMethodInvocation *invocation,
GVariant *arg_value,
GVariant *arg_options);
GVariant * (*get_configuration) (UDisksDrive *object);
const gchar * (*get_connection_bus) (UDisksDrive *object);
gboolean (*get_ejectable) (UDisksDrive *object);
const gchar * (*get_id) (UDisksDrive *object);
const gchar * (*get_media) (UDisksDrive *object);
gboolean (*get_media_available) (UDisksDrive *object);
gboolean (*get_media_change_detected) (UDisksDrive *object);
const gchar *const * (*get_media_compatibility) (UDisksDrive *object);
gboolean (*get_media_removable) (UDisksDrive *object);
const gchar * (*get_model) (UDisksDrive *object);
gboolean (*get_optical) (UDisksDrive *object);
gboolean (*get_optical_blank) (UDisksDrive *object);
guint (*get_optical_num_audio_tracks) (UDisksDrive *object);
guint (*get_optical_num_data_tracks) (UDisksDrive *object);
guint (*get_optical_num_sessions) (UDisksDrive *object);
guint (*get_optical_num_tracks) (UDisksDrive *object);
gboolean (*get_removable) (UDisksDrive *object);
const gchar * (*get_revision) (UDisksDrive *object);
gint (*get_rotation_rate) (UDisksDrive *object);
const gchar * (*get_seat) (UDisksDrive *object);
const gchar * (*get_serial) (UDisksDrive *object);
guint64 (*get_size) (UDisksDrive *object);
const gchar * (*get_sort_key) (UDisksDrive *object);
guint64 (*get_time_detected) (UDisksDrive *object);
guint64 (*get_time_media_detected) (UDisksDrive *object);
const gchar * (*get_vendor) (UDisksDrive *object);
const gchar * (*get_wwn) (UDisksDrive *object);
gboolean (*handle_power_off) (
UDisksDrive *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*get_can_power_off) (UDisksDrive *object);
const gchar * (*get_sibling_id) (UDisksDrive *object);
};
Virtual table for the D-Bus interface org.freedesktop.UDisks2.Drive.
| The parent interface. | |
| Handler for the "handle-eject" signal. | |
| Handler for the "handle-set-configuration" signal. | |
| Getter for the "configuration" property. | |
| Getter for the "connection-bus" property. | |
| Getter for the "ejectable" property. | |
| Getter for the "id" property. | |
| Getter for the "media" property. | |
| Getter for the "media-available" property. | |
| Getter for the "media-change-detected" property. | |
| Getter for the "media-compatibility" property. | |
| Getter for the "media-removable" property. | |
| Getter for the "model" property. | |
| Getter for the "optical" property. | |
| Getter for the "optical-blank" property. | |
| Getter for the "optical-num-audio-tracks" property. | |
| Getter for the "optical-num-data-tracks" property. | |
| Getter for the "optical-num-sessions" property. | |
| Getter for the "optical-num-tracks" property. | |
| Getter for the "removable" property. | |
| Getter for the "revision" property. | |
| Getter for the "rotation-rate" property. | |
| Getter for the "seat" property. | |
| Getter for the "serial" property. | |
| Getter for the "size" property. | |
| Getter for the "sort-key" property. | |
| Getter for the "time-detected" property. | |
| Getter for the "time-media-detected" property. | |
| Getter for the "vendor" property. | |
| Getter for the "wwn" property. | |
| Handler for the "handle-power-off" signal. | |
| Getter for the "can-power-off" property. | |
| Getter for the "sibling-id" property. |
GDBusInterfaceInfo * udisks_drive_interface_info (void);
Gets a machine-readable description of the org.freedesktop.UDisks2.Drive D-Bus interface.
Returns : |
A GDBusInterfaceInfo. Do not free. [transfer none] |
guint udisks_drive_override_properties (GObjectClass *klass,guint property_id_begin);
Overrides all GObject properties in the UDisksDrive interface for a concrete class. The properties are overridden in the order they are defined.
|
The class structure for a GObject-derived class. |
|
The property id to assign to the first overridden property. |
Returns : |
The last property id. |
void udisks_drive_call_eject (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Eject() D-Bus method on proxy.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call udisks_drive_call_eject_finish() to get the result of the operation.
See udisks_drive_call_eject_sync() for the synchronous, blocking version of this method.
|
A UDisksDriveProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
gboolean udisks_drive_call_eject_finish (UDisksDrive *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_call_eject().
|
A UDisksDriveProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_call_eject(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_drive_call_eject_sync (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error);
Synchronously invokes the Eject() D-Bus method on proxy. The calling thread is blocked until a reply is received.
See udisks_drive_call_eject() for the asynchronous version of this method.
|
A UDisksDriveProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void udisks_drive_complete_eject (UDisksDrive *object,GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the Eject() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
|
A UDisksDrive. |
|
A GDBusMethodInvocation. [transfer full] |
void udisks_drive_call_set_configuration (UDisksDrive *proxy,GVariant *arg_value,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the SetConfiguration() D-Bus method on proxy.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call udisks_drive_call_set_configuration_finish() to get the result of the operation.
See udisks_drive_call_set_configuration_sync() for the synchronous, blocking version of this method.
|
A UDisksDriveProxy. |
|
Argument to pass with the method invocation. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
gboolean udisks_drive_call_set_configuration_finish (UDisksDrive *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_call_set_configuration().
|
A UDisksDriveProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_call_set_configuration(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_drive_call_set_configuration_sync (UDisksDrive *proxy,GVariant *arg_value,GVariant *arg_options,GCancellable *cancellable,GError **error);
Synchronously invokes the SetConfiguration() D-Bus method on proxy. The calling thread is blocked until a reply is received.
See udisks_drive_call_set_configuration() for the asynchronous version of this method.
|
A UDisksDriveProxy. |
|
Argument to pass with the method invocation. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void udisks_drive_complete_set_configuration (UDisksDrive *object,GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the SetConfiguration() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
|
A UDisksDrive. |
|
A GDBusMethodInvocation. [transfer full] |
void udisks_drive_call_power_off (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the PowerOff() D-Bus method on proxy.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call udisks_drive_call_power_off_finish() to get the result of the operation.
See udisks_drive_call_power_off_sync() for the synchronous, blocking version of this method.
|
A UDisksDriveProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
Since 2.1
gboolean udisks_drive_call_power_off_finish (UDisksDrive *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_call_power_off().
|
A UDisksDriveProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_call_power_off(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
Since 2.1
gboolean udisks_drive_call_power_off_sync (UDisksDrive *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error);
Synchronously invokes the PowerOff() D-Bus method on proxy. The calling thread is blocked until a reply is received.
See udisks_drive_call_power_off() for the asynchronous version of this method.
|
A UDisksDriveProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
Since 2.1
void udisks_drive_complete_power_off (UDisksDrive *object,GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the PowerOff() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
|
A UDisksDrive. |
|
A GDBusMethodInvocation. [transfer full] |
Since 2.1
const gchar * udisks_drive_get_connection_bus (UDisksDrive *object);
Gets the value of the "ConnectionBus" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_connection_bus() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
gboolean udisks_drive_get_removable (UDisksDrive *object);
Gets the value of the "Removable" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
gboolean udisks_drive_get_ejectable (UDisksDrive *object);
Gets the value of the "Ejectable" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
const gchar * udisks_drive_get_seat (UDisksDrive *object);
Gets the value of the "Seat" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_seat() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_drive_get_media (UDisksDrive *object);
Gets the value of the "Media" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_media() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar *const * udisks_drive_get_media_compatibility
(UDisksDrive *object);
Gets the value of the "MediaCompatibility" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_media_compatibility() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
gboolean udisks_drive_get_media_removable (UDisksDrive *object);
Gets the value of the "MediaRemovable" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
gboolean udisks_drive_get_media_available (UDisksDrive *object);
Gets the value of the "MediaAvailable" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
gboolean udisks_drive_get_media_change_detected
(UDisksDrive *object);
Gets the value of the "MediaChangeDetected" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
guint64 udisks_drive_get_time_detected (UDisksDrive *object);
Gets the value of the "TimeDetected" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
guint64 udisks_drive_get_time_media_detected
(UDisksDrive *object);
Gets the value of the "TimeMediaDetected" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
guint64 udisks_drive_get_size (UDisksDrive *object);
Gets the value of the "Size" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
gboolean udisks_drive_get_optical (UDisksDrive *object);
Gets the value of the "Optical" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
gboolean udisks_drive_get_optical_blank (UDisksDrive *object);
Gets the value of the "OpticalBlank" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
guint udisks_drive_get_optical_num_tracks (UDisksDrive *object);
Gets the value of the "OpticalNumTracks" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
guint udisks_drive_get_optical_num_audio_tracks
(UDisksDrive *object);
Gets the value of the "OpticalNumAudioTracks" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
guint udisks_drive_get_optical_num_data_tracks
(UDisksDrive *object);
Gets the value of the "OpticalNumDataTracks" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
guint udisks_drive_get_optical_num_sessions
(UDisksDrive *object);
Gets the value of the "OpticalNumSessions" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
const gchar * udisks_drive_get_model (UDisksDrive *object);
Gets the value of the "Model" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_model() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_drive_get_revision (UDisksDrive *object);
Gets the value of the "Revision" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_revision() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
gint udisks_drive_get_rotation_rate (UDisksDrive *object);
Gets the value of the "RotationRate" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
const gchar * udisks_drive_get_serial (UDisksDrive *object);
Gets the value of the "Serial" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_serial() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_drive_get_vendor (UDisksDrive *object);
Gets the value of the "Vendor" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_vendor() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_drive_get_wwn (UDisksDrive *object);
Gets the value of the "WWN" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_wwn() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_drive_get_sort_key (UDisksDrive *object);
Gets the value of the "SortKey" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_sort_key() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
GVariant * udisks_drive_get_configuration (UDisksDrive *object);
Gets the value of the "Configuration" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_configuration() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_drive_get_id (UDisksDrive *object);
Gets the value of the "Id" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_id() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
gboolean udisks_drive_get_can_power_off (UDisksDrive *object);
Gets the value of the "CanPowerOff" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value. |
Since 2.1
const gchar * udisks_drive_get_sibling_id (UDisksDrive *object);
Gets the value of the "SiblingId" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_drive_dup_sibling_id() if on another thread.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
Since 2.1
gchar * udisks_drive_dup_connection_bus (UDisksDrive *object);
Gets a copy of the "ConnectionBus" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_seat (UDisksDrive *object);
Gets a copy of the "Seat" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_media (UDisksDrive *object);
Gets a copy of the "Media" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar ** udisks_drive_dup_media_compatibility
(UDisksDrive *object);
Gets a copy of the "MediaCompatibility" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_strfreev(). [transfer full]
|
gchar * udisks_drive_dup_model (UDisksDrive *object);
Gets a copy of the "Model" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_revision (UDisksDrive *object);
Gets a copy of the "Revision" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_serial (UDisksDrive *object);
Gets a copy of the "Serial" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_vendor (UDisksDrive *object);
Gets a copy of the "Vendor" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_wwn (UDisksDrive *object);
Gets a copy of the "WWN" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_sort_key (UDisksDrive *object);
Gets a copy of the "SortKey" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
GVariant * udisks_drive_dup_configuration (UDisksDrive *object);
Gets a copy of the "Configuration" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_variant_unref(). [transfer full]
|
gchar * udisks_drive_dup_id (UDisksDrive *object);
Gets a copy of the "Id" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_drive_dup_sibling_id (UDisksDrive *object);
Gets a copy of the "SiblingId" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksDrive. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
Since 2.1
void udisks_drive_set_connection_bus (UDisksDrive *object,const gchar *value);
Sets the "ConnectionBus" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_removable (UDisksDrive *object,gboolean value);
Sets the "Removable" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_ejectable (UDisksDrive *object,gboolean value);
Sets the "Ejectable" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_seat (UDisksDrive *object,const gchar *value);
Sets the "Seat" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_media (UDisksDrive *object,const gchar *value);
Sets the "Media" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_media_compatibility (UDisksDrive *object,const gchar *const *value);
Sets the "MediaCompatibility" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_media_removable (UDisksDrive *object,gboolean value);
Sets the "MediaRemovable" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_media_available (UDisksDrive *object,gboolean value);
Sets the "MediaAvailable" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_media_change_detected (UDisksDrive *object,gboolean value);
Sets the "MediaChangeDetected" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_time_detected (UDisksDrive *object,guint64 value);
Sets the "TimeDetected" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_time_media_detected (UDisksDrive *object,guint64 value);
Sets the "TimeMediaDetected" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_size (UDisksDrive *object,guint64 value);
Sets the "Size" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_optical (UDisksDrive *object,gboolean value);
Sets the "Optical" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_optical_blank (UDisksDrive *object,gboolean value);
Sets the "OpticalBlank" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_optical_num_tracks (UDisksDrive *object,guint value);
Sets the "OpticalNumTracks" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_optical_num_audio_tracks (UDisksDrive *object,guint value);
Sets the "OpticalNumAudioTracks" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_optical_num_data_tracks (UDisksDrive *object,guint value);
Sets the "OpticalNumDataTracks" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_optical_num_sessions (UDisksDrive *object,guint value);
Sets the "OpticalNumSessions" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_model (UDisksDrive *object,const gchar *value);
Sets the "Model" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_revision (UDisksDrive *object,const gchar *value);
Sets the "Revision" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_rotation_rate (UDisksDrive *object,gint value);
Sets the "RotationRate" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_serial (UDisksDrive *object,const gchar *value);
Sets the "Serial" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_vendor (UDisksDrive *object,const gchar *value);
Sets the "Vendor" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_wwn (UDisksDrive *object,const gchar *value);
Sets the "WWN" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_sort_key (UDisksDrive *object,const gchar *value);
Sets the "SortKey" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_configuration (UDisksDrive *object,GVariant *value);
Sets the "Configuration" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_id (UDisksDrive *object,const gchar *value);
Sets the "Id" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
void udisks_drive_set_can_power_off (UDisksDrive *object,gboolean value);
Sets the "CanPowerOff" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
Since 2.1
void udisks_drive_set_sibling_id (UDisksDrive *object,const gchar *value);
Sets the "SiblingId" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksDrive. |
|
The value to set. |
Since 2.1
struct UDisksDriveProxy;
The UDisksDriveProxy structure contains only private data and should only be accessed using the provided API.
struct UDisksDriveProxyClass {
GDBusProxyClass parent_class;
};
Class structure for UDisksDriveProxy.
void udisks_drive_proxy_new (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks2.Drive. See g_dbus_proxy_new() for more details.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call udisks_drive_proxy_new_finish() to get the result of the operation.
See udisks_drive_proxy_new_sync() for the synchronous, blocking version of this constructor.
|
A GDBusConnection. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique) or NULL if connection is not a message bus connection. [allow-none]
|
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied. |
|
User data to pass to callback. |
UDisksDrive * udisks_drive_proxy_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_proxy_new().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_proxy_new(). |
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveProxy]
|
UDisksDrive * udisks_drive_proxy_new_sync (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error);
Synchronously creates a proxy for the D-Bus interface org.freedesktop.UDisks2.Drive. See g_dbus_proxy_new_sync() for more details.
The calling thread is blocked until a reply is received.
See udisks_drive_proxy_new() for the asynchronous version of this constructor.
|
A GDBusConnection. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique) or NULL if connection is not a message bus connection. [allow-none]
|
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveProxy]
|
void udisks_drive_proxy_new_for_bus (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Like udisks_drive_proxy_new() but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call udisks_drive_proxy_new_for_bus_finish() to get the result of the operation.
See udisks_drive_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
|
A GBusType. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique). |
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied. |
|
User data to pass to callback. |
UDisksDrive * udisks_drive_proxy_new_for_bus_finish (GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_proxy_new_for_bus().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_proxy_new_for_bus(). |
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveProxy]
|
UDisksDrive * udisks_drive_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error);
Like udisks_drive_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See udisks_drive_proxy_new_for_bus() for the asynchronous version of this constructor.
|
A GBusType. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique). |
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveProxy]
|
struct UDisksDriveSkeleton;
The UDisksDriveSkeleton structure contains only private data and should only be accessed using the provided API.
struct UDisksDriveSkeletonClass {
GDBusInterfaceSkeletonClass parent_class;
};
Class structure for UDisksDriveSkeleton.
UDisksDrive * udisks_drive_skeleton_new (void);
Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks2.Drive.
Returns : |
The skeleton object. [transfer full][type UDisksDriveSkeleton] |
"can-power-off" property "can-power-off" gboolean : Read / Write
Represents the D-Bus property "CanPowerOff".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
Since 2.1
"configuration" property "configuration" GVariant* : Read / Write
Represents the D-Bus property "Configuration".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Allowed values: GVariant<a{sv}>
Default value: NULL
"connection-bus" property "connection-bus" gchar* : Read / Write
Represents the D-Bus property "ConnectionBus".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"ejectable" property "ejectable" gboolean : Read / Write
Represents the D-Bus property "Ejectable".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
"id" property "id" gchar* : Read / Write
Represents the D-Bus property "Id".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"media" property "media" gchar* : Read / Write
Represents the D-Bus property "Media".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"media-available" property "media-available" gboolean : Read / Write
Represents the D-Bus property "MediaAvailable".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
"media-change-detected" property "media-change-detected" gboolean : Read / Write
Represents the D-Bus property "MediaChangeDetected".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
"media-compatibility" property "media-compatibility" GStrv : Read / Write
Represents the D-Bus property "MediaCompatibility".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
"media-removable" property "media-removable" gboolean : Read / Write
Represents the D-Bus property "MediaRemovable".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
"model" property "model" gchar* : Read / Write
Represents the D-Bus property "Model".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"optical" property "optical" gboolean : Read / Write
Represents the D-Bus property "Optical".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
"optical-blank" property "optical-blank" gboolean : Read / Write
Represents the D-Bus property "OpticalBlank".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
"optical-num-audio-tracks" property "optical-num-audio-tracks" guint : Read / Write
Represents the D-Bus property "OpticalNumAudioTracks".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"optical-num-data-tracks" property "optical-num-data-tracks" guint : Read / Write
Represents the D-Bus property "OpticalNumDataTracks".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"optical-num-sessions" property "optical-num-sessions" guint : Read / Write
Represents the D-Bus property "OpticalNumSessions".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"optical-num-tracks" property "optical-num-tracks" guint : Read / Write
Represents the D-Bus property "OpticalNumTracks".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"removable" property "removable" gboolean : Read / Write
Represents the D-Bus property "Removable".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: FALSE
"revision" property "revision" gchar* : Read / Write
Represents the D-Bus property "Revision".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"rotation-rate" property "rotation-rate" gint : Read / Write
Represents the D-Bus property "RotationRate".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"seat" property "seat" gchar* : Read / Write
Represents the D-Bus property "Seat".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"serial" property "serial" gchar* : Read / Write
Represents the D-Bus property "Serial".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"sibling-id" property "sibling-id" gchar* : Read / Write
Represents the D-Bus property "SiblingId".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
Since 2.1
"size" property "size" guint64 : Read / Write
Represents the D-Bus property "Size".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"sort-key" property "sort-key" gchar* : Read / Write
Represents the D-Bus property "SortKey".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"time-detected" property "time-detected" guint64 : Read / Write
Represents the D-Bus property "TimeDetected".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"time-media-detected" property "time-media-detected" guint64 : Read / Write
Represents the D-Bus property "TimeMediaDetected".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: 0
"vendor" property "vendor" gchar* : Read / Write
Represents the D-Bus property "Vendor".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"wwn" property "wwn" gchar* : Read / Write
Represents the D-Bus property "WWN".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Default value: NULL
"handle-eject" signalgboolean user_function (UDisksDrive *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the Eject() D-Bus method.
If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call udisks_drive_complete_eject() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
|
A UDisksDrive. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-power-off" signalgboolean user_function (UDisksDrive *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the PowerOff() D-Bus method.
If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call udisks_drive_complete_power_off() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
|
A UDisksDrive. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
Since 2.1
"handle-set-configuration" signalgboolean user_function (UDisksDrive *object,
GDBusMethodInvocation *invocation,
GVariant *arg_value,
GVariant *arg_options,
gpointer user_data) : Run Last
Signal emitted when a remote caller is invoking the SetConfiguration() D-Bus method.
If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call udisks_drive_complete_set_configuration() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
|
A UDisksDrive. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |