Gjsify LogoGjsify Logo

Interface SharedModel_ConstructProps

Hierarchy

Index

Properties

access_mode?: SharedModelAccessMode

Enumeration defining behavior of this model when trying to write to it.

Setting this to #DEE_SHARED_MODEL_ACCESS_MODE_LEADER_WRITABLE is useful when one process is considered an "owner" of a model and all the other peers are supposed to only synchronize it for reading.

See also DeePeer:swarm-owner property to ensure ownership of a swarm.

back_end?: Dee.Model

The backend model used by this proxy model.

Enumeration defining the flushing behavior.

Setting this to #DEE_SHARED_MODEL_FLUSH_MODE_MANUAL will disable automatic flushing that usually happens when the application's main event loop is idle. Automatic flushing should be primarily disabled when a shared model is used from multiple threads, or when not using #GMainLoop. When disabled, dee_shared_model_flush_revision_queue() needs to be called explicitely.

inherit_seqnums?: boolean

Boolean property defining whether sequence numbers will be inherited from the back end model. You will most likely want to set this property to false if the implementation manipulates with the rows in the model and keep track of seqnums yourself.

peer?: Peer

The #DeePeer that this model uses to connect to the swarm

proxy_signals?: boolean

Boolean property defining whether or not to automatically forward signals from the back end model. This is especially useful for sub classes wishing to do their own more advanced signal forwarding.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method