CloudProvider

CloudProvider — Base object for representing a single provider

Functions

Includes

#include <src/cloudprovider.h>

Description

CloudProvider is the basic object that interacts with UI and actions that a provider will present to the user. list view. Extensions can provide NautilusColumn by registering a NautilusColumnProvider and returning them from nautilus_column_provider_get_columns(), which will be called by the main application when creating a view.

Functions

cloud_provider_add_account ()

void
cloud_provider_add_account (CloudProvider *cloud_provider,
                            CloudProviderAccount *account);

Each cloud provider can have a variety of account associated with it. Use this function to export the accounts the user set up.

Parameters

self

The cloud provider

 

account

The account object

 

cloud_provider_export_account ()

void
cloud_provider_export_account (CloudProvider *cloud_provider,
                               const gchar *account_name,
                               CloudProviderAccount1 *account);

Each cloud provider can have a variety of account associated with it. Use this function to export the accounts the user set up.

Parameters

self

The cloud provider

 

account_name

The account name

 

account

The account object

 

cloud_provider_unexport_account ()

void
cloud_provider_unexport_account (CloudProvider *cloud_provider,
                                 const gchar *account_name);

Each cloud provider can have a variety of account associated with it. Use this function to remove an already set up account.

Parameters

self

The cloud provider

 

account_name

The name of the account

 

cloud_provider_export_menu ()

guint
cloud_provider_export_menu (CloudProvider *cloud_provider,
                            const gchar *account_name,
                            GMenuModel *model);

One of the benefits of the integration is to display a menu with available options for an account. Use this function to export a GMenuModel menu to be displayed by the choosen integration by the desktop environment or application.

Parameters

self

The cloud provider

 

account_name

The name of the account

 

cloud_provider_unexport_menu ()

void
cloud_provider_unexport_menu (CloudProvider *cloud_provider,
                              const gchar *account_name);

Remove the menu added with cloud_provider_export_menu

Parameters

self

The cloud provider

 

account_name

The name of the account

 

cloud_provider_export_action_group ()

guint
cloud_provider_export_action_group (CloudProvider *cloud_provider,
                                    const gchar *account_name,
                                    GActionGroup *action_group);

cloud_provider_unexport_action_group ()

void
cloud_provider_unexport_action_group (CloudProvider *cloud_provider,
                                      const gchar *account_name);

Unexport the GActionGroup exported by cloud_provider_export_action_group

Parameters

self

The cloud provider

 

account_name

The name of the account

 

cloud_provider_export_objects ()

void
cloud_provider_export_objects (CloudProvider *cloud_provider);

Export all objects assigned previously with functions like cloud_provider_export_menu to DBUS. Use this function after exporting all the required object to avoid multiple signals being emitted in a short time.

Parameters

self

The cloud provider

 

cloud_provider_emit_changed ()

void
cloud_provider_emit_changed (CloudProvider *cloud_provider,
                             const gchar *account_name);

When an account changes its status, emit a signal to DBUS using this function so clients are aware of the change.

Parameters

self

The cloud provider

 

account_name

The name of the account

 

cloud_provider_new ()

CloudProvider *
cloud_provider_new (GDBusConnection *bus,
                    const gchar *bus_name,
                    const gchar *object_path);

Types and Values