AgsApplicationContext

AgsApplicationContext — The application context

Functions

Properties

GObject * config Read / Write
GObject * file Read / Write
GObject * main-loop Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsApplicationContext
        ├── AgsAudioApplicationContext
        ├── AgsServerApplicationContext
        ├── AgsThreadApplicationContext
        ╰── AgsXorgApplicationContext

Implemented Interfaces

AgsApplicationContext implements AgsConnectable.

Includes

#include <ags/object/ags_application_context.h>

Description

AgsApplicationContext is a context provider is your and libraries entry point to the application. You might subtype it to implement your own contices. Thus you should consider to create a provider interface for reusability.

Functions

ags_application_context_load_config ()

void
ags_application_context_load_config (AgsApplicationContext *application_context);

Signal to load and parse configuration.

Since 0.7.0

Parameters

application_context

the AgsApplicationContext

 

ags_application_read ()

void
ags_application_read (AgsFile *file,
                      xmlNode *node,
                      GObject **gobject);


ags_application_write ()

xmlNode *
ags_application_write (AgsFile *file,
                       xmlNode *parent,
                       GObject *gobject);


ags_application_context_add_sibling ()

void
ags_application_context_add_sibling (AgsApplicationContext *application_context,
                                     AgsApplicationContext *sibling);


ags_application_context_remove_sibling ()

void
ags_application_context_remove_sibling
                               (AgsApplicationContext *application_context,
                                AgsApplicationContext *sibling);


ags_application_context_find_default ()

AgsApplicationContext *
ags_application_context_find_default (GList *application_context);


ags_application_context_find_main_loop ()

GList *
ags_application_context_find_main_loop
                               (GList *application_context);


ags_application_context_quit ()

void
ags_application_context_quit (AgsApplicationContext *application_context);

Calls exit()

Parameters

application_context

the context to quit

 

Since: 0.7.0


ags_application_context_get_instance ()

AgsApplicationContext *
ags_application_context_get_instance ();

Get your application context instance.

Returns

the AgsApplicationContext instance

Since: 0.7.0


ags_application_context_new ()

AgsApplicationContext *
ags_application_context_new (GObject *main_loop,
                             AgsConfig *config);

Types and Values

AGS_VERSION

#define AGS_VERSION "0.7.0\0"


AGS_BUILD_ID

#define AGS_BUILD_ID "CEST 13-10-2015 04:33\0"


AGS_DEFAULT_DIRECTORY

#define             AGS_DEFAULT_DIRECTORY


AGS_DEFAULT_CONFIG

#define             AGS_DEFAULT_CONFIG


enum AgsApplicationContextFlags

Members

AGS_APPLICATION_CONTEXT_DEFAULT

   

AGS_APPLICATION_CONTEXT_REGISTER_TYPES

   

AGS_APPLICATION_CONTEXT_ADD_TO_REGISTRY

   

AGS_APPLICATION_CONTEXT_CONNECT

   

AGS_APPLICATION_CONTEXT_TYPES_REGISTERED

   

AGS_APPLICATION_CONTEXT_READY

   

AGS_APPLICATION_CONTEXT_CONNECTED

   

Property Details

The “config” property

  “config”                   GObject *

The config what application context is running in.

Flags: Read / Write

Since: 0.5.0


The “file” property

  “file”                     GObject *

The file what application context does persist.

Flags: Read / Write

Since: 0.5.0


The “main-loop” property

  “main-loop”                GObject *

The main-loop what application context is running in.

Flags: Read / Write

Since: 0.5.0

Signal Details

The “load-config” signal

void
user_function (AgsApplicationContext *application_context,
               gpointer               user_data)

Flags: Run Last


The “register-types” signal

void
user_function (AgsApplicationContext *application_context,
               gpointer               user_data)

Flags: Run Last