The Source class provides access to the GLib event source mechanism.
More...
#include <mediascanner/glibutils.h>
|
static bool | Remove (unsigned id) |
| Removes an event source handler. More...
|
|
The Source class provides access to the GLib event source mechanism.
The signature of a single-call idle source.
This function is called excactly once. After returning it is automatically removed from the list of event sources and will not be called again.
The signature of a regular idle source.
- Returns
- If this function returns
false
it is automatically removed from the list of event sources and will not be called again.
static gboolean mediascanner::Source::on_one_call_function |
( |
gpointer |
data) | |
|
|
inlinestaticprotected |
static gboolean mediascanner::Source::on_source_function |
( |
gpointer |
data) | |
|
|
inlinestaticprotected |
static bool mediascanner::Source::Remove |
( |
unsigned |
id) | |
|
|
inlinestatic |
Removes an event source handler.
- Parameters
-
id | The source handler's identifier. |
- Returns
True
if the identifier was valid and the handler got removed.