ListallerManager

ListallerManager — Allows managing Listaller applications

Synopsis

#define             LISTALLER_TYPE_MANAGER
gboolean            listaller_manager_filter_applications
                                                        (ListallerManager *self,
                                                         ListallerAppState filter,
                                                         GeeArrayList **app_list);
gboolean            listaller_manager_find_applications_by_values
                                                        (ListallerManager *self,
                                                         const gchar *filter,
                                                         gchar **values,
                                                         GeeArrayList **appList);
GeeArrayList *      listaller_manager_get_applications_by_fullname
                                                        (ListallerManager *self,
                                                         const gchar *full_name);
ListallerAppItem *  listaller_manager_get_application_by_idname
                                                        (ListallerManager *self,
                                                         const gchar *idname);
gboolean            listaller_manager_remove_application
                                                        (ListallerManager *self,
                                                         ListallerAppItem *app);
gboolean            listaller_manager_refresh_appitem_data
                                                        (ListallerManager *self,
                                                         ListallerAppItem **item);
gchar *             listaller_manager_get_application_filelist_as_string
                                                        (ListallerManager *self,
                                                         ListallerAppItem *app);
gchar *             listaller_manager_get_app_ld_environment
                                                        (ListallerManager *self,
                                                         ListallerAppItem *app);
gboolean            listaller_manager_refresh_repository_cache
                                                        (ListallerManager *self);
ListallerSetup *    listaller_manager_prepare_setup_for_app
                                                        (ListallerManager *self,
                                                         const gchar *app_idname);
ListallerManager *  listaller_manager_new               (gboolean shared_mode);
ListallerSetupSettings * listaller_manager_get_settings (ListallerManager *self);
struct              ListallerManager;
struct              ListallerManagerClass;

Object Hierarchy

  GObject
   +----ListallerMessageObject
         +----ListallerManager

Properties

  "settings"                 ListallerSetupSettings*  : Read / Write

Signals

  "application"                                    : Run Last
  "status-changed"                                 : Run Last

Description

This class allows managing installed applications as well as performing maintainance tasks to keep applications running. It also allows fetching applications from remote sources.

Details

LISTALLER_TYPE_MANAGER

#define LISTALLER_TYPE_MANAGER (listaller_manager_get_type ())

The type for ListallerManager.


listaller_manager_filter_applications ()

gboolean            listaller_manager_filter_applications
                                                        (ListallerManager *self,
                                                         ListallerAppState filter,
                                                         GeeArrayList **app_list);

self :

the ListallerManager instance

listaller_manager_find_applications_by_values ()

gboolean            listaller_manager_find_applications_by_values
                                                        (ListallerManager *self,
                                                         const gchar *filter,
                                                         gchar **values,
                                                         GeeArrayList **appList);

Find applications which match the strings in values

self :

the ListallerManager instance

filter :

Filter, which is applied on the results. [in]

values :

Null-terminated list of strings to search for. [in][array length=values_length1]

values_length1 :

length of the values array

appList :

ArrayList of AppItems to store the result, or NULL (all applications are also emitted in the "application" signal). [out]

listaller_manager_get_applications_by_fullname ()

GeeArrayList *      listaller_manager_get_applications_by_fullname
                                                        (ListallerManager *self,
                                                         const gchar *full_name);

self :

the ListallerManager instance

listaller_manager_get_application_by_idname ()

ListallerAppItem *  listaller_manager_get_application_by_idname
                                                        (ListallerManager *self,
                                                         const gchar *idname);

self :

the ListallerManager instance

listaller_manager_remove_application ()

gboolean            listaller_manager_remove_application
                                                        (ListallerManager *self,
                                                         ListallerAppItem *app);

self :

the ListallerManager instance

listaller_manager_refresh_appitem_data ()

gboolean            listaller_manager_refresh_appitem_data
                                                        (ListallerManager *self,
                                                         ListallerAppItem **item);

self :

the ListallerManager instance

listaller_manager_get_application_filelist_as_string ()

gchar *             listaller_manager_get_application_filelist_as_string
                                                        (ListallerManager *self,
                                                         ListallerAppItem *app);

self :

the ListallerManager instance

listaller_manager_get_app_ld_environment ()

gchar *             listaller_manager_get_app_ld_environment
                                                        (ListallerManager *self,
                                                         ListallerAppItem *app);

Get the LD_LIBRARY_PATH environment for an application.

self :

the ListallerManager instance

app :

AppItem belonging to an Listaller-installed app. [in]

listaller_manager_refresh_repository_cache ()

gboolean            listaller_manager_refresh_repository_cache
                                                        (ListallerManager *self);

Update the 3rd-party remote application cache. This will allow querying for new updates.

self :

the ListallerManager instance

Returns :

TRUE if refresh was successful.

listaller_manager_prepare_setup_for_app ()

ListallerSetup *    listaller_manager_prepare_setup_for_app
                                                        (ListallerManager *self,
                                                         const gchar *app_idname);

self :

the ListallerManager instance

listaller_manager_new ()

ListallerManager *  listaller_manager_new               (gboolean shared_mode);

Create a new Listaller application manager

shared_mode :

Whether we are in shared mode or not. [in]

listaller_manager_get_settings ()

ListallerSetupSettings * listaller_manager_get_settings (ListallerManager *self);

Get and return the current value of the "settings" property.

self :

the ListallerManager instance to query

Returns :

the value of the "settings" property

struct ListallerManager

struct ListallerManager;

Allows managing Listaller applications

This class allows managing installed applications as well as performing maintainance tasks to keep applications running. It also allows fetching applications from remote sources.


struct ListallerManagerClass

struct ListallerManagerClass {
	ListallerMessageObjectClass parent_class;
};

The class structure for LISTALLER_TYPE_MANAGER. All the fields in this structure are private and should never be accessed directly.

ListallerMessageObjectClass parent_class;

the parent class structure

Property Details

The "settings" property

  "settings"                 ListallerSetupSettings*  : Read / Write

settings.

Signal Details

The "application" signal

void                user_function                      (ListallerManager *manager,
                                                        ListallerAppItem *appid,
                                                        gpointer          user_data)      : Run Last

manager :

the ListallerManager instance that received the signal

user_data :

user data set when the signal handler was connected.

The "status-changed" signal

void                user_function                      (ListallerManager    *manager,
                                                        ListallerStatusItem *status,
                                                        gpointer             user_data)      : Run Last

manager :

the ListallerManager instance that received the signal

user_data :

user data set when the signal handler was connected.