Top |
#define | AGS_VERSION |
#define | AGS_BUILD_ID |
#define | AGS_DEFAULT_DIRECTORY |
#define | AGS_DEFAULT_CONFIG |
enum | AgsApplicationContextFlags |
GObject ╰── AgsApplicationContext ├── AgsAudioApplicationContext ├── AgsServerApplicationContext ├── AgsThreadApplicationContext ╰── AgsXorgApplicationContext
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.
void
ags_application_context_load_config (AgsApplicationContext *application_context
);
Signal to load and parse configuration.
Since 0.7.0
void ags_application_read (AgsFile *file
,xmlNode *node
,GObject **gobject
);
xmlNode * ags_application_write (AgsFile *file
,xmlNode *parent
,GObject *gobject
);
void ags_application_context_add_sibling (AgsApplicationContext *application_context
,AgsApplicationContext *sibling
);
void ags_application_context_remove_sibling (AgsApplicationContext *application_context
,AgsApplicationContext *sibling
);
AgsApplicationContext *
ags_application_context_find_default (GList *application_context
);
GList *
ags_application_context_find_main_loop
(GList *application_context
);
void
ags_application_context_quit (AgsApplicationContext *application_context
);
Calls exit()
Since: 0.7.0
AgsApplicationContext * ags_application_context_get_instance ();
Get your application context instance.
Since: 0.7.0
AgsApplicationContext * ags_application_context_new (GObject *main_loop
,AgsConfig *config
);
“config”
property“config” GObject *
The config what application context is running in.
Flags: Read / Write
Since: 0.5.0
“file”
property“file” GObject *
The file what application context does persist.
Flags: Read / Write
Since: 0.5.0
“main-loop”
property“main-loop” GObject *
The main-loop what application context is running in.
Flags: Read / Write
Since: 0.5.0
“load-config”
signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
Flags: Run Last
“register-types”
signalvoid user_function (AgsApplicationContext *application_context, gpointer user_data)
Flags: Run Last