Session Items

WpSessionItem

GObject
    ╰──WpSessionItem
        ╰──WpSessionBin

Members

parent_instance (GObject) –
No description available

Class structure

WpSessionItemClass

Fields
parent_class (GObjectClass) –
No description available

Wp.SessionItemClass

Attributes
parent_class (GObject.ObjectClass) –
No description available

Wp.SessionItemClass

Attributes
parent_class (GObject.ObjectClass) –
No description available

WpSessionItem

GObject
    ╰──WpSessionItem
        ╰──WpSessionBin

Members

parent_instance (GObject) –
No description available

WpSessionItem

GObject
    ╰──WpSessionItem
        ╰──WpSessionBin

Members

parent_instance (GObject) –
No description available

Methods

wp_session_item_activate

wp_session_item_activate (WpSessionItem * self,
                          GAsyncReadyCallback callback,
                          gpointer callback_data)

Activates the item asynchronously. You can use wp_session_item_activate_finish in the callback to get the result of this operation.

This internally starts a WpTransition that calls into activate_get_next_step() and activate_execute_step() to advance. If the transition fails, activate_rollback() is called to reverse previous actions.

The default implementation of the above virtual functions activates the item successfully without doing anything. In order to implement a meaningful session item, you should override all 3 of them.

When this method is called, the WP_SI_FLAG_ACTIVATING flag is set. When the operation finishes successfully, that flag is cleared and replaced with either WP_SI_FLAG_ACTIVE or WP_SI_FLAG_ACTIVATE_ERROR, depending on the success outcome of the operation. In order to clear WP_SI_FLAG_ACTIVATE_ERROR, you can either call wp_session_item_deactivate or wp_session_item_activate to try activating again.

This method cannot be called if another operation (activation or export) is in progress (%WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS) or if the item is already activated.

Parameters:

self

the session item

callback ( [scope async] ) –

a callback to call when activation is finished

callback_data ( [closure] ) –

data passed to callback


Wp.SessionItem.activate

def Wp.SessionItem.activate (self, callback, *callback_data):
    #python wrapper for 'wp_session_item_activate'

Activates the item asynchronously. You can use Wp.SessionItem.activate_finish in the callback to get the result of this operation.

This internally starts a Wp.Transition that calls into do_activate_get_next_step() and do_activate_execute_step() to advance. If the transition fails, do_activate_rollback() is called to reverse previous actions.

The default implementation of the above virtual functions activates the item successfully without doing anything. In order to implement a meaningful session item, you should override all 3 of them.

When this method is called, the Wp.SiFlags.ACTIVATING flag is set. When the operation finishes successfully, that flag is cleared and replaced with either Wp.SiFlags.ACTIVE or Wp.SiFlags.ACTIVATE_ERROR, depending on the success outcome of the operation. In order to clear Wp.SiFlags.ACTIVATE_ERROR, you can either call Wp.SessionItem.deactivate or Wp.SessionItem.activate to try activating again.

This method cannot be called if another operation (activation or export) is in progress (%WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS) or if the item is already activated.

Parameters:

self ( Wp.SessionItem ) –

the session item

callback ( Gio.AsyncReadyCallback ) –

a callback to call when activation is finished

callback_data ( variadic ) –

data passed to callback


Wp.SessionItem.prototype.activate

function Wp.SessionItem.prototype.activate(callback: Gio.AsyncReadyCallback, callback_data: Object): {
    // javascript wrapper for 'wp_session_item_activate'
}

Activates the item asynchronously. You can use Wp.SessionItem.prototype.activate_finish in the callback to get the result of this operation.

This internally starts a Wp.Transition that calls into vfunc_activate_get_next_step() and vfunc_activate_execute_step() to advance. If the transition fails, vfunc_activate_rollback() is called to reverse previous actions.

The default implementation of the above virtual functions activates the item successfully without doing anything. In order to implement a meaningful session item, you should override all 3 of them.

When this method is called, the Wp.SiFlags.ACTIVATING flag is set. When the operation finishes successfully, that flag is cleared and replaced with either Wp.SiFlags.ACTIVE or Wp.SiFlags.ACTIVATE_ERROR, depending on the success outcome of the operation. In order to clear Wp.SiFlags.ACTIVATE_ERROR, you can either call Wp.SessionItem.prototype.deactivate or Wp.SessionItem.prototype.activate to try activating again.

This method cannot be called if another operation (activation or export) is in progress (%WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS) or if the item is already activated.

Parameters:

self ( Wp.SessionItem ) –

the session item

callback ( Gio.AsyncReadyCallback ) –

a callback to call when activation is finished

callback_data ( Object ) –

data passed to callback


wp_session_item_activate_finish

