ListallerManager

ListallerManager — Allows managing Listaller applications

Functions

Properties

Signals

void application Run Last
void status-changed Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── ListallerMessageObject
        ╰── ListallerManager

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.

Functions

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);

Parameters

self

the ListallerManager instance

 

filter

 

 

app_list

 

 

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

Parameters

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);

Parameters

self

the ListallerManager instance

 

full_name

 

 

listaller_manager_get_application_by_unique_name ()

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

Parameters

self

the ListallerManager instance

 

idname

 

 

listaller_manager_remove_application ()

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

Parameters

self

the ListallerManager instance

 

app

 

 

listaller_manager_refresh_appitem_data ()

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

Parameters

self

the ListallerManager instance

 

item

 

 

listaller_manager_get_application_filelist ()

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

Parameters

self

the ListallerManager instance

 

app

 

 

Returns

.

[array length=result_length1]


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.

Parameters

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.

Parameters

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);

Parameters

self

the ListallerManager instance

 

app_idname

 

 

listaller_manager_new ()

ListallerManager *
listaller_manager_new (gboolean shared_mode);

Create a new Listaller application manager

Parameters

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.

Parameters

self

the ListallerManager instance to query

 

Returns

the value of the "settings" property

Types and Values

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.

Members

ListallerMessageObjectClass parent_class;

the parent class structure

 

Property Details

The “settings” property

  “settings”                 ListallerSetupSettings *

settings.

Flags: Read / Write

Signal Details

The “application” signal

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

Parameters

manager

the ListallerManager instance that received the signal

 

appid

 

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last


The “status-changed” signal

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

Parameters

manager

the ListallerManager instance that received the signal

 

status

 

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last