Infinityd.FilesystemAccountStorage

g GObject.GInterface GObject.GInterface Infinityd.AccountStorage Infinityd.AccountStorage GObject.GInterface->Infinityd.AccountStorage GObject.Object GObject.Object Infinityd.FilesystemAccountStorage Infinityd.FilesystemAccountStorage GObject.Object->Infinityd.FilesystemAccountStorage Infinityd.AccountStorage->Infinityd.FilesystemAccountStorage

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Infinityd.AccountStorage (10)

Structs:

GObject.ObjectClass (5)

class

new ()

set_filesystem (fs)

Virtual Methods

Inherited:

GObject.Object (7), Infinityd.AccountStorage (9)

Properties

Name

Type

Flags

Short Description

filesystem-storage

Infinityd.FilesystemStorage

r/w

The filesystem storage which to use the store the accounts file

Signals

Inherited:

GObject.Object (1), Infinityd.AccountStorage (2)

Fields

Inherited:

GObject.Object (1), Infinityd.AccountStorage (2)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Infinityd.FilesystemAccountStorage(**kwargs)
Bases:

GObject.Object, Infinityd.AccountStorage

Abstract:

No

Structure:

Infinityd.FilesystemAccountStorageClass

Infinityd.FilesystemAccountStorage is an opaque data type. You should only access it via the public API functions.

classmethod new()
Returns:

A new Infinityd.FilesystemAccountStorage.

Return type:

Infinityd.FilesystemAccountStorage

Creates a new Infinityd.FilesystemAccountStorage that stores its account list as a file in the filesystem. Use Infinityd.FilesystemAccountStorage.set_filesystem() to set the underlying Infinityd.FilesystemStorage object.

set_filesystem(fs)
Parameters:

fs (Infinityd.FilesystemStorage) – The underlying Infinityd.FilesystemStorage to use.

Raises:

GLib.Error

Returns:

True on success or False on error.

Return type:

bool

Uses fs as the underlying Infinityd.FilesystemStorage for self. The Infinityd.FilesystemStorage :root-directory property specifies where the account list is stored.

If an error occurs while loading the account list, the function returns False and error is set.

Property Details

Infinityd.FilesystemAccountStorage.props.filesystem_storage
Name:

filesystem-storage

Type:

Infinityd.FilesystemStorage

Default Value:

None

Flags:

READABLE, WRITABLE

The filesystem storage which to use the store the accounts file