gboolean
wp_session_item_activate_finish (WpSessionItem * self,
                                 GAsyncResult * res,
                                 GError ** error)

Parameters:

self

the session item

res

the async operation result

error ( [out] [optional] ) –

the error of the operation, if any

Returns

TRUE if the item is now activateed, FALSE if there was an error


Wp.SessionItem.activate_finish

@raises(GLib.GError)
def Wp.SessionItem.activate_finish (self, res):
    #python wrapper for 'wp_session_item_activate_finish'

Parameters:

self ( Wp.SessionItem ) –

the session item

res ( Gio.AsyncResult ) –

the async operation result

Returns ( bool ) –

True if the item is now activateed, False if there was an error


Wp.SessionItem.prototype.activate_finish

function Wp.SessionItem.prototype.activate_finish(res: Gio.AsyncResult): {
    // javascript wrapper for 'wp_session_item_activate_finish'
}

Parameters:

self ( Wp.SessionItem ) –

the session item

res ( Gio.AsyncResult ) –

the async operation result

Returns ( Number ) –

true if the item is now activateed, false if there was an error


wp_session_item_clear_flag

wp_session_item_clear_flag (WpSessionItem * self,
                            WpSiFlags flag)

Clears the specified flag from this item.

Note that bits 1-8 cannot be cleared using this function, they can only be changed internally.

Parameters:

self

the session item

flag

the flag to clear


Wp.SessionItem.clear_flag

def Wp.SessionItem.clear_flag (self, flag):
    #python wrapper for 'wp_session_item_clear_flag'

Clears the specified flag from this item.

Note that bits 1-8 cannot be cleared using this function, they can only be changed internally.

Parameters:

self ( Wp.SessionItem ) –

the session item

flag ( Wp.SiFlags ) –

the flag to clear


Wp.SessionItem.prototype.clear_flag

function Wp.SessionItem.prototype.clear_flag(flag: Wp.SiFlags): {
    // javascript wrapper for 'wp_session_item_clear_flag'
}

Clears the specified flag from this item.

Note that bits 1-8 cannot be cleared using this function, they can only be changed internally.

Parameters:

self ( Wp.SessionItem ) –

the session item

flag ( Wp.SiFlags ) –

the flag to clear


wp_session_item_configure

gboolean
wp_session_item_configure (WpSessionItem * self,
                           GVariant * args)

Parameters:

self

the session item

args ( [transfer: floating] ) –

the configuration options to set (a{sv} dictionary, mapping option names to values)

Returns

TRUE on success, FALSE if the options could not be set


Wp.SessionItem.configure

def Wp.SessionItem.configure (self, args):
    #python wrapper for 'wp_session_item_configure'

Parameters:

self ( Wp.SessionItem ) –

the session item

args ( GLib.Variant ) –

the configuration options to set (a{sv} dictionary, mapping option names to values)

Returns ( bool ) –

True on success, False if the options could not be set


Wp.SessionItem.prototype.configure

function Wp.SessionItem.prototype.configure(args: GLib.Variant): {
    // javascript wrapper for 'wp_session_item_configure'
}

Parameters:

self ( Wp.SessionItem ) –

the session item

args ( GLib.Variant ) –

the configuration options to set (a{sv} dictionary, mapping option names to values)

Returns ( Number ) –

true on success, false if the options could not be set


wp_session_item_deactivate

wp_session_item_deactivate (WpSessionItem * self)

De-activates the item and/or cancels any ongoing activation operation.

If the item was not activated, this method does nothing.

Parameters:

self

the session item


Wp.SessionItem.deactivate

def Wp.SessionItem.deactivate (self):
    #python wrapper for 'wp_session_item_deactivate'

De-activates the item and/or cancels any ongoing activation operation.

If the item was not activated, this method does nothing.

Parameters:

self ( Wp.SessionItem ) –

the session item


Wp.SessionItem.prototype.deactivate

function Wp.SessionItem.prototype.deactivate(): {
    // javascript wrapper for 'wp_session_item_deactivate'
}

De-activates the item and/or cancels any ongoing activation operation.

If the item was not activated, this method does nothing.

Parameters:

self ( Wp.SessionItem ) –

the session item


wp_session_item_export

wp_session_item_export (WpSessionItem * self,
                        WpSession * session,
                        GAsyncReadyCallback callback,
                        gpointer callback_data)

Exports this item asynchronously on PipeWire, making it part of the specified session. You can use wp_session_item_export_finish in the callback to get the result of this operation.

This internally starts a WpTransition that calls into export_get_next_step() and export_execute_step() to advance. If the transition fails, export_rollback() is called to reverse previous actions.

Exporting is internally implemented for endpoints (items that implement WpSiEndpoint) and endpoint links (items that implement WpSiLink). On other items the default implementation will immediately call the callback, reporting error. You can extend this to export custom interfaces by overriding the virtual functions mentioned above.

