LiInstaller

LiInstaller — High level installation of IPK packages

Functions

Signals

void progress Run Last
void stage-changed Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── LiInstaller

Description

Functions

LI_TYPE_INSTALLER

#define LI_TYPE_INSTALLER (li_installer_get_type ())


li_installer_error_quark ()

GQuark
li_installer_error_quark (void);

Returns

An error quark.


li_installer_new ()

LiInstaller *
li_installer_new (void);

Creates a new LiInstaller.

Returns

a LiInstaller.

[transfer full]


li_installer_open_file ()

gboolean
li_installer_open_file (LiInstaller *inst,
                        const gchar *filename,
                        GError **error);

Open a package file for installation.

Parameters

filename

The local IPK package filename

 

li_installer_open_remote ()

gboolean
li_installer_open_remote (LiInstaller *inst,
                          const gchar *pkgid,
                          GError **error);

Install software from a repository.

Parameters

inst

An instance of LiInstaller

 

pkgid

The package/bundle-id of the software to install.

 

li_installer_install ()

gboolean
li_installer_install (LiInstaller *inst,
                      GError **error);

li_installer_get_package_info ()

LiPkgInfo *
li_installer_get_package_info (LiInstaller *inst);

Returns

The LiPkgInfo of the to-be-installed package.

[transfer none]


li_installer_get_appstream_data ()

gchar *
li_installer_get_appstream_data (LiInstaller *inst);

Dump of AppStream XML data describing the software which will be installed.

Parameters

inst

An instance of LiInstaller

 

Returns

AppStream XML data or NULL, free with g_free().

[transfer full]


li_installer_get_package_trust_level ()

LiTrustLevel
li_installer_get_package_trust_level (LiInstaller *inst,
                                      GError **error);

Returns

The trust-level for the to-be-installed package


li_installer_set_ignore_foundations ()

void
li_installer_set_ignore_foundations (LiInstaller *inst,
                                     gboolean ignore);

Parameters

inst

An instance of LiInstaller

 

ignore

TRUE if foundation dependencies should be ignored.

 

li_installer_set_allow_insecure ()

void
li_installer_set_allow_insecure (LiInstaller *inst,
                                 gboolean insecure);

Set if the installer shoule be allowed to install packages with insecure trust levels (LOW or NONE), by performng no trust checks at all. This is off by default, do only ever enable it after warning the user about the danger of installing untrusted software.

Parameters

inst

An instance of LiInstaller

 

insecure

Set TRUE if insecure packages should be allowed to be installed.

 

Types and Values

struct LiInstallerClass

struct LiInstallerClass {
	GObjectClass		parent_class;
};


enum LiInstallerError

The error type.

Members

LI_INSTALLER_ERROR_FAILED

Generic failure

 

LI_INSTALLER_ERROR_INTERNAL

Internal error

 

LI_INSTALLER_ERROR_DEPENDENCY_NOT_FOUND

A dependency was not found

 

LI_INSTALLER_ERROR_FOUNDATION_NOT_FOUND

A system dependency was not found

 

LI_INSTALLER_ERROR

#define LI_INSTALLER_ERROR li_installer_error_quark ()


LiInstaller

typedef struct _LiInstaller LiInstaller;

Signal Details

The “progress” signal

void
user_function (LiInstaller *liinstaller,
               guint        arg1,
               gpointer     arg2,
               gpointer     user_data)

Parameters

liinstaller

the object which received the signal.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last


The “stage-changed” signal

void
user_function (LiInstaller *liinstaller,
               guint        arg1,
               gpointer     arg2,
               gpointer     user_data)

Parameters

liinstaller

the object which received the signal.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last