| Top |
| pthread_mutex_t * | ags_application_context_get_class_mutex () |
| gboolean | ags_application_context_test_flags () |
| void | ags_application_context_set_flags () |
| void | ags_application_context_unset_flags () |
| void | ags_application_context_load_config () |
| void | ags_application_context_prepare () |
| void | ags_application_context_setup () |
| void | ags_application_context_register_types () |
| void | ags_application_context_quit () |
| AgsApplicationContext * | ags_application_context_get_instance () |
| AgsApplicationContext * | ags_application_context_new () |
| #define | AGS_APPLICATION_CONTEXT() |
| #define | AGS_APPLICATION_CONTEXT_CLASS() |
| #define | AGS_APPLICATION_CONTEXT_GET_CLASS() |
| #define | AGS_IS_APPLICATION_CONTEXT() |
| GType | ags_application_context_get_type () |
| void | load-config | Run Last |
| void | prepare | Run Last |
| void | quit | Run Last |
| void | register-types | Run Last |
| void | setup | Run Last |
| #define | AGS_VERSION |
| #define | AGS_BUILD_ID |
| #define | AGS_DEFAULT_DIRECTORY |
| #define | AGS_DEFAULT_CONFIG |
| enum | AgsApplicationContextFlags |
| #define | AGS_TYPE_APPLICATION_CONTEXT |
| struct | AgsApplicationContext |
| struct | AgsApplicationContextClass |
GObject ╰── AgsApplicationContext ├── AgsServerApplicationContext ╰── AgsThreadApplicationContext
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.
pthread_mutex_t *
ags_application_context_get_class_mutex
();
Use this function's returned mutex to access mutex fields.
Since: 2.0.0
gboolean ags_application_context_test_flags (AgsApplicationContext *application_context,guint flags);
Test flags
to be set on application_context
.
Since: 2.0.0
void ags_application_context_set_flags (AgsApplicationContext *application_context,guint flags);
Enable a feature of AgsApplicationContext.
Since: 2.0.0
void ags_application_context_unset_flags (AgsApplicationContext *application_context,guint flags);
Disable a feature of AgsApplicationContext.
Since: 2.0.0
void
ags_application_context_load_config (AgsApplicationContext *application_context);
Signal to load and parse configuration.
Since: 2.0.0
void
ags_application_context_prepare (AgsApplicationContext *application_context);
Prepare application_context
.
Since: 2.0.0
void
ags_application_context_setup (AgsApplicationContext *application_context);
Setup application_context
.
Since: 2.0.0
void
ags_application_context_register_types
(AgsApplicationContext *application_context);
Notification to register your types.
Since: 2.0.0
void
ags_application_context_quit (AgsApplicationContext *application_context);
Calls exit()
Since: 2.0.0
AgsApplicationContext * ags_application_context_get_instance ();
Get your application context instance.
Since: 2.0.0
AgsApplicationContext * ags_application_context_new (GObject *main_loop,AgsConfig *config);
Create a new instance of AgsApplicationContext
Since: 2.0.0
#define AGS_APPLICATION_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_APPLICATION_CONTEXT, AgsApplicationContext))
#define AGS_APPLICATION_CONTEXT_CLASS(class) (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_APPLICATION_CONTEXT, AgsApplicationContextClass))
#define AGS_APPLICATION_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_APPLICATION_CONTEXT, AgsApplicationContextClass))
#define AGS_IS_APPLICATION_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_APPLICATION_CONTEXT))
Enum values to control the behavior or indicate internal state of AgsApplicationContext by enable/disable as flags.
|
indicates the default context, used if siblings available |
||
|
enable to register types |
||
|
add to AgsRegistry |
||
|
call connect of AgsConnectable descending objects |
||
|
indicates the types have been registered |
||
|
indicates the application context was added to AgsRegistry |
||
|
indicates the application context was connected by calling |
#define AGS_TYPE_APPLICATION_CONTEXT (ags_application_context_get_type())
struct AgsApplicationContextClass {
GObjectClass object;
void (*load_config)(AgsApplicationContext *application_context);
void (*prepare)(AgsApplicationContext *application_context);
void (*setup)(AgsApplicationContext *application_context);
void (*register_types)(AgsApplicationContext *application_context);
void (*read)(AgsFile *file, xmlNode *node, GObject **gobject);
xmlNode* (*write)(AgsFile *file, xmlNode *parent, GObject *gobject);
void (*quit)(AgsApplicationContext *application_context);
};
“main-loop” property“main-loop” GObject *
The assigned main-loop.
Flags: Read / Write
Since: 2.0.0
“task-thread” property“task-thread” GObject *
The assigned task thread.
Flags: Read / Write
Since: 2.0.0
“load-config” signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
The ::load-config notifies to load configuration.
Flags: Run Last
Since: 2.0.0
“prepare” signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
The ::prepare signal should be implemented to prepare your application context.
Flags: Run Last
Since: 2.0.0
“quit” signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
The ::quit notifies to load configuration.
Flags: Run Last
Since: 2.0.0
“register-types” signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
The ::register-types signal should be implemented to load your types.
Flags: Run Last
Since: 2.0.0
“setup” signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
The ::setup signal should be implemented to setup your application context.
Flags: Run Last
Since: 2.0.0