| Top |
| const gchar * | ag_application_get_description () |
| GDesktopAppInfo * | ag_application_get_desktop_app_info () |
| const gchar * | ag_application_get_i18n_domain () |
| const gchar * | ag_application_get_name () |
| const gchar * | ag_application_get_service_usage () |
| AgApplication * | ag_application_ref () |
| void | ag_application_unref () |
The AgApplication structure holds information on the client applications
registered with libaccounts.
It is instantiated by AgManager with ag_manager_get_application() and
ag_manager_list_applications_by_service(), and destroyed with
ag_application_unref().
Example 3. Querying application names for an AgService
AgManager *manager;
GList *services, *applications;
AgService *service;
manager = ag_manager_new ();
services = ag_manager_list_services (manager);
g_assert (services != NULL);
service = (AgService *) services->data;
applications = ag_manager_list_applications_by_service (manager, service);
g_print ("Service type: %s\n", ag_service_get_name (service));
for (applications; applications != NULL; applications = applications->next)
{
const gchar *application_name = ag_application_get_name ((AgApplication *) applications->data);
g_print (" Application name: %s\n", application_name);
}
const gchar *
ag_application_get_description (AgApplication *self);
Get the description of the AgApplication.
GDesktopAppInfo *
ag_application_get_desktop_app_info (AgApplication *self);
Get the GDesktopAppInfo of the application.
const gchar *
ag_application_get_i18n_domain (AgApplication *self);
Get the translation domain of the AgApplication.
const gchar *
ag_application_get_name (AgApplication *self);
Get the name of the AgApplication.
const gchar * ag_application_get_service_usage (AgApplication *self,AgService *service);
Get the description from the application XML file, for the specified service; if not found, get the service-type description instead.
AgApplication *
ag_application_ref (AgApplication *self);
Increment the reference count of self
.
void
ag_application_unref (AgApplication *self);
Decrements the reference count of self
. The item is destroyed when the
count gets to 0.