Ags.ApplicationContext

g Ags.ApplicationContext Ags.ApplicationContext Ags.Connectable Ags.Connectable Ags.Connectable->Ags.ApplicationContext GObject.GInterface GObject.GInterface GObject.GInterface->Ags.Connectable GObject.Object GObject.Object GObject.Object->Ags.ApplicationContext

Subclasses:

Ags.ServerApplicationContext, Ags.ThreadApplicationContext

Methods

Inherited:

GObject.Object (37), Ags.Connectable (13)

Structs:

GObject.ObjectClass (5)

class

get_instance ()

class

new (main_loop, config)

load_config ()

prepare ()

quit ()

register_types ()

set_flags (flags)

setup ()

test_flags (flags)

unset_flags (flags)

Virtual Methods

Inherited:

GObject.Object (7), Ags.Connectable (13)

do_load_config ()

do_prepare ()

do_quit ()

do_register_types ()

do_setup ()

Properties

Name

Type

Flags

Short Description

config

GObject.Object

r/w

The config what application context is running in

file

GObject.Object

r/w

The file what application context does persist

main-loop

GObject.Object

r/w

The main loop of application context running

task-launcher

GObject.Object

r/w

The task launcher

Signals

Inherited:

GObject.Object (1)

Name

Short Description

load-config

The ::load-config notifies to load configuration.

prepare

The ::prepare signal should be implemented to prepare your application context.

quit

The ::quit notifies to load configuration.

register-types

The ::register-types signal should be implemented to load your types.

setup

The ::setup signal should be implemented to setup your application context.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

argc

int

r

argv

str

r

build_id

str

r

config

Ags.Config

r

connectable_flags

int

r

domain

str

r

file

GObject.Object

r

flags

int

r

gobject

GObject.Object

r

history

GObject.Object

r

is_ready

int

r

log

GObject.Object

r

main_loop

GObject.Object

r

obj_mutex

GLib.RecMutex

r

task_launcher

GObject.Object

r

uuid

Ags.UUID

r

version

str

r

Class Details

class Ags.ApplicationContext(**kwargs)
Bases:

GObject.Object, Ags.Connectable

Abstract:

No

Structure:

Ags.ApplicationContextClass

classmethod get_instance()
Returns:

the Ags.ApplicationContext instance

Return type:

Ags.ApplicationContext

Get your application context instance.

New in version 3.0.0.

classmethod new(main_loop, config)
Parameters:
Returns:

the Ags.ApplicationContext instance

Return type:

Ags.ApplicationContext

Create a new instance of Ags.ApplicationContext

New in version 3.0.0.

load_config()

Signal to load and parse configuration.

New in version 3.0.0.

prepare()

Prepare self.

New in version 3.0.0.

quit()

Calls exit()

New in version 3.0.0.

register_types()

Notification to register your types.

New in version 3.0.0.

set_flags(flags)
Parameters:

flags (Ags.ApplicationContextFlags) – see enum Ags.ApplicationContextFlags

Enable a feature of Ags.ApplicationContext.

New in version 3.0.0.

setup()

Setup self.

New in version 3.0.0.

test_flags(flags)
Parameters:

flags (Ags.ApplicationContextFlags) – the flags

Returns:

True if flags are set, else False

Return type:

bool

Test flags to be set on self.

New in version 3.0.0.

unset_flags(flags)
Parameters:

flags (Ags.ApplicationContextFlags) – see enum Ags.ApplicationContextFlags

Disable a feature of Ags.ApplicationContext.

New in version 3.0.0.

do_load_config() virtual

Signal to load and parse configuration.

New in version 3.0.0.

do_prepare() virtual

Prepare application_context.

New in version 3.0.0.

do_quit() virtual

Calls exit()

New in version 3.0.0.

do_register_types() virtual

Notification to register your types.

New in version 3.0.0.

do_setup() virtual

Setup application_context.

New in version 3.0.0.

Signal Details

Ags.ApplicationContext.signals.load_config(application_context)
Signal Name:

load-config

Flags:

RUN_LAST

Parameters:

application_context (Ags.ApplicationContext) – The object which received the signal

The ::load-config notifies to load configuration.

New in version 3.0.0.

Ags.ApplicationContext.signals.prepare(application_context)
Signal Name:

prepare

Flags:

RUN_LAST

Parameters:

application_context (Ags.ApplicationContext) – The object which received the signal

The ::prepare signal should be implemented to prepare your application context.

New in version 3.0.0.

Ags.ApplicationContext.signals.quit(application_context)
Signal Name:

quit

Flags:

RUN_LAST

Parameters:

application_context (Ags.ApplicationContext) – The object which received the signal

The ::quit notifies to load configuration.

New in version 3.0.0.

Ags.ApplicationContext.signals.register_types(application_context)
Signal Name:

register-types

Flags:

RUN_LAST

Parameters:

application_context (Ags.ApplicationContext) – The object which received the signal

The ::register-types signal should be implemented to load your types.

New in version 3.0.0.

Ags.ApplicationContext.signals.setup(application_context)
Signal Name:

setup

Flags:

RUN_LAST

Parameters:

application_context (Ags.ApplicationContext) – The object which received the signal

The ::setup signal should be implemented to setup your application context.

New in version 3.0.0.

Property Details

Ags.ApplicationContext.props.config
Name:

config

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned config.

New in version 3.0.0.

Ags.ApplicationContext.props.file
Name:

file

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned file.

New in version 3.0.0.

Ags.ApplicationContext.props.main_loop
Name:

main-loop

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned main-loop.

New in version 3.0.0.

Ags.ApplicationContext.props.task_launcher
Name:

task-launcher

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE

The assigned task launcher.

New in version 3.0.0.