MockBackend
Object Hierarchy:
Geocode.MockBackend
Geocode.MockBackend
Geocode.MockBackend
GLib.Object
GLib.Object
GLib.Object->Geocode.MockBackend
Geocode.Backend
Geocode.Backend
Geocode.Backend->Geocode.MockBackend
Description:
[
CCode ( type_id =
"geocode_mock_backend_get_type ()" ) ]
[
Version ( since =
"3.23.1" ) ]
public class MockBackend :
Object ,
Backend
All the fields in the MockBackend structure are private and should never be accessed directly.
Content:
Creation methods:
Methods:
public void add_forward_result (HashTable <string ,Value ?> @params, List <Place >? results, Error ? error)
Add a query and corresponding result (or error) to the mock backend,
meaning that if it receives a forward search for params
through
forward_search (or its asynchronous variants), the mock
backend will return the given results
or error
to the caller.
public void add_reverse_result (HashTable <string ,Value ?> @params, List <Place >? results, Error ? error)
Add a query and corresponding result (or error) to the mock backend,
meaning that if it receives a reverse search for params
through
reverse_resolve (or its asynchronous variants), the mock
backend will return the given results
or error
to the caller.
public void clear ()
public unowned GenericArray <MockBackendQuery ?> get_query_log ()
Get the details of the forward and reverse queries which have been
requested of the mock backend since the most recent call to clear .
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 Geocode.Backend