Top | ![]() |
![]() |
![]() |
![]() |
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 |
#define | AGS_TYPE_APPLICATION_CONTEXT_FLAGS |
struct | AgsApplicationContext |
struct | AgsApplicationContextClass |
GFlags ╰── AgsApplicationContextFlags 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.
#define AGS_APPLICATION_CONTEXT_GET_OBJ_MUTEX(obj) (&(((AgsApplicationContext *) obj)->obj_mutex))
gboolean ags_application_context_test_flags (AgsApplicationContext *application_context
,guint flags
);
Test flags
to be set on application_context
.
Since: 3.0.0
void ags_application_context_set_flags (AgsApplicationContext *application_context
,guint flags
);
Enable a feature of AgsApplicationContext.
Since: 3.0.0
void ags_application_context_unset_flags (AgsApplicationContext *application_context
,guint flags
);
Disable a feature of AgsApplicationContext.
Since: 3.0.0
void
ags_application_context_load_config (AgsApplicationContext *application_context
);
Signal to load and parse configuration.
Since: 3.0.0
void
ags_application_context_prepare (AgsApplicationContext *application_context
);
Prepare application_context
.
Since: 3.0.0
void
ags_application_context_setup (AgsApplicationContext *application_context
);
Setup application_context
.
Since: 3.0.0
void
ags_application_context_register_types
(AgsApplicationContext *application_context
);
Notification to register your types.
Since: 3.0.0
void
ags_application_context_quit (AgsApplicationContext *application_context
);
Calls exit()
Since: 3.0.0
AgsApplicationContext * ags_application_context_get_instance ();
Get your application context instance.
Since: 3.0.0
AgsApplicationContext * ags_application_context_new (GObject *main_loop
,AgsConfig *config
);
Create a new instance of AgsApplicationContext
Since: 3.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))
#define AGS_IS_APPLICATION_CONTEXT_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_APPLICATION_CONTEXT))
Enum values to control the behavior or indicate internal state of AgsApplicationContext by enable/disable as flags.
#define AGS_TYPE_APPLICATION_CONTEXT (ags_application_context_get_type())
#define AGS_TYPE_APPLICATION_CONTEXT_FLAGS (ags_application_context_flags_get_type())
struct AgsApplicationContextClass { GObjectClass gobject; void (*load_config)(AgsApplicationContext *application_context); void (*prepare)(AgsApplicationContext *application_context); void (*setup)(AgsApplicationContext *application_context); void (*register_types)(AgsApplicationContext *application_context); void (*read)(GObject *file, xmlNode *node, GObject **gobject); xmlNode* (*write)(GObject *file, xmlNode *parent, GObject *gobject); void (*quit)(AgsApplicationContext *application_context); };
“config”
property“config” GObject *
The assigned config.
Owner: AgsApplicationContext
Flags: Read / Write
Since: 3.0.0
“file”
property“file” GObject *
The assigned file.
Owner: AgsApplicationContext
Flags: Read / Write
Since: 3.0.0
“main-loop”
property“main-loop” GObject *
The assigned main-loop.
Owner: AgsApplicationContext
Flags: Read / Write
Since: 3.0.0
“task-launcher”
property“task-launcher” GObject *
The assigned task launcher.
Owner: AgsApplicationContext
Flags: Read / Write
Since: 3.0.0
“load-config”
signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
The ::load-config notifies to load configuration.
Flags: Run Last
Since: 3.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: 3.0.0
“quit”
signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
The ::quit notifies to load configuration.
Flags: Run Last
Since: 3.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: 3.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: 3.0.0