PackageKitGlib.ClientHelper

g GObject.Object GObject.Object PackageKitGlib.ClientHelper PackageKitGlib.ClientHelper GObject.Object->PackageKitGlib.ClientHelper

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

is_active ()

start (socket_filename, argv, envp)

start_with_socket (socket, argv, envp)

stop ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

priv

PackageKitGlib.ClientHelperPrivate

r

Class Details

class PackageKitGlib.ClientHelper(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

PackageKitGlib.ClientHelperClass

classmethod new()
Returns:

a new PackageKitGlib.ClientHelper object.

Return type:

PackageKitGlib.ClientHelper

New in version 0.6.10.

is_active()
Returns:

True if there is an accepted connection, False otherwise.

Return type:

bool

New in version 1.1.13.

start(socket_filename, argv, envp)
Parameters:
  • socket_filename (str) – a socket filename that does not already exist

  • argv (str) – the executable, along with any arguments

  • envp (str) – the environment

Raises:

GLib.Error

Returns:

True for success

Return type:

bool

Starts the helper process, by running the helper process and setting up the socket for use.

New in version 0.6.10.

start_with_socket(socket, argv, envp)
Parameters:
  • socket (Gio.Socket) – the (bound and listening) Gio.Socket instance to use

  • argv (str) – the executable, along with any arguments

  • envp (str) – the environment

Raises:

GLib.Error

Returns:

True for success

Return type:

bool

Starts the helper process, by running the helper process and setting up the socket for use.

New in version 1.1.13.

stop()
Raises:

GLib.Error

Returns:

True for success

Return type:

bool

Stops the helper process, by killing the helper process and deleting the socket.

New in version 0.6.10.