Tracker Common Library Reference Manual | ||||
---|---|---|---|---|
#include <libtracker-common/tracker-hal.h> TrackerHal; TrackerHal* tracker_hal_new (void); gboolean tracker_hal_get_battery_exists (TrackerHal *hal); gboolean tracker_hal_get_battery_in_use (TrackerHal *hal); GSList* tracker_hal_get_mounted_directory_roots (TrackerHal *hal); GSList* tracker_hal_get_removable_device_roots (TrackerHal *hal);
"battery-exists" gboolean : Read "battery-in-use" gboolean : Read "battery-percentage" gdouble : Read
TrackerHal* tracker_hal_new (void);
Creates a new instance of TrackerHal.
Returns : | The newly created TrackerHal. |
gboolean tracker_hal_get_battery_exists (TrackerHal *hal);
Returns whether the computer has batteries.
hal : |
A TrackerHal |
Returns : | TRUE if the computer has batteries available. |
gboolean tracker_hal_get_battery_in_use (TrackerHal *hal);
Returns whether the computer battery (if any) is currently in use.
hal : |
A TrackerHal. |
Returns : | TRUE if the computer is running on battery power. |
GSList* tracker_hal_get_mounted_directory_roots (TrackerHal *hal);
Returns a GSlist of strings containing the root directories for mounted devices.
Each element must be freed using g_free()
and the list itself using g_slist_free()
.
hal : |
A TrackerHal |
Returns : | The list of root directories. |
GSList* tracker_hal_get_removable_device_roots (TrackerHal *hal);
Returns a GSList of strings containing the root directories for removable devices.
Each element must be freed using g_free()
and the list itself through g_slist_free()
.
hal : |
A TrackerHal |
Returns : | The list of root directories. |
"battery-exists"
property"battery-exists" gboolean : Read
There is a battery on this machine.
Default value: FALSE
"battery-in-use"
property"battery-in-use" gboolean : Read
Whether the battery is being used.
Default value: FALSE
"mount-point-added"
signalvoid user_function (TrackerHal *trackerhal, gchar *arg1, gpointer user_data) : Run Last
trackerhal : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
"mount-point-removed"
signalvoid user_function (TrackerHal *trackerhal, gchar *arg1, gpointer user_data) : Run Last
trackerhal : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |