Click.Hook

g Click.Hook Click.Hook GObject.Object GObject.Object GObject.Object->Click.Hook

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

open (db, name)

class

open_all (db, hook_name)

get_app_id (package, version, app_name)

get_field (key)

get_fields ()

get_hook_name ()

get_is_single_version ()

get_is_user_level ()

get_pattern (package, version, app_name, user_name)

get_run_commands_user (user_name)

get_short_app_id (package, app_name)

install (user_name)

install_package (package, version, app_name, relative_path, user_name)

remove (user_name)

remove_package (package, version, app_name, user_name)

run_commands (user_name)

sync (user_name)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

db

Click.DB

w/co

db

is-single-version

bool

r

is-single-version

is-user-level

bool

r

is-user-level

name

str

r/w/co

name

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Click.Hook(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Click.HookClass

classmethod open(db, name)
Parameters:
Raises:

GLib.Error

Return type:

Click.Hook

classmethod open_all(db, hook_name)
Parameters:
Raises:

GLib.Error

Return type:

[Click.Hook]

get_app_id(package, version, app_name)
Parameters:
  • package (str) –

  • version (str) –

  • app_name (str) –

Raises:

GLib.Error

Return type:

str

get_field(key)
Parameters:

key (str) –

Raises:

GLib.Error

Return type:

str

get_fields()
Return type:

[str]

get_hook_name()
Return type:

str

get_is_single_version()
Return type:

bool

get_is_user_level()
Return type:

bool

get_pattern(package, version, app_name, user_name)
Parameters:
  • package (str) –

  • version (str) –

  • app_name (str) –

  • user_name (str or None) –

Raises:

GLib.Error

Return type:

str

get_run_commands_user(user_name)
Parameters:

user_name (str or None) –

Raises:

GLib.Error

Return type:

str

get_short_app_id(package, app_name)
Parameters:
  • package (str) –

  • app_name (str) –

Raises:

GLib.Error

Return type:

str

install(user_name)
Parameters:

user_name (str or None) –

Raises:

GLib.Error

install_package(package, version, app_name, relative_path, user_name)
Parameters:
  • package (str) –

  • version (str) –

  • app_name (str) –

  • relative_path (str) –

  • user_name (str or None) –

Raises:

GLib.Error

remove(user_name)
Parameters:

user_name (str or None) –

Raises:

GLib.Error

remove_package(package, version, app_name, user_name)
Parameters:
  • package (str) –

  • version (str) –

  • app_name (str) –

  • user_name (str or None) –

Raises:

GLib.Error

run_commands(user_name)
Parameters:

user_name (str or None) –

Raises:

GLib.Error

sync(user_name)
Parameters:

user_name (str or None) –

Raises:

GLib.Error

Property Details

Click.Hook.props.db
Name:

db

Type:

Click.DB

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

db

Click.Hook.props.is_single_version
Name:

is-single-version

Type:

bool

Default Value:

False

Flags:

READABLE

is-single-version

Click.Hook.props.is_user_level
Name:

is-user-level

Type:

bool

Default Value:

False

Flags:

READABLE

is-user-level

Click.Hook.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

name