CallsProvider

CallsProvider — An abstraction of call providers, such as oFono, Telepathy or some SIP library.

Functions

Properties

gchar * status Read

Types and Values

Object Hierarchy

    GObject
    ╰── CallsProvider

Description

The CallsProvider abstract class is the root of the class tree that needs to be implemented by a call provider. A CallsProvider provides access to a list of CallsOrigin interfaces, through the calls_provider_get_origins function and the origin-added and origin-removed signals.

Functions

calls_provider_get_name ()

const char *
calls_provider_get_name (CallsProvider *self);

Get the user-presentable name of the provider.

Parameters

self

a CallsProvider

 

Returns

A string containing the name.


calls_provider_get_status ()

const char *
calls_provider_get_status (CallsProvider *self);

calls_provider_get_origins ()

GListModel *
calls_provider_get_origins (CallsProvider *self);

Get the list of CallsOrigin interfaces offered by this provider.

Parameters

self

a CallsProvider

 

error

a GError, or NULL

 

Returns

A GListModel of origins.

[transfer: none]


calls_provider_load_plugin ()

CallsProvider *
calls_provider_load_plugin (const char *name);

Get a CallsProvider plugin by name

Parameters

name

The name of the provider plugin to load

 

Returns

A CallsProvider.

[transfer: full]


calls_provider_unload_plugin ()

void
calls_provider_unload_plugin (const char *name);

Types and Values

CALLS_TYPE_PROVIDER

#define CALLS_TYPE_PROVIDER (calls_provider_get_type ())

struct CallsProviderClass

struct CallsProviderClass {
  GObjectClass parent_class;

  const char *(*get_name)    (CallsProvider *self);
  const char *(*get_status)  (CallsProvider *self);
  GListModel *(*get_origins) (CallsProvider *self);
};

CallsProvider

typedef struct _CallsProvider CallsProvider;

Property Details

The “status” property

  “status”                   gchar *

A text string describing the status for display to the user.

Flags: Read

Default value: ""