summaryrefslogtreecommitdiff
path: root/vapi/libgeoclue-2.0.vapi
blob: e6ebba2906e56d996eb51a90705e3fd17787f437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/* libgeoclue-2.0.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "GClue", gir_namespace = "Geoclue", gir_version = "2.0", lower_case_cprefix = "gclue_")]
namespace GClue {
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_proxy_get_type ()")]
	public class ClientProxy : GLib.DBusProxy, GClue.Client, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
		[CCode (cname = "gclue_client_proxy_new", has_construct_function = false)]
		public async ClientProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
		public static async GClue.ClientProxy create (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable) throws GLib.Error;
		public static async GClue.ClientProxy create_full (string desktop_id, GClue.AccuracyLevel accuracy_level, GClue.ClientProxyCreateFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
		public static GClue.ClientProxy create_full_sync (string desktop_id, GClue.AccuracyLevel accuracy_level, GClue.ClientProxyCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
		public static GClue.ClientProxy create_sync (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[CCode (cname = "gclue_client_proxy_new_for_bus", has_construct_function = false)]
		public async ClientProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
		[CCode (has_construct_function = false, type = "GClueClient*")]
		public ClientProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[CCode (has_construct_function = false, type = "GClueClient*")]
		public ClientProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_skeleton_get_type ()")]
	public class ClientSkeleton : GLib.DBusInterfaceSkeleton, GClue.Client, GLib.DBusInterface {
		[CCode (has_construct_function = false, type = "GClueClient*")]
		public ClientSkeleton ();
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_proxy_get_type ()")]
	public class LocationProxy : GLib.DBusProxy, GClue.Location, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
		[CCode (cname = "gclue_location_proxy_new", has_construct_function = false)]
		public async LocationProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
		[CCode (cname = "gclue_location_proxy_new_for_bus", has_construct_function = false)]
		public async LocationProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
		[CCode (has_construct_function = false, type = "GClueLocation*")]
		public LocationProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[CCode (has_construct_function = false, type = "GClueLocation*")]
		public LocationProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_skeleton_get_type ()")]
	public class LocationSkeleton : GLib.DBusInterfaceSkeleton, GClue.Location, GLib.DBusInterface {
		[CCode (has_construct_function = false, type = "GClueLocation*")]
		public LocationSkeleton ();
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_proxy_get_type ()")]
	public class ManagerProxy : GLib.DBusProxy, GClue.Manager, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
		[CCode (cname = "gclue_manager_proxy_new", has_construct_function = false)]
		public async ManagerProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
		[CCode (cname = "gclue_manager_proxy_new_for_bus", has_construct_function = false)]
		public async ManagerProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
		[CCode (has_construct_function = false, type = "GClueManager*")]
		public ManagerProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[CCode (has_construct_function = false, type = "GClueManager*")]
		public ManagerProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_skeleton_get_type ()")]
	public class ManagerSkeleton : GLib.DBusInterfaceSkeleton, GClue.Manager, GLib.DBusInterface {
		[CCode (has_construct_function = false, type = "GClueManager*")]
		public ManagerSkeleton ();
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_simple_get_type ()")]
	public class Simple : GLib.Object, GLib.AsyncInitable {
		[CCode (cname = "gclue_simple_new", has_construct_function = false)]
		public async Simple (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable) throws GLib.Error;
		public unowned GClue.ClientProxy get_client ();
		public unowned GClue.Location get_location ();
		public static async void new_with_thresholds (string desktop_id, GClue.AccuracyLevel accuracy_level, uint time_threshold, uint distance_threshold, GLib.Cancellable? cancellable);
		[CCode (has_construct_function = false)]
		public Simple.sync (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[CCode (has_construct_function = false)]
		public Simple.with_thresholds_sync (string desktop_id, GClue.AccuracyLevel accuracy_level, uint time_threshold, uint distance_threshold, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[NoAccessorMethod]
		public GClue.AccuracyLevel accuracy_level { construct; }
		public GClue.ClientProxy client { get; }
		[NoAccessorMethod]
		public string desktop_id { construct; }
		[NoAccessorMethod]
		public uint distance_threshold { get; construct; }
		public GClue.LocationProxy location { get; }
		[NoAccessorMethod]
		public uint time_threshold { get; construct; }
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_get_type ()")]
	public interface Client : GLib.Object {
		public async bool call_start (GLib.Cancellable? cancellable) throws GLib.Error;
		public bool call_start_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
		public async bool call_stop (GLib.Cancellable? cancellable) throws GLib.Error;
		public bool call_stop_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
		public void complete_start (owned GLib.DBusMethodInvocation invocation);
		public void complete_stop (owned GLib.DBusMethodInvocation invocation);
		public void emit_location_updated (string arg_old, string arg_new);
		public static unowned GLib.DBusInterfaceInfo interface_info ();
		public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
		[NoAccessorMethod]
		public abstract bool active { get; set; }
		[NoAccessorMethod]
		public abstract string desktop_id { owned get; set; }
		[NoAccessorMethod]
		public abstract uint distance_threshold { get; set; }
		[NoAccessorMethod]
		public abstract string location { owned get; set; }
		[NoAccessorMethod]
		public abstract uint requested_accuracy_level { get; set; }
		[NoAccessorMethod]
		public abstract uint time_threshold { get; set; }
		public virtual signal bool handle_start (GLib.DBusMethodInvocation invocation);
		public virtual signal bool handle_stop (GLib.DBusMethodInvocation invocation);
		public virtual signal void location_updated (string arg_old, string arg_new);
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_get_type ()")]
	public interface Location : GLib.Object {
		public static unowned GLib.DBusInterfaceInfo interface_info ();
		public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
		[NoAccessorMethod]
		public abstract double accuracy { get; set; }
		[NoAccessorMethod]
		public abstract double altitude { get; set; }
		[NoAccessorMethod]
		public abstract string description { owned get; set; }
		[NoAccessorMethod]
		public abstract double heading { get; set; }
		[NoAccessorMethod]
		public abstract double latitude { get; set; }
		[NoAccessorMethod]
		public abstract double longitude { get; set; }
		[NoAccessorMethod]
		public abstract double speed { get; set; }
		[NoAccessorMethod]
		public abstract GLib.Variant timestamp { owned get; set; }
	}
	[CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_get_type ()")]
	public interface Manager : GLib.Object {
		public async bool call_add_agent (string arg_id, GLib.Cancellable? cancellable) throws GLib.Error;
		public bool call_add_agent_sync (string arg_id, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[CCode (async_result_pos = 2.1)]
		public async bool call_create_client (GLib.Cancellable? cancellable, out string out_client) throws GLib.Error;
		public bool call_create_client_sync (out string out_client, GLib.Cancellable? cancellable = null) throws GLib.Error;
		public async bool call_delete_client (string arg_client, GLib.Cancellable? cancellable) throws GLib.Error;
		public bool call_delete_client_sync (string arg_client, GLib.Cancellable? cancellable = null) throws GLib.Error;
		[CCode (async_result_pos = 2.1)]
		public async bool call_get_client (GLib.Cancellable? cancellable, out string out_client) throws GLib.Error;
		public bool call_get_client_sync (out string out_client, GLib.Cancellable? cancellable = null) throws GLib.Error;
		public void complete_add_agent (owned GLib.DBusMethodInvocation invocation);
		public void complete_create_client (owned GLib.DBusMethodInvocation invocation, string client);
		public void complete_delete_client (owned GLib.DBusMethodInvocation invocation);
		public void complete_get_client (owned GLib.DBusMethodInvocation invocation, string client);
		public static unowned GLib.DBusInterfaceInfo interface_info ();
		public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
		[NoAccessorMethod]
		public abstract uint available_accuracy_level { get; set; }
		[NoAccessorMethod]
		public abstract bool in_use { get; set; }
		public virtual signal bool handle_add_agent (GLib.DBusMethodInvocation invocation, string arg_id);
		public virtual signal bool handle_create_client (GLib.DBusMethodInvocation invocation);
		public virtual signal bool handle_delete_client (GLib.DBusMethodInvocation invocation, string arg_client);
		public virtual signal bool handle_get_client (GLib.DBusMethodInvocation invocation);
	}
	[CCode (cheader_filename = "geoclue.h", cprefix = "GCLUE_ACCURACY_LEVEL_", type_id = "gclue_accuracy_level_get_type ()")]
	public enum AccuracyLevel {
		NONE,
		COUNTRY,
		CITY,
		NEIGHBORHOOD,
		STREET,
		EXACT
	}
	[CCode (cheader_filename = "geoclue.h", cprefix = "GCLUE_CLIENT_PROXY_CREATE_", type_id = "gclue_client_proxy_create_flags_get_type ()")]
	[Flags]
	public enum ClientProxyCreateFlags {
		NONE,
		AUTO_DELETE
	}
	[CCode (cheader_filename = "geoclue.h")]
	[Version (replacement = "Client.interface_info")]
	public static unowned GLib.DBusInterfaceInfo client_interface_info ();
	[CCode (cheader_filename = "geoclue.h")]
	[Version (replacement = "Client.override_properties")]
	public static uint client_override_properties (GLib.ObjectClass klass, uint property_id_begin);
	[CCode (cheader_filename = "geoclue.h")]
	[Version (replacement = "Location.interface_info")]
	public static unowned GLib.DBusInterfaceInfo location_interface_info ();
	[CCode (cheader_filename = "geoclue.h")]
	[Version (replacement = "Location.override_properties")]
	public static uint location_override_properties (GLib.ObjectClass klass, uint property_id_begin);
	[CCode (cheader_filename = "geoclue.h")]
	[Version (replacement = "Manager.interface_info")]
	public static unowned GLib.DBusInterfaceInfo manager_interface_info ();
	[CCode (cheader_filename = "geoclue.h")]
	[Version (replacement = "Manager.override_properties")]
	public static uint manager_override_properties (GLib.ObjectClass klass, uint property_id_begin);
}