Camel.Object

g Camel.Object Camel.Object GObject.Object GObject.Object GObject.Object->Camel.Object

Subclasses:Camel.Folder, Camel.Service

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
  get_state_filename ()
  set_state_filename (state_filename)
  state_read ()
  state_write ()

Virtual Methods

Inherited:GObject.Object (7)
  do_state_read (fp)
  do_state_write (fp)

Properties

Name Type Flags Short Description
state-filename str r/w/c/en File containing persistent property values

Signals

Inherited:GObject.Object (1)

Fields

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

Class Details

class Camel.Object(**kwargs)
Bases:GObject.Object
Abstract:Yes
Structure:Camel.ObjectClass
get_state_filename()
Returns:the name of the persistent property file
Return type:str

Returns the name of the file in which persistent property values for self are stored. The file is used by Camel.Object.state_write() and Camel.Object.state_read() to save and restore object state.

New in version 2.32.

set_state_filename(state_filename)
Parameters:state_filename (str) – path to a local file

Sets the name of the file in which persistent property values for self are stored. The file is used by Camel.Object.state_write() and Camel.Object.state_read() to save and restore object state.

New in version 2.32.

state_read()
Returns:-1 on error.
Return type:int

Read persistent object state from Camel.Object :state-filename.

state_write()
Returns:-1 on error.
Return type:int

Write persistent object state Camel.Object :state-filename.

do_state_read(fp) virtual
Parameters:fp (object or None) –
Return type:int
do_state_write(fp) virtual
Parameters:fp (object or None) –
Return type:int

Property Details

Camel.Object.props.state_filename
Name:state-filename
Type:str
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT, EXPLICIT_NOTIFY

The file in which to store persistent property values for this instance.