Release 0.41.92
[vala-gnome.git] / vapi / libgeoclue-2.0.vapi
blobe3fda94cddb23ae943e5763e3d37532bc8a748b5
1 /* libgeoclue-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GClue", gir_namespace = "Geoclue", gir_version = "2.0", lower_case_cprefix = "gclue_")]
4 namespace GClue {
5         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_proxy_get_type ()")]
6         public class ClientProxy : GLib.DBusProxy, GClue.Client, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
7                 [CCode (cname = "gclue_client_proxy_new", has_construct_function = false)]
8                 public async ClientProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
9                 public static async GClue.ClientProxy create (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable) throws GLib.Error;
10                 public static GClue.ClientProxy create_sync (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable = null) throws GLib.Error;
11                 [CCode (cname = "gclue_client_proxy_new_for_bus", has_construct_function = false)]
12                 public async ClientProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
13                 [CCode (has_construct_function = false, type = "GClueClient*")]
14                 public ClientProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
15                 [CCode (has_construct_function = false, type = "GClueClient*")]
16                 public ClientProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
17         }
18         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_skeleton_get_type ()")]
19         public class ClientSkeleton : GLib.DBusInterfaceSkeleton, GClue.Client, GLib.DBusInterface {
20                 [CCode (has_construct_function = false, type = "GClueClient*")]
21                 public ClientSkeleton ();
22         }
23         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_proxy_get_type ()")]
24         public class LocationProxy : GLib.DBusProxy, GClue.Location, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
25                 [CCode (cname = "gclue_location_proxy_new", has_construct_function = false)]
26                 public async LocationProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
27                 [CCode (cname = "gclue_location_proxy_new_for_bus", has_construct_function = false)]
28                 public async LocationProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
29                 [CCode (has_construct_function = false, type = "GClueLocation*")]
30                 public LocationProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
31                 [CCode (has_construct_function = false, type = "GClueLocation*")]
32                 public LocationProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
33         }
34         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_skeleton_get_type ()")]
35         public class LocationSkeleton : GLib.DBusInterfaceSkeleton, GClue.Location, GLib.DBusInterface {
36                 [CCode (has_construct_function = false, type = "GClueLocation*")]
37                 public LocationSkeleton ();
38         }
39         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_proxy_get_type ()")]
40         public class ManagerProxy : GLib.DBusProxy, GClue.Manager, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
41                 [CCode (cname = "gclue_manager_proxy_new", has_construct_function = false)]
42                 public async ManagerProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
43                 [CCode (cname = "gclue_manager_proxy_new_for_bus", has_construct_function = false)]
44                 public async ManagerProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
45                 [CCode (has_construct_function = false, type = "GClueManager*")]
46                 public ManagerProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
47                 [CCode (has_construct_function = false, type = "GClueManager*")]
48                 public ManagerProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
49         }
50         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_skeleton_get_type ()")]
51         public class ManagerSkeleton : GLib.DBusInterfaceSkeleton, GClue.Manager, GLib.DBusInterface {
52                 [CCode (has_construct_function = false, type = "GClueManager*")]
53                 public ManagerSkeleton ();
54         }
55         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_simple_get_type ()")]
56         public class Simple : GLib.Object, GLib.AsyncInitable {
57                 [CCode (cname = "gclue_simple_new", has_construct_function = false)]
58                 public async Simple (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable) throws GLib.Error;
59                 public unowned GClue.ClientProxy get_client ();
60                 public unowned GClue.LocationProxy get_location ();
61                 [CCode (has_construct_function = false)]
62                 public Simple.sync (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable? cancellable = null) throws GLib.Error;
63                 public GClue.ClientProxy client { get; }
64                 [NoAccessorMethod]
65                 public string desktop_id { construct; }
66                 public GClue.LocationProxy location { get; }
67         }
68         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_get_type ()")]
69         public interface Client : GLib.Object {
70                 public async bool call_start (GLib.Cancellable? cancellable) throws GLib.Error;
71                 public bool call_start_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
72                 public async bool call_stop (GLib.Cancellable? cancellable) throws GLib.Error;
73                 public bool call_stop_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
74                 public void complete_start (owned GLib.DBusMethodInvocation invocation);
75                 public void complete_stop (owned GLib.DBusMethodInvocation invocation);
76                 public void emit_location_updated (string arg_old, string arg_new);
77                 public static unowned GLib.DBusInterfaceInfo interface_info ();
78                 public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
79                 [NoAccessorMethod]
80                 public abstract bool active { get; set; }
81                 [NoAccessorMethod]
82                 public abstract string desktop_id { owned get; set; }
83                 [NoAccessorMethod]
84                 public abstract uint distance_threshold { get; set; }
85                 [NoAccessorMethod]
86                 public abstract string location { owned get; set; }
87                 [NoAccessorMethod]
88                 public abstract uint requested_accuracy_level { get; set; }
89                 [NoAccessorMethod]
90                 public abstract uint time_threshold { get; set; }
91                 public virtual signal bool handle_start (GLib.DBusMethodInvocation invocation);
92                 public virtual signal bool handle_stop (GLib.DBusMethodInvocation invocation);
93                 public virtual signal void location_updated (string arg_old, string arg_new);
94         }
95         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_get_type ()")]
96         public interface Location : GLib.Object {
97                 public static unowned GLib.DBusInterfaceInfo interface_info ();
98                 public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
99                 [NoAccessorMethod]
100                 public abstract double accuracy { get; set; }
101                 [NoAccessorMethod]
102                 public abstract double altitude { get; set; }
103                 [NoAccessorMethod]
104                 public abstract string description { owned get; set; }
105                 [NoAccessorMethod]
106                 public abstract double heading { get; set; }
107                 [NoAccessorMethod]
108                 public abstract double latitude { get; set; }
109                 [NoAccessorMethod]
110                 public abstract double longitude { get; set; }
111                 [NoAccessorMethod]
112                 public abstract double speed { get; set; }
113                 [NoAccessorMethod]
114                 public abstract GLib.Variant timestamp { owned get; set; }
115         }
116         [CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_get_type ()")]
117         public interface Manager : GLib.Object {
118                 public async bool call_add_agent (string arg_id, GLib.Cancellable? cancellable) throws GLib.Error;
119                 public bool call_add_agent_sync (string arg_id, GLib.Cancellable? cancellable = null) throws GLib.Error;
120                 public async bool call_get_client (GLib.Cancellable? cancellable, out string out_client) throws GLib.Error;
121                 public bool call_get_client_sync (out string out_client, GLib.Cancellable? cancellable = null) throws GLib.Error;
122                 public void complete_add_agent (owned GLib.DBusMethodInvocation invocation);
123                 public void complete_get_client (owned GLib.DBusMethodInvocation invocation, string client);
124                 public static unowned GLib.DBusInterfaceInfo interface_info ();
125                 public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
126                 [NoAccessorMethod]
127                 public abstract uint available_accuracy_level { get; set; }
128                 [NoAccessorMethod]
129                 public abstract bool in_use { get; set; }
130                 public virtual signal bool handle_add_agent (GLib.DBusMethodInvocation invocation, string arg_id);
131                 public virtual signal bool handle_get_client (GLib.DBusMethodInvocation invocation);
132         }
133         [CCode (cheader_filename = "geoclue.h", cprefix = "GCLUE_ACCURACY_LEVEL_", has_type_id = false)]
134         public enum AccuracyLevel {
135                 NONE,
136                 COUNTRY,
137                 CITY,
138                 NEIGHBORHOOD,
139                 STREET,
140                 EXACT
141         }
142         [CCode (cheader_filename = "geoclue.h")]
143         public static unowned GLib.DBusInterfaceInfo client_interface_info ();
144         [CCode (cheader_filename = "geoclue.h")]
145         public static uint client_override_properties (GLib.ObjectClass klass, uint property_id_begin);
146         [CCode (cheader_filename = "geoclue.h")]
147         public static unowned GLib.DBusInterfaceInfo location_interface_info ();
148         [CCode (cheader_filename = "geoclue.h")]
149         public static uint location_override_properties (GLib.ObjectClass klass, uint property_id_begin);
150         [CCode (cheader_filename = "geoclue.h")]
151         public static unowned GLib.DBusInterfaceInfo manager_interface_info ();
152         [CCode (cheader_filename = "geoclue.h")]
153         public static uint manager_override_properties (GLib.ObjectClass klass, uint property_id_begin);