When this method is called, the WP_SI_FLAG_EXPORTING flag is set. When the operation finishes successfully, that flag is cleared and replaced with either WP_SI_FLAG_EXPORTED or WP_SI_FLAG_EXPORT_ERROR, depending on the success outcome of the operation. In order to clear WP_SI_FLAG_EXPORT_ERROR, you can either call wp_session_item_unexport or wp_session_item_export to try exporting again.

This method cannot be called if another operation (activation or export) is in progress (%WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS) or if the item is already exported.

Parameters:

self

the session item

session

the session on which to export this item

callback ( [scope async] ) –

a callback to call when exporting is finished

callback_data ( [closure] ) –

data passed to callback


Wp.SessionItem.export

def Wp.SessionItem.export (self, session, callback, *callback_data):
    #python wrapper for 'wp_session_item_export'

Exports this item asynchronously on PipeWire, making it part of the specified session. You can use Wp.SessionItem.export_finish in the callback to get the result of this operation.

This internally starts a Wp.Transition that calls into do_export_get_next_step() and do_export_execute_step() to advance. If the transition fails, do_export_rollback() is called to reverse previous actions.

Exporting is internally implemented for endpoints (items that implement Wp.SiEndpoint) and endpoint links (items that implement Wp.SiLink). On other items the default implementation will immediately call the callback, reporting error. You can extend this to export custom interfaces by overriding the virtual functions mentioned above.

When this method is called, the Wp.SiFlags.EXPORTING flag is set. When the operation finishes successfully, that flag is cleared and replaced with either Wp.SiFlags.EXPORTED or Wp.SiFlags.EXPORT_ERROR, depending on the success outcome of the operation. In order to clear Wp.SiFlags.EXPORT_ERROR, you can either call Wp.SessionItem.unexport or Wp.SessionItem.export to try exporting again.

This method cannot be called if another operation (activation or export) is in progress (%WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS) or if the item is already exported.

Parameters:

self ( Wp.SessionItem ) –

the session item

session ( Wp.Session ) –

the session on which to export this item

callback ( Gio.AsyncReadyCallback ) –

a callback to call when exporting is finished

callback_data ( variadic ) –

data passed to callback


Wp.SessionItem.prototype.export

function Wp.SessionItem.prototype.export(session: Wp.Session, callback: Gio.AsyncReadyCallback, callback_data: Object): {
    // javascript wrapper for 'wp_session_item_export'
}

Exports this item asynchronously on PipeWire, making it part of the specified session. You can use Wp.SessionItem.prototype.export_finish in the callback to get the result of this operation.

This internally starts a Wp.Transition that calls into vfunc_export_get_next_step() and vfunc_export_execute_step() to advance. If the transition fails, vfunc_export_rollback() is called to reverse previous actions.

Exporting is internally implemented for endpoints (items that implement Wp.SiEndpoint) and endpoint links (items that implement Wp.SiLink). On other items the default implementation will immediately call the callback, reporting error. You can extend this to export custom interfaces by overriding the virtual functions mentioned above.

When this method is called, the Wp.SiFlags.EXPORTING flag is set. When the operation finishes successfully, that flag is cleared and replaced with either Wp.SiFlags.EXPORTED or Wp.SiFlags.EXPORT_ERROR, depending on the success outcome of the operation. In order to clear Wp.SiFlags.EXPORT_ERROR, you can either call Wp.SessionItem.prototype.unexport or Wp.SessionItem.prototype.export to try exporting again.

This method cannot be called if another operation (activation or export) is in progress (%WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS) or if the item is already exported.

Parameters:

self ( Wp.SessionItem ) –

the session item

session ( Wp.Session ) –

the session on which to export this item

callback ( Gio.AsyncReadyCallback ) –

a callback to call when exporting is finished

callback_data ( Object ) –

data passed to callback


wp_session_item_export_finish

gboolean
wp_session_item_export_finish (WpSessionItem * self,
                               GAsyncResult * res,
                               GError ** error)

Parameters:

self

the session item

res

the async operation result

error ( [out] [optional] ) –

the error of the operation, if any

Returns

TRUE if the item is now exported, FALSE if there was an error


Wp.SessionItem.export_finish

@raises(GLib.GError)
def Wp.SessionItem.export_finish (self, res):
    #python wrapper for 'wp_session_item_export_finish'

Parameters:

self ( Wp.SessionItem ) –

the session item

res ( Gio.AsyncResult ) –

the async operation result

Returns ( bool ) –

True if the item is now exported, False if there was an error


Wp.SessionItem.prototype.export_finish

function Wp.SessionItem.prototype.export_finish(res: Gio.AsyncResult): {
    // javascript wrapper for 'wp_session_item_export_finish'
}

Parameters:

self ( Wp.SessionItem ) –

the session item

res ( Gio.AsyncResult ) –

the async operation result

Returns ( Number ) –

true if the item is now exported, false if there was an error


wp_session_item_get_associated_proxy

gpointer
wp_session_item_get_associated_proxy (WpSessionItem * self,
                                      GType proxy_type)

An associated proxy is a WpProxy subclass instance that is somehow related to this item. For example:

Parameters:

self

the session item

proxy_type

a WpProxy subclass GType

Returns ( [nullable] [transfer: full] [type WpProxy] ) –

the associated proxy of the specified proxy_type, or NULL if there is no association to such a proxy


Wp.SessionItem.get_associated_proxy

def Wp.SessionItem.get_associated_proxy (self, proxy_type):
    #python wrapper for 'wp_session_item_get_associated_proxy'

An associated proxy is a Wp.Proxy subclass instance that is somehow related to this item. For example:

Parameters:

self ( Wp.SessionItem ) –

the session item

proxy_type ( GObject.Type ) –

a Wp.Proxy subclass GObject.Type

Returns ( Wp.Proxy ) –

the associated proxy of the specified proxy_type, or None if there is no association to such a proxy


Wp.SessionItem.prototype.get_associated_proxy

function Wp.SessionItem.prototype.get_associated_proxy(proxy_type: GObject.Type): {
    // javascript wrapper for 'wp_session_item_get_associated_proxy'
}

An associated proxy is a Wp.Proxy subclass instance that is somehow related to this item. For example:

Parameters:

self ( Wp.SessionItem ) –

the session item

proxy_type ( GObject.Type ) –

a Wp.Proxy subclass GObject.Type

Returns ( Wp.Proxy ) –

the associated proxy of the specified proxy_type, or null if there is no association to such a proxy


wp_session_item_get_associated_proxy_id

guint32
wp_session_item_get_associated_proxy_id (WpSessionItem * self,
                                         GType proxy_type)

Parameters:

self

the session item

proxy_type

a WpProxy subclass GType

Returns

the bound id of the associated proxy of the specified proxy_type, or SPA_ID_INVALID if there is no association to such a proxy


Wp.SessionItem.get_associated_proxy_id

def Wp.SessionItem.get_associated_proxy_id (self, proxy_type):
    #python wrapper for 'wp_session_item_get_associated_proxy_id'

Parameters:

self ( Wp.SessionItem ) –

the session item

proxy_type ( GObject.Type ) –

a Wp.Proxy subclass GObject.Type

Returns ( int ) –

the bound id of the associated proxy of the specified proxy_type, or SPA_ID_INVALID if there is no association to such a proxy


Wp.SessionItem.prototype.get_associated_proxy_id

function Wp.SessionItem.prototype.get_associated_proxy_id(proxy_type: GObject.Type): {
    // javascript wrapper for 'wp_session_item_get_associated_proxy_id'
}

Parameters:

self ( Wp.SessionItem ) –

the session item

proxy_type ( GObject.Type ) –

a Wp.Proxy subclass GObject.Type

Returns ( Number ) –

the bound id of the associated proxy of the specified proxy_type, or SPA_ID_INVALID if there is no association to such a proxy


wp_session_item_get_configuration

GVariant *
wp_session_item_get_configuration (WpSessionItem * self)

Parameters:

self

the session item

Returns ( [transfer: floating] ) –

the active configuration, as a a{sv} dictionary


Wp.SessionItem.get_configuration

def Wp.SessionItem.get_configuration (self):
    #python wrapper for 'wp_session_item_get_configuration'

Parameters:

self ( Wp.SessionItem ) –

the session item

Returns ( GLib.Variant ) –

the active configuration, as a a{sv} dictionary


Wp.SessionItem.prototype.get_configuration

function Wp.SessionItem.prototype.get_configuration(): {
    // javascript wrapper for 'wp_session_item_get_configuration'
}

Parameters:

self ( Wp.SessionItem ) –

the session item

Returns ( GLib.Variant ) –

the active configuration, as a a{sv} dictionary


wp_session_item_get_flags

WpSiFlags
wp_session_item_get_flags (WpSessionItem * self)

Parameters:

self

the session item

Returns

the item's flags


Wp.SessionItem.get_flags

def Wp.SessionItem.get_flags (self):
    #python wrapper for 'wp_session_item_get_flags'

Parameters:

self ( Wp.SessionItem ) –

the session item

Returns ( Wp.SiFlags ) –

the item's flags


Wp.SessionItem.prototype.get_flags

function Wp.SessionItem.prototype.get_flags(): {
    // javascript wrapper for 'wp_session_item_get_flags'
}

Parameters:

self ( Wp.SessionItem ) –

the session item

Returns ( Wp.SiFlags ) –

the item's flags


wp_session_item_get_parent

WpSessionItem *
wp_session_item_get_parent (WpSessionItem * self)

Gets the item's parent, which is the WpSessionBin this item has been added to, or NULL if the item does not belong to a session bin.

Parameters:

self

the session item

Returns ( [nullable] [transfer: full] ) –

the item's parent.


Wp.SessionItem.get_parent

def Wp.SessionItem.get_parent (self):
    #python wrapper for 'wp_session_item_get_parent'

Gets the item's parent, which is the Wp.SessionBin this item has been added to, or NULL if the item does not belong to a session bin.

Parameters:

self ( Wp.SessionItem ) –

the session item

Returns ( Wp.SessionItem ) –

the item's parent.


Wp.SessionItem.prototype.get_parent

function Wp.SessionItem.prototype.get_parent(): {
    // javascript wrapper for 'wp_session_item_get_parent'
}

Gets the item's parent, which is the Wp.SessionBin this item has been added to, or NULL if the item does not belong to a session bin.

Parameters:

self ( Wp.SessionItem ) –

the session item

Returns ( Wp.SessionItem ) –

the item's parent.


wp_session_item_reset

wp_session_item_reset (WpSessionItem * self)

Resets the state of the item, deactivating it, unexporting it and resetting configuration options as well.

Parameters:

self

the session item


Wp.SessionItem.reset

def Wp.SessionItem.reset (self):
    #python wrapper for 'wp_session_item_reset'

Resets the state of the item, deactivating it, unexporting it and resetting configuration options as well.

Parameters:

self ( Wp.SessionItem ) –

the session item


Wp.SessionItem.prototype.reset

function Wp.SessionItem.prototype.reset(): {
    // javascript wrapper for 'wp_session_item_reset'
}

Resets the state of the item, deactivating it, unexporting it and resetting configuration options as well.

Parameters:

self ( Wp.SessionItem ) –

the session item


wp_session_item_set_flag

wp_session_item_set_flag (WpSessionItem * self,
                          WpSiFlags flag)

Sets the specified flag on this item.

Note that bits 1-8 cannot be set using this function, they can only be changed internally.

Parameters:

self

the session item

flag

the flag to set


Wp.SessionItem.set_flag

def Wp.SessionItem.set_flag (self, flag):
    #python wrapper for 'wp_session_item_set_flag'

Sets the specified flag on this item.

Note that bits 1-8 cannot be set using this function, they can only be changed internally.

Parameters:

self ( Wp.SessionItem ) –

the session item

flag ( Wp.SiFlags ) –

the flag to set


Wp.SessionItem.prototype.set_flag

function Wp.SessionItem.prototype.set_flag(flag: Wp.SiFlags): {
    // javascript wrapper for 'wp_session_item_set_flag'
}

Sets the specified flag on this item.

Note that bits 1-8 cannot be set using this function, they can only be changed internally.

Parameters:

self ( Wp.SessionItem ) –

the session item

flag ( Wp.SiFlags ) –

the flag to set


wp_session_item_unexport

wp_session_item_unexport (WpSessionItem * self)

Reverses the effects of a previous call to wp_session_item_export. This means that after this method is called:

  • The item is no longer exported on PipeWire
  • The item is no longer associated with a session
  • If an export operation was in progress, it is cancelled.

If the item was not exported, this method does nothing.

Parameters:

self

the session item


Wp.SessionItem.unexport

def Wp.SessionItem.unexport (self):
    #python wrapper for 'wp_session_item_unexport'

Reverses the effects of a previous call to Wp.SessionItem.export. This means that after this method is called:

  • The item is no longer exported on PipeWire
  • The item is no longer associated with a session
  • If an export operation was in progress, it is cancelled.

If the item was not exported, this method does nothing.

Parameters:

self ( Wp.SessionItem ) –

the session item


Wp.SessionItem.prototype.unexport

function Wp.SessionItem.prototype.unexport(): {
    // javascript wrapper for 'wp_session_item_unexport'
}

Reverses the effects of a previous call to Wp.SessionItem.prototype.export. This means that after this method is called:

  • The item is no longer exported on PipeWire
  • The item is no longer associated with a session
  • If an export operation was in progress, it is cancelled.

If the item was not exported, this method does nothing.

Parameters:

self ( Wp.SessionItem ) –

the session item


Functions

wp_session_item_make

WpSessionItem *
wp_session_item_make (WpCore * core,
                      const gchar * factory_name)

Finds the factory associated with the given name from the core and uses it to construct a new WpSessionItem.

Parameters:

core

the WpCore

