LpfManager

LpfManager — Provider Manager

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── LpfManager

Description

A LpfManager handles the different public transport information providers.

Functions

lpf_manager_new ()

LpfManager *
lpf_manager_new (void);

Returns


lpf_manager_error_quark ()

GQuark
lpf_manager_error_quark (void);

Returns


lpf_manager_get_available_providers ()

GStrv
lpf_manager_get_available_providers (void);

Returns

List of available providers.

[transfer full]


lpf_manager_activate_provider ()

LpfProvider *
lpf_manager_activate_provider (LpfManager *self,
                               const gchar *name,
                               GError **error);

Activate the given provider

Parameters

self

a LpfManager

 

name

the name of the provider to activate

 

error

a GError for errorreporting or NULL

 

Returns

The activated LpfProvider.

[transfer none]


lpf_manager_deactivate_provider ()

void
lpf_manager_deactivate_provider (LpfManager *self,
                                 LpfProvider *provider);

Types and Values

LPF_PROVIDERS_ENV

#define LPF_PROVIDERS_ENV "LPF_PROVIDERS"


LPF_MANAGER_ERROR

#define LPF_MANAGER_ERROR g_spawn_error_quark ()

Error domain for the provider manager


enum LpfManagerError

Error codes returned by manager

Members

LPF_MANAGER_ERROR_ACTIVATION_FAILED

activation of the provider failed

 

See Also

LpfProvider