MinerManager
Object Hierarchy:
Tracker.MinerManager
Tracker.MinerManager
Tracker.MinerManager
GLib.Object
GLib.Object
GLib.Object->Tracker.MinerManager
GLib.Initable
GLib.Initable
GLib.Initable->Tracker.MinerManager
Description:
[ CCode ( type_id = "tracker_miner_manager_get_type ()" ) ]public class MinerManager : Object , Initable
Object to query and control miners.
Content:
Properties:
Static methods:
Creation methods:
Methods:
public SList <string >? get_available ()
Returns a list of references for all available miners.
public unowned string get_description (string miner)
Returns the description for the given miner
.
public unowned string get_display_name (string miner)
Returns a translated display name for miner
.
public SList <string >? get_running ()
Returns a list of references for all active miners.
public bool get_status (string miner, out string status, out double progress, out int remaining_time)
Returns the current status, progress and remaining time for
miner
.
public bool index_file (File file, Cancellable ? cancellable = null ) throws Error
Tells the filesystem miner to start indexing the file
.
public async bool index_file_async (File file, Cancellable ? cancellable) throws Error
Tells the filesystem miner to start indexing the file
.
public bool index_file_for_process (File file, Cancellable ? cancellable = null ) throws Error
This function operates exactly the same way as
index_file with the exception that if the calling process dies, the
indexing is cancelled.
public async bool index_file_for_process_async (File file, Cancellable ? cancellable) throws Error
This function operates exactly the same way as
index_file with the exception that if the calling process dies, the
indexing is cancelled.
public bool is_active (string miner)
Returns the miner's current activity.
public bool is_paused (string miner, out string [] applications, out string [] reasons)
This function either returns false
if the miner is not paused, or returns true and fills in applications
and reasons
with the pause reasons and the applications that asked for it.
public bool pause (string miner, string reason, out uint32 cookie)
Asks miner
to pause.
public bool pause_for_process (string miner, string reason, out uint32 cookie)
This function operates exactly the same way as
pause with the exception that if the calling process dies, the pause is
resumed.
public bool reindex_by_mimetype (string [] mimetypes) throws Error
Tells the filesystem miner to reindex any file with a mimetype in the
mimetypes
list.
public bool resume (string miner, uint32 cookie)
Tells miner
to resume activity.
Signals:
public virtual signal void miner_activated (string miner_name)
The miner_activated signal will be emitted
whenever a miner (referenced by miner
) is activated (technically, this means the miner has appeared in the session bus).
public virtual signal void miner_deactivated (string miner_name)
The miner_deactivated signal will be
emitted whenever a miner (referenced by miner
) is deactivated (technically, this means the miner has disappeared from the
session bus).
public virtual signal void miner_paused (string miner_name)
The miner_paused signal will be emitted
whenever a miner (referenced by miner
) is paused.
public virtual signal void miner_progress (string miner_name, string status, double progress, int remaining_time)
The miner_progress signal is meant to
report status/progress changes in any tracked miner.
public virtual signal void miner_resumed (string miner_name)
The miner_resumed signal will be emitted
whenever a miner (referenced by miner
) is resumed.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.Initable