Top | ![]() |
![]() |
![]() |
![]() |
TrackerMinerOnlineTrackerMinerOnline — Abstract base class for miners connecting to online resources |
TrackerMinerOnline is an abstract base class for miners retrieving data from online resources. It's a very thin layer above TrackerMiner that additionally handles network connection status.
TrackerMinerOnline implementations can implement the
connected
vmethod in order to tell the miner whether
a connection is valid to retrieve data or not. The miner data extraction
still must be dictated through the TrackerMiner vmethods.
TrackerNetworkType
tracker_miner_online_get_network_type (TrackerMinerOnline *miner
);
struct TrackerMinerOnlineClass { TrackerMinerClass parent_class; /* vmethods */ gboolean (* connected) (TrackerMinerOnline *miner, TrackerNetworkType network); void (* disconnected) (TrackerMinerOnline *miner); /* <Private> */ gpointer padding[10]; };
TrackerMinerClass |
parent object class |
|
called when there is a network connection, or a new default route, returning TRUE starts/resumes indexing. |
||
called when there is no network connection. |
||
Reserved for future API improvements. |
Since: 0.18.
“network-type”
property“network-type” TrackerNetworkType
Network type for the current connection.
Flags: Read
Default value: TRACKER_NETWORK_TYPE_NONE
“connected”
signalgboolean user_function (TrackerMinerOnline *trackermineronline, TrackerNetworkType arg1, gpointer user_data)
Flags: Run Last
“disconnected”
signalvoid user_function (TrackerMinerOnline *trackermineronline, gpointer user_data)
Flags: Run Last