factory_name

the name of the factory to be used for constructing the object

Returns ( [transfer: full] [nullable] ) –

the new session item


Wp.SessionItem.make

def Wp.SessionItem.make (core, factory_name):
    #python wrapper for 'wp_session_item_make'

Finds the factory associated with the given name from the core and uses it to construct a new Wp.SessionItem.

Parameters:

core ( Wp.Core ) –

the Wp.Core

factory_name ( str ) –

the name of the factory to be used for constructing the object

Returns ( Wp.SessionItem ) –

the new session item


Wp.SessionItem.prototype.make

function Wp.SessionItem.prototype.make(core: Wp.Core, factory_name: String): {
    // javascript wrapper for 'wp_session_item_make'
}

Finds the factory associated with the given name from the core and uses it to construct a new Wp.SessionItem.

Parameters:

core ( Wp.Core ) –

the Wp.Core

factory_name ( String ) –

the name of the factory to be used for constructing the object

Returns ( Wp.SessionItem ) –

the new session item


Signals

flags-changed

flags_changed_callback (WpSessionItem * self,
                        WpSiFlags * flags,
                        gpointer user_data)

Parameters:

self

the session item

flags

the current flags

user_data
No description available

Flags: Run Last


flags-changed

def flags_changed_callback (self, flags, *user_data):
    #python callback for the 'flags-changed' signal

Parameters:

self ( Wp.SessionItem ) –

the session item

flags ( Wp.SiFlags ) –

the current flags

user_data ( variadic ) –
No description available

Flags: Run Last


flags-changed

function flags_changed_callback(self: Wp.SessionItem, flags: Wp.SiFlags, user_data: Object): {
    // javascript callback for the 'flags-changed' signal
}

Parameters:

self ( Wp.SessionItem ) –

the session item

flags ( Wp.SiFlags ) –

the current flags

user_data ( Object ) –
No description available

Flags: Run Last


Virtual Methods

activate_execute_step

activate_execute_step (WpSessionItem * self,
                       WpTransition * transition,
                       guint step)

Implements execute_step() for the transition of wp_session_item_activate

Parameters:

self
No description available
transition
No description available
step
No description available

do_activate_execute_step

def do_activate_execute_step (self, transition, step):
    #python implementation of the 'activate_execute_step' virtual method

Implements do_execute_step() for the transition of Wp.SessionItem.activate

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( int ) –
No description available

vfunc_activate_execute_step

function vfunc_activate_execute_step(self: Wp.SessionItem, transition: Wp.Transition, step: Number): {
    // javascript implementation of the 'activate_execute_step' virtual method
}

Implements vfunc_execute_step() for the transition of Wp.SessionItem.prototype.activate

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( Number ) –
No description available

activate_get_next_step

guint
activate_get_next_step (WpSessionItem * self,
                        WpTransition * transition,
                        guint step)

Implements get_next_step() for the transition of wp_session_item_activate

Parameters:

self
No description available
transition
No description available
step
No description available
Returns
No description available

do_activate_get_next_step

def do_activate_get_next_step (self, transition, step):
    #python implementation of the 'activate_get_next_step' virtual method

Implements do_get_next_step() for the transition of Wp.SessionItem.activate

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( int ) –
No description available
Returns ( int ) –
No description available

vfunc_activate_get_next_step

function vfunc_activate_get_next_step(self: Wp.SessionItem, transition: Wp.Transition, step: Number): {
    // javascript implementation of the 'activate_get_next_step' virtual method
}

Implements vfunc_get_next_step() for the transition of Wp.SessionItem.prototype.activate

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( Number ) –
No description available
Returns ( Number ) –
No description available

activate_rollback

activate_rollback (WpSessionItem * self)

Reverses any effects of the activation process; see wp_session_item_activate

Parameters:

self
No description available

do_activate_rollback

def do_activate_rollback (self):
    #python implementation of the 'activate_rollback' virtual method

Reverses any effects of the activation process; see Wp.SessionItem.activate

Parameters:

self ( Wp.SessionItem ) –
No description available

vfunc_activate_rollback

function vfunc_activate_rollback(self: Wp.SessionItem): {
    // javascript implementation of the 'activate_rollback' virtual method
}

Reverses any effects of the activation process; see Wp.SessionItem.prototype.activate

Parameters:

self ( Wp.SessionItem ) –
No description available

configure

gboolean
configure (WpSessionItem * self,
           GVariant * args)

See wp_session_item_configure

Parameters:

self
No description available
args
No description available
Returns
No description available

do_configure

def do_configure (self, args):
    #python implementation of the 'configure' virtual method

See Wp.SessionItem.configure

Parameters:

self ( Wp.SessionItem ) –
No description available
args ( GLib.Variant ) –
No description available
Returns ( bool ) –
No description available

vfunc_configure

function vfunc_configure(self: Wp.SessionItem, args: GLib.Variant): {
    // javascript implementation of the 'configure' virtual method
}

See Wp.SessionItem.prototype.configure

Parameters:

self ( Wp.SessionItem ) –
No description available
args ( GLib.Variant ) –
No description available
Returns ( Number ) –
No description available

export_execute_step

export_execute_step (WpSessionItem * self,
                     WpTransition * transition,
                     guint step)

Implements execute_step() for the transition of wp_session_item_export

Parameters:

self
No description available
transition
No description available
step
No description available

do_export_execute_step

def do_export_execute_step (self, transition, step):
    #python implementation of the 'export_execute_step' virtual method

Implements do_execute_step() for the transition of Wp.SessionItem.export

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( int ) –
No description available

vfunc_export_execute_step

function vfunc_export_execute_step(self: Wp.SessionItem, transition: Wp.Transition, step: Number): {
    // javascript implementation of the 'export_execute_step' virtual method
}

Implements vfunc_execute_step() for the transition of Wp.SessionItem.prototype.export

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( Number ) –
No description available

export_get_next_step

guint
export_get_next_step (WpSessionItem * self,
                      WpTransition * transition,
                      guint step)

Implements get_next_step() for the transition of wp_session_item_export

Parameters:

self
No description available
transition
No description available
step
No description available
Returns
No description available

do_export_get_next_step

def do_export_get_next_step (self, transition, step):
    #python implementation of the 'export_get_next_step' virtual method

Implements do_get_next_step() for the transition of Wp.SessionItem.export

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( int ) –
No description available
Returns ( int ) –
No description available

vfunc_export_get_next_step

function vfunc_export_get_next_step(self: Wp.SessionItem, transition: Wp.Transition, step: Number): {
    // javascript implementation of the 'export_get_next_step' virtual method
}

Implements vfunc_get_next_step() for the transition of Wp.SessionItem.prototype.export

Parameters:

self ( Wp.SessionItem ) –
No description available
transition ( Wp.Transition ) –
No description available
step ( Number ) –
No description available
Returns ( Number ) –
No description available

export_rollback

export_rollback (WpSessionItem * self)

Reverses any effects of the export process; see wp_session_item_export

Parameters:

self
No description available

do_export_rollback

def do_export_rollback (self):
    #python implementation of the 'export_rollback' virtual method

Reverses any effects of the export process; see Wp.SessionItem.export

Parameters:

self ( Wp.SessionItem ) –
No description available

vfunc_export_rollback

function vfunc_export_rollback(self: Wp.SessionItem): {
    // javascript implementation of the 'export_rollback' virtual method
}

Reverses any effects of the export process; see Wp.SessionItem.prototype.export

Parameters:

self ( Wp.SessionItem ) –
No description available

get_associated_proxy

gpointer
get_associated_proxy (WpSessionItem * self,
                      GType proxy_type)

See wp_session_item_get_associated_proxy

Parameters:

self
No description available
proxy_type
No description available
Returns
No description available

do_get_associated_proxy

def do_get_associated_proxy (self, proxy_type):
    #python implementation of the 'get_associated_proxy' virtual method

See Wp.SessionItem.get_associated_proxy

Parameters:

self ( Wp.SessionItem ) –
No description available
proxy_type ( GObject.Type ) –
No description available
Returns ( Wp.Proxy ) –
No description available

vfunc_get_associated_proxy

function vfunc_get_associated_proxy(self: Wp.SessionItem, proxy_type: GObject.Type): {
    // javascript implementation of the 'get_associated_proxy' virtual method
}

See Wp.SessionItem.prototype.get_associated_proxy

Parameters:

self ( Wp.SessionItem ) –
No description available
proxy_type ( GObject.Type ) –
No description available
Returns ( Wp.Proxy ) –
No description available

get_configuration

GVariant *
get_configuration (WpSessionItem * self)

See wp_session_item_get_configuration

Parameters:

self
No description available
Returns
No description available

do_get_configuration

def do_get_configuration (self):
    #python implementation of the 'get_configuration' virtual method

See Wp.SessionItem.get_configuration

Parameters:

self ( Wp.SessionItem ) –
No description available
Returns ( GLib.Variant ) –
No description available

vfunc_get_configuration

function vfunc_get_configuration(self: Wp.SessionItem): {
    // javascript implementation of the 'get_configuration' virtual method
}

See Wp.SessionItem.prototype.get_configuration

Parameters:

self ( Wp.SessionItem ) –
No description available
Returns ( GLib.Variant ) –
No description available

reset

reset (WpSessionItem * self)

See wp_session_item_reset

Parameters:

self
No description available

do_reset

def do_reset (self):
    #python implementation of the 'reset' virtual method

See Wp.SessionItem.reset

Parameters:

self ( Wp.SessionItem ) –
No description available

vfunc_reset

function vfunc_reset(self: Wp.SessionItem): {
    // javascript implementation of the 'reset' virtual method
}

See Wp.SessionItem.prototype.reset

Parameters:

self ( Wp.SessionItem ) –
No description available

Enumerations

WpSiConfigOptionFlags

Members

WP_SI_CONFIG_OPTION_WRITEABLE (1) –

the option can be set externally

WP_SI_CONFIG_OPTION_REQUIRED (2) –

the option is required to activate the item


Wp.SiConfigOptionFlags

Members

Wp.SiConfigOptionFlags.WRITEABLE (1) –

the option can be set externally

Wp.SiConfigOptionFlags.REQUIRED (2) –

the option is required to activate the item


Wp.SiConfigOptionFlags

Members

Wp.SiConfigOptionFlags.WRITEABLE (1) –

the option can be set externally

Wp.SiConfigOptionFlags.REQUIRED (2) –

the option is required to activate the item


WpSiFlags

Members

WP_SI_FLAG_ACTIVATING (1) –

set when an activation transition is in progress

WP_SI_FLAG_ACTIVE (2) –

set when an activation transition completes successfully

WP_SI_FLAG_ACTIVATE_ERROR (4) –

set when there was an error in the activation process; to clear, call wp_session_item_deactivate

WP_SI_FLAG_EXPORTING (16) –

set when an export operation is in progress

WP_SI_FLAG_EXPORTED (32) –

set when the item has exported all necessary objects to PipeWire

WP_SI_FLAG_EXPORT_ERROR (64) –

set when there was an error in the export process; to clear, call wp_session_item_unexport

WP_SI_FLAG_CONFIGURED (256) –

must be set by subclasses when all the required (%WP_SI_CONFIG_OPTION_REQUIRED) configuration options have been set

WP_SI_FLAG_CUSTOM_START (65536) –
No description available

Wp.SiFlags

Members

Wp.SiFlags.ACTIVATING (1) –

set when an activation transition is in progress

Wp.SiFlags.ACTIVE (2) –

set when an activation transition completes successfully

Wp.SiFlags.ACTIVATE_ERROR (4) –

set when there was an error in the activation process; to clear, call Wp.SessionItem.deactivate

Wp.SiFlags.EXPORTING (16) –

set when an export operation is in progress

Wp.SiFlags.EXPORTED (32) –

set when the item has exported all necessary objects to PipeWire

Wp.SiFlags.EXPORT_ERROR (64) –

set when there was an error in the export process; to clear, call Wp.SessionItem.unexport

Wp.SiFlags.CONFIGURED (256) –

must be set by subclasses when all the required (%WP_SI_CONFIG_OPTION_REQUIRED) configuration options have been set

Wp.SiFlags.CUSTOM_START (65536) –
No description available

Wp.SiFlags

Members

Wp.SiFlags.ACTIVATING (1) –

set when an activation transition is in progress

Wp.SiFlags.ACTIVE (2) –

set when an activation transition completes successfully

Wp.SiFlags.ACTIVATE_ERROR (4) –

set when there was an error in the activation process; to clear, call Wp.SessionItem.prototype.deactivate

Wp.SiFlags.EXPORTING (16) –

set when an export operation is in progress

Wp.SiFlags.EXPORTED (32) –

set when the item has exported all necessary objects to PipeWire

Wp.SiFlags.EXPORT_ERROR (64) –

set when there was an error in the export process; to clear, call Wp.SessionItem.prototype.unexport

Wp.SiFlags.CONFIGURED (256) –

must be set by subclasses when all the required (%WP_SI_CONFIG_OPTION_REQUIRED) configuration options have been set

Wp.SiFlags.CUSTOM_START (65536) –
No description available

Constants

WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS

#define WP_SI_FLAGS_MASK_OPERATION_IN_PROGRESS \
    (WP_SI_FLAG_ACTIVATING | WP_SI_FLAG_EXPORTING)

A WpSiFlags mask that can be used to test if an async operation (activate or export) is currently in progress.


Wp.SI_FLAGS_MASK_OPERATION_IN_PROGRESS

A Wp.SiFlags mask that can be used to test if an async operation (activate or export) is currently in progress.


Wp.SI_FLAGS_MASK_OPERATION_IN_PROGRESS

A Wp.SiFlags mask that can be used to test if an async operation (activate or export) is currently in progress.


WP_TYPE_SESSION_ITEM

#define WP_TYPE_SESSION_ITEM (wp_session_item_get_type ())

The WpSessionItem GType


The results of the search are