Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Derived Interfaces | Known Implementations | Signals |
MidgardExecutable; void midgard_executable_execute (MidgardExecutable *self
,GError **error
); void midgard_executable_execute_async (MidgardExecutable *self
,GError **error
); void midgard_executable_execution_start (MidgardExecutable *self
); void midgard_executable_execution_end (MidgardExecutable *self
);
MidgardExecutable is implemented by MidgardQueryExecutor, MidgardQuerySelect, MidgardSqlContentManagerJob, MidgardSqlContentManagerJobCreate, MidgardSqlContentManagerJobDelete, MidgardSqlContentManagerJobLoad, MidgardSqlContentManagerJobPurge, MidgardSqlContentManagerJobUpdate and MidgardSqlQuerySelectData.
void midgard_executable_execute (MidgardExecutable *self
,GError **error
);
Execute command or perform operation. Implementation shall check if given instance is valid. If it's not, shall invoke validation method, if given instance is MidgardValidable derived.
Before execution, implementation should emit 'execution-start' signal, and 'execution-end' when execution operation is completed.
|
MidgardExecutable instance
error (error-domains MIDGARD_EXECUTION_ERROR): location to store error |
Since 10.05.5
void midgard_executable_execute_async (MidgardExecutable *self
,GError **error
);
Execute asynchronous command or perform operation. Implementation shall check if given instance is valid. If it's not, shall invoke validation method, if given instance is MidgardValidable derived.
Implementation shall not emit any signal inside asynchronous method. Instead, signal emission should be added to GLib's default main loop(e.g. g_idle_add).
|
MidgardExecutable instance
error (error-domains MIDGARD_EXECUTION_ERROR): location to store error |
Since 12.09
void midgard_executable_execution_start (MidgardExecutable *self
);
Emits 'execution-start' signal on given executable.
|
MidgardExecutable instance |
Since 12.09
void midgard_executable_execution_end (MidgardExecutable *self
);
Emits 'execution-end' signal on given executable.
|
MidgardExecutable instance |
Since 12.09
"execution-end"
signalvoid user_function (MidgardExecutable *executor,
gpointer user_data) : No Hooks
Gets emitted after executor
's operation is executed
|
the MidgardExecutable |
|
user data set when the signal handler was connected. |
"execution-start"
signalvoid user_function (MidgardExecutable *executor,
gpointer user_data) : No Hooks
Gets emitted before executor
's operation is executed
|
the MidgardExecutable |
|
user data set when the signal handler was connected. |