EDataServer.SourceLocal

g EDataServer.SourceExtension EDataServer.SourceExtension EDataServer.SourceLocal EDataServer.SourceLocal EDataServer.SourceExtension->EDataServer.SourceLocal GObject.Object GObject.Object GObject.Object->EDataServer.SourceExtension

Subclasses:None

Virtual Methods

Inherited:GObject.Object (7)

Properties

Inherited:EDataServer.SourceExtension (1)
Name Type Flags Short Description
custom-file Gio.File r/w/c/en Custom iCalendar file
writable bool r/w/c/en Whether the file can be opened in writable mode

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent EDataServer.SourceExtension r  

Class Details

class EDataServer.SourceLocal(**kwargs)
Bases:EDataServer.SourceExtension
Abstract:No
Structure:EDataServer.SourceLocalClass
dup_custom_file()
Returns:the Gio.File instance, or None
Return type:Gio.File or None

A thread safe variant to get a custom file being set on the self. Free the returned Gio.File, if not None, with GObject.Object.unref(), when no longer needed.

get_custom_file()
Returns:the Gio.File instance, or None
Return type:Gio.File or None

Get the custom file being set on the self. The returned Gio.File is owned by the self.

For thread safety use EDataServer.SourceLocal.dup_custom_file().

get_writable()
Returns:whether prefer to pen the file in writable mode
Return type:bool

Returns whether the backend should prefer to open the file in writable mode. The default is True. The file can be still opened for read-only, for example when the access to the file is read-only.

New in version 3.34.

set_custom_file(custom_file)
Parameters:custom_file (Gio.File or None) – a Gio.File, or None

Set, or unset, when using None, the custom file for the self.

set_writable(writable)
Parameters:writable (bool) – value to set

Set whether the custom file should be opened in writable mode. The default is True. The file can be still opened for read-only, for example when the access to the file is read-only.

New in version 3.34.

Property Details

EDataServer.SourceLocal.props.custom_file
Name:custom-file
Type:Gio.File
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

Custom iCalendar file

EDataServer.SourceLocal.props.writable
Name:writable
Type:bool
Default Value:True
Flags:READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

Whether the file can be opened in writable mode