Functions

gdbus_feedback_interface_info ()

gdbus_feedback_override_properties (klass, property_id_begin)

get_app_id ()

get_feedback_profile ()

get_proxy ()

init (app_id)

is_initted ()

set_app_id (app_id)

set_feedback_profile (profile)

uninit ()

Details

Lfb.gdbus_feedback_interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the ‘org.sigxcpu.Feedback [gdbus-interface-org-sigxcpu-Feedback.top_of_page]’ D-Bus interface.

Lfb.gdbus_feedback_override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the Lfb.GdbusFeedback interface for a concrete class. The properties are overridden in the order they are defined.

Lfb.get_app_id()
Returns:

the application id.

Return type:

str

Get the application id set via [func`Lfb`.set_app_id].

Lfb.get_feedback_profile()
Returns:

The current profile or None on error.

Return type:

str

Gets the currently set feedback profile.

Lfb.get_proxy()
Returns:

The DBus proxy.

Return type:

Lfb.GdbusFeedback

This can be used to access the lower level API e.g. to listen to property changes. The object is not owned by the caller. Don’t unref it after use.

Lfb.init(app_id)
Parameters:

app_id (str) – The application id

Raises:

GLib.Error

Returns:

True if successful, or False on error.

Return type:

bool

Initialize libfeedback. This must be called before any other of libfeedback’s functions.

Lfb.is_initted()
Returns:

True if libfeedback is initialized, or False otherwise.

Return type:

bool

Gets whether or not libfeedback is initialized.

Lfb.set_app_id(app_id)
Parameters:

app_id (str) – The application id

Sets the application id.

Lfb.set_feedback_profile(profile)
Parameters:

profile (str) – The profile to set

Sets the active feedback profile to #profile. It is up to the feedback daemon to ignore this request. The new profile might not become active immediately. You can listen to changes Lfb.GdbusFeedback's ::profile property to get notified when it takes effect.

Lfb.uninit()

Uninitialize the library when no longer used. Usually called on program shutdown.