Skip to content
Snippets Groups Projects
Commit bd0ede2c authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

object-manager: add _is_installed() method to query installation status

parent a10ee91b
No related branches found
No related tags found
No related merge requests found
......@@ -207,6 +207,20 @@ wp_object_manager_new (void)
return g_object_new (WP_TYPE_OBJECT_MANAGER, NULL);
}
/**
* wp_object_manager_is_installed:
* @self: the object manager
*
* Returns: %TRUE if the object manager is installed (the
* WpObjectManager::installed has been emitted), %FALSE otherwise
*/
gboolean
wp_object_manager_is_installed (WpObjectManager * self)
{
g_return_val_if_fail (WP_IS_OBJECT_MANAGER (self), FALSE);
return self->installed;
}
/**
* wp_object_manager_add_interest:
* @self: the object manager
......
......@@ -45,6 +45,13 @@ G_DECLARE_FINAL_TYPE (WpObjectManager, wp_object_manager, WP, OBJECT_MANAGER, GO
WP_API
WpObjectManager * wp_object_manager_new (void);
/* installation */
WP_API
gboolean wp_object_manager_is_installed (WpObjectManager * self);
/* interest */
WP_API G_DEPRECATED
void wp_object_manager_add_interest (WpObjectManager *self,
GType gtype, GVariant * constraints, WpProxyFeatures wanted_features);
......@@ -57,10 +64,14 @@ WP_API
void wp_object_manager_add_interest_full (WpObjectManager * self,
WpObjectInterest * interest);
/* proxy features */
WP_API
void wp_object_manager_request_proxy_features (WpObjectManager *self,
GType proxy_type, WpProxyFeatures wanted_features);
/* object inspection */
WP_API
guint wp_object_manager_get_n_objects (WpObjectManager * self);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment