| Top |  |  |  |  | 
This class implements the InfdAccountStorage interface via an underlying InfdFilesystemStorage. It uses the "root-directory" of that underlying storage to store an XML file there which contains the account information.
This is a simple implementation of an account storage which keeps all accounts read from the file in memory. When you have more than a thousand accounts or so you should start thinking of using a more sophisticated account storage, for example a database backend.
InfdFilesystemAccountStorage *
infd_filesystem_account_storage_new (void);
Creates a new InfdFilesystemAccountStorage that stores its account list as
a file in the filesystem. Use
infd_filesystem_account_storage_set_filesystem() to set the underlying
InfdFilesystemStorage object.
[constructor]
gboolean infd_filesystem_account_storage_set_filesystem (InfdFilesystemAccountStorage *s,InfdFilesystemStorage *fs,GError **error);
Uses fs
 as the underlying InfdFilesystemStorage for s
. The
“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.
| s | ||
| fs | The underlying InfdFilesystemStorage to use. | |
| error | Location for error information, if any, or  | 
struct InfdFilesystemAccountStorage;
InfdFilesystemAccountStorage is an opaque data type. You should only access it via the public API functions.
struct InfdFilesystemAccountStorageClass {
};
This structure does not contain any public fields.
Specifies the possible error codes in the
INFD_FILESYSTEM_ACCOUNT_STORAGE_ERROR error domain.
Such errors can occur when reading the accounts file from disk.
“filesystem-storage” property“filesystem-storage” InfdFilesystemStorage *
The filesystem storage which to use the store the accounts file.
Flags: Read / Write