GApplicationClass

Virtual function table for #GApplication.

Members

Variables

activate
void function(GApplication* application) activate;

invoked on the primary instance when an activation occurs

addPlatformData
void function(GApplication* application, GVariantBuilder* builder) addPlatformData;

invoked (locally) to add 'platform data' to be sent to the primary instance when activating, opening or invoking actions

afterEmit
void function(GApplication* application, VariantC* platformData) afterEmit;

invoked on the primary instance after 'activate', 'open', 'command-line' or any action invocation, gets the 'platform data' from the calling instance

beforeEmit
void function(GApplication* application, VariantC* platformData) beforeEmit;

invoked on the primary instance before 'activate', 'open', 'command-line' or any action invocation, gets the 'platform data' from the calling instance

commandLine
int function(GApplication* application, GApplicationCommandLine* commandLine) commandLine;

invoked on the primary instance when a command-line is not handled locally

dbusRegister
bool function(GApplication* application, GDBusConnection* connection, const(char)* objectPath, GError** _err) dbusRegister;

invoked locally during registration, if the application is using its D-Bus backend. You can use this to export extra objects on the bus, that need to exist before the application tries to own the bus name. The function is passed the #GDBusConnection to to session bus, and the object path that #GApplication will use to export its D-Bus API. If this function returns true, registration will proceed; otherwise registration will abort. Since: 2.34

dbusUnregister
void function(GApplication* application, GDBusConnection* connection, const(char)* objectPath) dbusUnregister;

invoked locally during unregistration, if the application is using its D-Bus backend. Use this to undo anything done by the @dbus_register vfunc. Since: 2.34

handleLocalOptions
int function(GApplication* application, GVariantDict* options) handleLocalOptions;

invoked locally after the parsing of the commandline options has occurred. Since: 2.40

localCommandLine
bool function(GApplication* application, char*** arguments, int* exitStatus) localCommandLine;

invoked (locally). The virtual function has the chance to inspect (and possibly replace) command line arguments. See gio.application.Application.run for more information. Also see the #GApplication::handle-local-options signal, which is a simpler alternative to handling some commandline options locally

nameLost
bool function(GApplication* application) nameLost;

invoked when another instance is taking over the name. Since: 2.60

open
void function(GApplication* application, GFile** files, int nFiles, const(char)* hint) open;

invoked on the primary instance when there are files to open

padding
void*[7] padding;
parentClass
GObjectClass parentClass;
quitMainloop
void function(GApplication* application) quitMainloop;

Used to be invoked on the primary instance when the use count of the application drops to zero (and after any inactivity timeout, if requested). Not used anymore since 2.32

runMainloop
void function(GApplication* application) runMainloop;

Used to be invoked on the primary instance from gio.application.Application.run if the use-count is non-zero. Since 2.32, GApplication is iterating the main context directly and is not using @run_mainloop anymore

shutdown
void function(GApplication* application) shutdown;

invoked only on the registered primary instance immediately after the main loop terminates

startup
void function(GApplication* application) startup;

invoked on the primary instance immediately after registration