CloudProviders.AccountExporter

g CloudProviders.AccountExporter CloudProviders.AccountExporter GObject.Object GObject.Object GObject.Object->CloudProviders.AccountExporter

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (provider, bus_name)

set_action_group (action_group)

set_icon (icon)

set_menu_model (menu_model)

set_name (name)

set_path (path)

set_status (status)

set_status_details (status_details)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

action-group

Gio.ActionGroup

r/w

The action group associated with the account and menu model

bus-name

str

r/w/co

The bus name of the account

icon

Gio.Icon

r/w

The icon representing the account

menu-model

Gio.MenuModel

r/w

The menu model associated with the account

name

str

r/w

The name of the account

path

str

r/w

The path of the directory where files are located

provider

CloudProviders.ProviderExporter

r/w/co

The provider associated with the account

status-details

str

r/w

The details of the account status

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class CloudProviders.AccountExporter(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

CloudProviders.AccountExporterClass

classmethod new(provider, bus_name)
Parameters:
  • provider (CloudProviders.ProviderExporter) – The provider to which it will be associated.

  • bus_name (str) – A unique name for the account must be a valid DBus object name

Return type:

CloudProviders.AccountExporter

Create a new CloudProviders.AccountExporter object

set_action_group(action_group)
Parameters:

action_group (Gio.ActionGroup) – The Gio.ActionGroup to be used by the menu exported by cloud_providers_account_exporter_export_menu

In order for a menu exported with cloud_providers_account_exporter_export_menu to receive events that will eventually call your callbacks, it needs the corresponding Gio.ActionGroup. Use this function to export it.

set_icon(icon)
Parameters:

icon (Gio.Icon) –

set_menu_model(menu_model)
Parameters:

menu_model (Gio.MenuModel) – The menu model to export

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

set_name(name)
Parameters:

name (str) –

set_path(path)
Parameters:

path (str) –

set_status(status)
Parameters:

status (CloudProviders.AccountStatus) –

set_status_details(status_details)
Parameters:

status_details (str) –

Property Details

CloudProviders.AccountExporter.props.action_group
Name:

action-group

Type:

Gio.ActionGroup

Default Value:

None

Flags:

READABLE, WRITABLE

The action group associated with the account and menu model

CloudProviders.AccountExporter.props.bus_name
Name:

bus-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The bus name of the account

CloudProviders.AccountExporter.props.icon
Name:

icon

Type:

Gio.Icon

Default Value:

None

Flags:

READABLE, WRITABLE

The icon representing the account

CloudProviders.AccountExporter.props.menu_model
Name:

menu-model

Type:

Gio.MenuModel

Default Value:

None

Flags:

READABLE, WRITABLE

The menu model associated with the account

CloudProviders.AccountExporter.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The name of the account

CloudProviders.AccountExporter.props.path
Name:

path

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The path of the directory where files are located

CloudProviders.AccountExporter.props.provider
Name:

provider

Type:

CloudProviders.ProviderExporter

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The provider associated with the account

CloudProviders.AccountExporter.props.status_details
Name:

status-details

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The details of the account status