Functions

app_filter_deserialize (variant, user_id)

app_filter_error_quark ()

manager_error_quark ()

session_limits_deserialize (variant, user_id)

Details

Malcontent.app_filter_deserialize(variant, user_id)
Parameters:
  • variant (GLib.Variant) – a serialized app filter variant

  • user_id (int) – the ID of the user the app filter relates to

Raises:

GLib.Error

Returns:

deserialized app filter

Return type:

Malcontent.AppFilter

Deserialize an app filter previously serialized with Malcontent.AppFilter.serialize(). This function guarantees to be able to deserialize any serialized form from this version or older versions of libmalcontent.

If deserialization fails, Malcontent.ManagerError.INVALID_DATA will be returned.

New in version 0.7.0.

Malcontent.app_filter_error_quark()
Return type:

int

Malcontent.manager_error_quark()
Return type:

int

Malcontent.session_limits_deserialize(variant, user_id)
Parameters:
  • variant (GLib.Variant) – a serialized session limits variant

  • user_id (int) – the ID of the user the session limits relate to

Raises:

GLib.Error

Returns:

deserialized session limits

Return type:

Malcontent.SessionLimits

Deserialize a set of session limits previously serialized with Malcontent.SessionLimits.serialize(). This function guarantees to be able to deserialize any serialized form from this version or older versions of libmalcontent.

If deserialization fails, Malcontent.ManagerError.INVALID_DATA will be returned.

New in version 0.7.0.