Back to index

libunity  5.92.0
protocol-lens-interface.c
Go to the documentation of this file.
00001 /* protocol-lens-interface.c generated by valac 0.17.2, the Vala compiler
00002  * generated from protocol-lens-interface.vala, do not modify */
00003 
00004 /*
00005  * Copyright (C) 2010 Canonical, Ltd.
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License
00009  * version 3.0 as published by the Free Software Foundation.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU Lesser General Public License version 3.0 for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library. If not, see
00018  * <http://www.gnu.org/licenses/>.
00019  *
00020  * Authored by Neil Jagdish Patel <neil.patel@canonical.com>
00021  *
00022  */
00023 
00024 #include <glib.h>
00025 #include <glib-object.h>
00026 #include <stdlib.h>
00027 #include <string.h>
00028 #include <gio/gio.h>
00029 
00030 
00031 #define UNITY_PROTOCOL_TYPE_LENS_INFO (unity_protocol_lens_info_get_type ())
00032 typedef struct _UnityProtocolLensInfo UnityProtocolLensInfo;
00033 #define _g_free0(var) (var = (g_free (var), NULL))
00034 #define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
00035 
00036 #define UNITY_PROTOCOL_TYPE_HANDLED_TYPE (unity_protocol_handled_type_get_type ())
00037 
00038 #define UNITY_PROTOCOL_TYPE_ACTION_TYPE (unity_protocol_action_type_get_type ())
00039 
00040 #define UNITY_PROTOCOL_TYPE_VIEW_TYPE (unity_protocol_view_type_get_type ())
00041 
00042 #define UNITY_PROTOCOL_TYPE_LENS_SERVICE (unity_protocol_lens_service_get_type ())
00043 #define UNITY_PROTOCOL_LENS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PROTOCOL_TYPE_LENS_SERVICE, UnityProtocolLensService))
00044 #define UNITY_PROTOCOL_IS_LENS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PROTOCOL_TYPE_LENS_SERVICE))
00045 #define UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), UNITY_PROTOCOL_TYPE_LENS_SERVICE, UnityProtocolLensServiceIface))
00046 
00047 typedef struct _UnityProtocolLensService UnityProtocolLensService;
00048 typedef struct _UnityProtocolLensServiceIface UnityProtocolLensServiceIface;
00049 
00050 #define UNITY_PROTOCOL_TYPE_LENS_SERVICE_PROXY (unity_protocol_lens_service_proxy_get_type ())
00051 
00052 #define UNITY_PROTOCOL_TYPE_ACTIVATION_REPLY_RAW (unity_protocol_activation_reply_raw_get_type ())
00053 typedef struct _UnityProtocolActivationReplyRaw UnityProtocolActivationReplyRaw;
00054 typedef GDBusProxy UnityProtocolLensServiceProxy;
00055 typedef GDBusProxyClass UnityProtocolLensServiceProxyClass;
00056 
00057 struct _UnityProtocolLensInfo {
00058        gchar* dbus_path;
00059        gboolean search_in_global;
00060        gboolean visible;
00061        gchar* search_hint;
00062        gchar* private_connection_name;
00063        gchar* results_model_name;
00064        gchar* global_results_model_name;
00065        gchar* categories_model_name;
00066        gchar* filters_model_name;
00067        GHashTable* hints;
00068 };
00069 
00070 typedef enum  {
00071        UNITY_PROTOCOL_HANDLED_TYPE_NOT_HANDLED,
00072        UNITY_PROTOCOL_HANDLED_TYPE_SHOW_DASH,
00073        UNITY_PROTOCOL_HANDLED_TYPE_HIDE_DASH,
00074        UNITY_PROTOCOL_HANDLED_TYPE_GOTO_DASH_URI,
00075        UNITY_PROTOCOL_HANDLED_TYPE_SHOW_PREVIEW
00076 } UnityProtocolHandledType;
00077 
00078 typedef enum  {
00079        UNITY_PROTOCOL_ACTION_TYPE_ACTIVATE_RESULT,
00080        UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_RESULT,
00081        UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_ACTION,
00082        UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_BUILTIN_ACTION
00083 } UnityProtocolActionType;
00084 
00085 typedef enum  {
00086        UNITY_PROTOCOL_VIEW_TYPE_HIDDEN,
00087        UNITY_PROTOCOL_VIEW_TYPE_HOME_VIEW,
00088        UNITY_PROTOCOL_VIEW_TYPE_LENS_VIEW
00089 } UnityProtocolViewType;
00090 
00091 struct _UnityProtocolActivationReplyRaw {
00092        gchar* uri;
00093        guint handled;
00094        GHashTable* hints;
00095 };
00096 
00097 struct _UnityProtocolLensServiceIface {
00098        GTypeInterface parent_iface;
00099        void (*info_request) (UnityProtocolLensService* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
00100        void (*info_request_finish) (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00101        void (*activate) (UnityProtocolLensService* self, const gchar* uri, guint action_type, GAsyncReadyCallback _callback_, gpointer _user_data_);
00102        void (*activate_finish) (UnityProtocolLensService* self, GAsyncResult* _res_, UnityProtocolActivationReplyRaw* result, GError** error);
00103        void (*update_preview_property) (UnityProtocolLensService* self, const gchar* uri, GHashTable* values, GAsyncReadyCallback _callback_, gpointer _user_data_);
00104        GHashTable* (*update_preview_property_finish) (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00105        void (*search) (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_);
00106        GHashTable* (*search_finish) (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00107        void (*global_search) (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_);
00108        GHashTable* (*global_search_finish) (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00109        void (*update_filter) (UnityProtocolLensService* self, const gchar* filter_name, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
00110        void (*update_filter_finish) (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00111        void (*set_view_type) (UnityProtocolLensService* self, guint view_type, GAsyncReadyCallback _callback_, gpointer _user_data_);
00112        void (*set_view_type_finish) (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00113 };
00114 
00115 
00116 
00117 GType unity_protocol_lens_info_get_type (void) G_GNUC_CONST;
00118 UnityProtocolLensInfo* unity_protocol_lens_info_dup (const UnityProtocolLensInfo* self);
00119 void unity_protocol_lens_info_free (UnityProtocolLensInfo* self);
00120 void unity_protocol_lens_info_copy (const UnityProtocolLensInfo* self, UnityProtocolLensInfo* dest);
00121 void unity_protocol_lens_info_destroy (UnityProtocolLensInfo* self);
00122 GType unity_protocol_handled_type_get_type (void) G_GNUC_CONST;
00123 GType unity_protocol_action_type_get_type (void) G_GNUC_CONST;
00124 GType unity_protocol_view_type_get_type (void) G_GNUC_CONST;
00125 GType unity_protocol_lens_service_proxy_get_type (void) G_GNUC_CONST;
00126 guint unity_protocol_lens_service_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
00127 GType unity_protocol_activation_reply_raw_get_type (void) G_GNUC_CONST;
00128 UnityProtocolActivationReplyRaw* unity_protocol_activation_reply_raw_dup (const UnityProtocolActivationReplyRaw* self);
00129 void unity_protocol_activation_reply_raw_free (UnityProtocolActivationReplyRaw* self);
00130 void unity_protocol_activation_reply_raw_copy (const UnityProtocolActivationReplyRaw* self, UnityProtocolActivationReplyRaw* dest);
00131 void unity_protocol_activation_reply_raw_destroy (UnityProtocolActivationReplyRaw* self);
00132 GType unity_protocol_lens_service_get_type (void) G_GNUC_CONST;
00133 void unity_protocol_lens_service_info_request (UnityProtocolLensService* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
00134 void unity_protocol_lens_service_info_request_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00135 void unity_protocol_lens_service_activate (UnityProtocolLensService* self, const gchar* uri, guint action_type, GAsyncReadyCallback _callback_, gpointer _user_data_);
00136 void unity_protocol_lens_service_activate_finish (UnityProtocolLensService* self, GAsyncResult* _res_, UnityProtocolActivationReplyRaw* result, GError** error);
00137 void unity_protocol_lens_service_update_preview_property (UnityProtocolLensService* self, const gchar* uri, GHashTable* values, GAsyncReadyCallback _callback_, gpointer _user_data_);
00138 GHashTable* unity_protocol_lens_service_update_preview_property_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00139 void unity_protocol_lens_service_search (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_);
00140 GHashTable* unity_protocol_lens_service_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00141 void unity_protocol_lens_service_global_search (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_);
00142 GHashTable* unity_protocol_lens_service_global_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00143 void unity_protocol_lens_service_update_filter (UnityProtocolLensService* self, const gchar* filter_name, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
00144 void unity_protocol_lens_service_update_filter_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00145 void unity_protocol_lens_service_set_view_type (UnityProtocolLensService* self, guint view_type, GAsyncReadyCallback _callback_, gpointer _user_data_);
00146 void unity_protocol_lens_service_set_view_type_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00147 static void g_cclosure_user_marshal_VOID__BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
00148 static void unity_protocol_lens_service_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
00149 static void _dbus_handle_unity_protocol_lens_service_changed (UnityProtocolLensService* self, GVariant* parameters);
00150 static void _vala_g_async_ready_callback (GObject *source_object, GAsyncResult *res, void *user_data);
00151 static void unity_protocol_lens_service_proxy_info_request_async (UnityProtocolLensService* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
00152 static void unity_protocol_lens_service_proxy_info_request_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00153 static void unity_protocol_lens_service_proxy_activate_async (UnityProtocolLensService* self, const gchar* uri, guint action_type, GAsyncReadyCallback _callback_, gpointer _user_data_);
00154 static void unity_protocol_lens_service_proxy_activate_finish (UnityProtocolLensService* self, GAsyncResult* _res_, UnityProtocolActivationReplyRaw* result, GError** error);
00155 static void unity_protocol_lens_service_proxy_update_preview_property_async (UnityProtocolLensService* self, const gchar* uri, GHashTable* values, GAsyncReadyCallback _callback_, gpointer _user_data_);
00156 static GHashTable* unity_protocol_lens_service_proxy_update_preview_property_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00157 static void unity_protocol_lens_service_proxy_search_async (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_);
00158 static GHashTable* unity_protocol_lens_service_proxy_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00159 static void unity_protocol_lens_service_proxy_global_search_async (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_);
00160 static GHashTable* unity_protocol_lens_service_proxy_global_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00161 static void unity_protocol_lens_service_proxy_update_filter_async (UnityProtocolLensService* self, const gchar* filter_name, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
00162 static void unity_protocol_lens_service_proxy_update_filter_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00163 static void unity_protocol_lens_service_proxy_set_view_type_async (UnityProtocolLensService* self, guint view_type, GAsyncReadyCallback _callback_, gpointer _user_data_);
00164 static void unity_protocol_lens_service_proxy_set_view_type_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error);
00165 static void unity_protocol_lens_service_proxy_unity_protocol_lens_service_interface_init (UnityProtocolLensServiceIface* iface);
00166 static void _dbus_unity_protocol_lens_service_info_request (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation);
00167 static void _dbus_unity_protocol_lens_service_info_request_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
00168 static void _dbus_unity_protocol_lens_service_activate (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation);
00169 static void _dbus_unity_protocol_lens_service_activate_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
00170 static void _dbus_unity_protocol_lens_service_update_preview_property (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation);
00171 static void _dbus_unity_protocol_lens_service_update_preview_property_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
00172 static void _dbus_unity_protocol_lens_service_search (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation);
00173 static void _dbus_unity_protocol_lens_service_search_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
00174 static void _dbus_unity_protocol_lens_service_global_search (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation);
00175 static void _dbus_unity_protocol_lens_service_global_search_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
00176 static void _dbus_unity_protocol_lens_service_update_filter (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation);
00177 static void _dbus_unity_protocol_lens_service_update_filter_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
00178 static void _dbus_unity_protocol_lens_service_set_view_type (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation);
00179 static void _dbus_unity_protocol_lens_service_set_view_type_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
00180 static void unity_protocol_lens_service_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
00181 static GVariant* unity_protocol_lens_service_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
00182 static gboolean unity_protocol_lens_service_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
00183 static void _dbus_unity_protocol_lens_service_changed (GObject* _sender, UnityProtocolLensInfo* lens_info, gpointer* _data);
00184 static void _unity_protocol_lens_service_unregister_object (gpointer user_data);
00185 
00186 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_info_request_in[] = {NULL};
00187 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_info_request_out[] = {NULL};
00188 static const GDBusMethodInfo _unity_protocol_lens_service_dbus_method_info_info_request = {-1, "InfoRequest", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_info_request_in), (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_info_request_out)};
00189 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_activate_uri = {-1, "uri", "s"};
00190 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_activate_action_type = {-1, "action_type", "u"};
00191 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_activate_result = {-1, "result", "(sua{sv})"};
00192 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_activate_in[] = {&_unity_protocol_lens_service_dbus_arg_info_activate_uri, &_unity_protocol_lens_service_dbus_arg_info_activate_action_type, NULL};
00193 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_activate_out[] = {&_unity_protocol_lens_service_dbus_arg_info_activate_result, NULL};
00194 static const GDBusMethodInfo _unity_protocol_lens_service_dbus_method_info_activate = {-1, "Activate", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_activate_in), (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_activate_out)};
00195 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_update_preview_property_uri = {-1, "uri", "s"};
00196 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_update_preview_property_values = {-1, "values", "a{sv}"};
00197 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_update_preview_property_result = {-1, "result", "a{sv}"};
00198 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_update_preview_property_in[] = {&_unity_protocol_lens_service_dbus_arg_info_update_preview_property_uri, &_unity_protocol_lens_service_dbus_arg_info_update_preview_property_values, NULL};
00199 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_update_preview_property_out[] = {&_unity_protocol_lens_service_dbus_arg_info_update_preview_property_result, NULL};
00200 static const GDBusMethodInfo _unity_protocol_lens_service_dbus_method_info_update_preview_property = {-1, "UpdatePreviewProperty", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_update_preview_property_in), (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_update_preview_property_out)};
00201 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_search_search_string = {-1, "search_string", "s"};
00202 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_search_hints = {-1, "hints", "a{sv}"};
00203 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_search_result = {-1, "result", "a{sv}"};
00204 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_search_in[] = {&_unity_protocol_lens_service_dbus_arg_info_search_search_string, &_unity_protocol_lens_service_dbus_arg_info_search_hints, NULL};
00205 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_search_out[] = {&_unity_protocol_lens_service_dbus_arg_info_search_result, NULL};
00206 static const GDBusMethodInfo _unity_protocol_lens_service_dbus_method_info_search = {-1, "Search", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_search_in), (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_search_out)};
00207 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_global_search_search_string = {-1, "search_string", "s"};
00208 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_global_search_hints = {-1, "hints", "a{sv}"};
00209 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_global_search_result = {-1, "result", "a{sv}"};
00210 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_global_search_in[] = {&_unity_protocol_lens_service_dbus_arg_info_global_search_search_string, &_unity_protocol_lens_service_dbus_arg_info_global_search_hints, NULL};
00211 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_global_search_out[] = {&_unity_protocol_lens_service_dbus_arg_info_global_search_result, NULL};
00212 static const GDBusMethodInfo _unity_protocol_lens_service_dbus_method_info_global_search = {-1, "GlobalSearch", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_global_search_in), (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_global_search_out)};
00213 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_update_filter_filter_name = {-1, "filter_name", "s"};
00214 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_update_filter_properties = {-1, "properties", "a{sv}"};
00215 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_update_filter_in[] = {&_unity_protocol_lens_service_dbus_arg_info_update_filter_filter_name, &_unity_protocol_lens_service_dbus_arg_info_update_filter_properties, NULL};
00216 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_update_filter_out[] = {NULL};
00217 static const GDBusMethodInfo _unity_protocol_lens_service_dbus_method_info_update_filter = {-1, "UpdateFilter", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_update_filter_in), (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_update_filter_out)};
00218 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_set_view_type_view_type = {-1, "view_type", "u"};
00219 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_set_view_type_in[] = {&_unity_protocol_lens_service_dbus_arg_info_set_view_type_view_type, NULL};
00220 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_set_view_type_out[] = {NULL};
00221 static const GDBusMethodInfo _unity_protocol_lens_service_dbus_method_info_set_view_type = {-1, "SetViewType", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_set_view_type_in), (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_set_view_type_out)};
00222 static const GDBusMethodInfo * const _unity_protocol_lens_service_dbus_method_info[] = {&_unity_protocol_lens_service_dbus_method_info_info_request, &_unity_protocol_lens_service_dbus_method_info_activate, &_unity_protocol_lens_service_dbus_method_info_update_preview_property, &_unity_protocol_lens_service_dbus_method_info_search, &_unity_protocol_lens_service_dbus_method_info_global_search, &_unity_protocol_lens_service_dbus_method_info_update_filter, &_unity_protocol_lens_service_dbus_method_info_set_view_type, NULL};
00223 static const GDBusArgInfo _unity_protocol_lens_service_dbus_arg_info_changed_lens_info = {-1, "lens_info", "(sbbssssssa{sv})"};
00224 static const GDBusArgInfo * const _unity_protocol_lens_service_dbus_arg_info_changed[] = {&_unity_protocol_lens_service_dbus_arg_info_changed_lens_info, NULL};
00225 static const GDBusSignalInfo _unity_protocol_lens_service_dbus_signal_info_changed = {-1, "Changed", (GDBusArgInfo **) (&_unity_protocol_lens_service_dbus_arg_info_changed)};
00226 static const GDBusSignalInfo * const _unity_protocol_lens_service_dbus_signal_info[] = {&_unity_protocol_lens_service_dbus_signal_info_changed, NULL};
00227 static const GDBusPropertyInfo * const _unity_protocol_lens_service_dbus_property_info[] = {NULL};
00228 static const GDBusInterfaceInfo _unity_protocol_lens_service_dbus_interface_info = {-1, "com.canonical.Unity.Lens", (GDBusMethodInfo **) (&_unity_protocol_lens_service_dbus_method_info), (GDBusSignalInfo **) (&_unity_protocol_lens_service_dbus_signal_info), (GDBusPropertyInfo **) (&_unity_protocol_lens_service_dbus_property_info)};
00229 static const GDBusInterfaceVTable _unity_protocol_lens_service_dbus_interface_vtable = {unity_protocol_lens_service_dbus_interface_method_call, unity_protocol_lens_service_dbus_interface_get_property, unity_protocol_lens_service_dbus_interface_set_property};
00230 
00231 static gpointer _g_hash_table_ref0 (gpointer self) {
00232        return self ? g_hash_table_ref (self) : NULL;
00233 }
00234 
00235 
00236 void unity_protocol_lens_info_copy (const UnityProtocolLensInfo* self, UnityProtocolLensInfo* dest) {
00237        const gchar* _tmp0_;
00238        gchar* _tmp1_;
00239        gboolean _tmp2_;
00240        gboolean _tmp3_;
00241        const gchar* _tmp4_;
00242        gchar* _tmp5_;
00243        const gchar* _tmp6_;
00244        gchar* _tmp7_;
00245        const gchar* _tmp8_;
00246        gchar* _tmp9_;
00247        const gchar* _tmp10_;
00248        gchar* _tmp11_;
00249        const gchar* _tmp12_;
00250        gchar* _tmp13_;
00251        const gchar* _tmp14_;
00252        gchar* _tmp15_;
00253        GHashTable* _tmp16_;
00254        GHashTable* _tmp17_;
00255        _tmp0_ = (*self).dbus_path;
00256        _tmp1_ = g_strdup (_tmp0_);
00257        _g_free0 ((*dest).dbus_path);
00258        (*dest).dbus_path = _tmp1_;
00259        _tmp2_ = (*self).search_in_global;
00260        (*dest).search_in_global = _tmp2_;
00261        _tmp3_ = (*self).visible;
00262        (*dest).visible = _tmp3_;
00263        _tmp4_ = (*self).search_hint;
00264        _tmp5_ = g_strdup (_tmp4_);
00265        _g_free0 ((*dest).search_hint);
00266        (*dest).search_hint = _tmp5_;
00267        _tmp6_ = (*self).private_connection_name;
00268        _tmp7_ = g_strdup (_tmp6_);
00269        _g_free0 ((*dest).private_connection_name);
00270        (*dest).private_connection_name = _tmp7_;
00271        _tmp8_ = (*self).results_model_name;
00272        _tmp9_ = g_strdup (_tmp8_);
00273        _g_free0 ((*dest).results_model_name);
00274        (*dest).results_model_name = _tmp9_;
00275        _tmp10_ = (*self).global_results_model_name;
00276        _tmp11_ = g_strdup (_tmp10_);
00277        _g_free0 ((*dest).global_results_model_name);
00278        (*dest).global_results_model_name = _tmp11_;
00279        _tmp12_ = (*self).categories_model_name;
00280        _tmp13_ = g_strdup (_tmp12_);
00281        _g_free0 ((*dest).categories_model_name);
00282        (*dest).categories_model_name = _tmp13_;
00283        _tmp14_ = (*self).filters_model_name;
00284        _tmp15_ = g_strdup (_tmp14_);
00285        _g_free0 ((*dest).filters_model_name);
00286        (*dest).filters_model_name = _tmp15_;
00287        _tmp16_ = (*self).hints;
00288        _tmp17_ = _g_hash_table_ref0 (_tmp16_);
00289        _g_hash_table_unref0 ((*dest).hints);
00290        (*dest).hints = _tmp17_;
00291 }
00292 
00293 
00294 void unity_protocol_lens_info_destroy (UnityProtocolLensInfo* self) {
00295        _g_free0 ((*self).dbus_path);
00296        _g_free0 ((*self).search_hint);
00297        _g_free0 ((*self).private_connection_name);
00298        _g_free0 ((*self).results_model_name);
00299        _g_free0 ((*self).global_results_model_name);
00300        _g_free0 ((*self).categories_model_name);
00301        _g_free0 ((*self).filters_model_name);
00302        _g_hash_table_unref0 ((*self).hints);
00303 }
00304 
00305 
00306 UnityProtocolLensInfo* unity_protocol_lens_info_dup (const UnityProtocolLensInfo* self) {
00307        UnityProtocolLensInfo* dup;
00308        dup = g_new0 (UnityProtocolLensInfo, 1);
00309        unity_protocol_lens_info_copy (self, dup);
00310        return dup;
00311 }
00312 
00313 
00314 void unity_protocol_lens_info_free (UnityProtocolLensInfo* self) {
00315        unity_protocol_lens_info_destroy (self);
00316        g_free (self);
00317 }
00318 
00319 
00320 GType unity_protocol_lens_info_get_type (void) {
00321        static volatile gsize unity_protocol_lens_info_type_id__volatile = 0;
00322        if (g_once_init_enter (&unity_protocol_lens_info_type_id__volatile)) {
00323               GType unity_protocol_lens_info_type_id;
00324               unity_protocol_lens_info_type_id = g_boxed_type_register_static ("UnityProtocolLensInfo", (GBoxedCopyFunc) unity_protocol_lens_info_dup, (GBoxedFreeFunc) unity_protocol_lens_info_free);
00325               g_once_init_leave (&unity_protocol_lens_info_type_id__volatile, unity_protocol_lens_info_type_id);
00326        }
00327        return unity_protocol_lens_info_type_id__volatile;
00328 }
00329 
00330 
00331 GType unity_protocol_handled_type_get_type (void) {
00332        static volatile gsize unity_protocol_handled_type_type_id__volatile = 0;
00333        if (g_once_init_enter (&unity_protocol_handled_type_type_id__volatile)) {
00334               static const GEnumValue values[] = {{UNITY_PROTOCOL_HANDLED_TYPE_NOT_HANDLED, "UNITY_PROTOCOL_HANDLED_TYPE_NOT_HANDLED", "not-handled"}, {UNITY_PROTOCOL_HANDLED_TYPE_SHOW_DASH, "UNITY_PROTOCOL_HANDLED_TYPE_SHOW_DASH", "show-dash"}, {UNITY_PROTOCOL_HANDLED_TYPE_HIDE_DASH, "UNITY_PROTOCOL_HANDLED_TYPE_HIDE_DASH", "hide-dash"}, {UNITY_PROTOCOL_HANDLED_TYPE_GOTO_DASH_URI, "UNITY_PROTOCOL_HANDLED_TYPE_GOTO_DASH_URI", "goto-dash-uri"}, {UNITY_PROTOCOL_HANDLED_TYPE_SHOW_PREVIEW, "UNITY_PROTOCOL_HANDLED_TYPE_SHOW_PREVIEW", "show-preview"}, {0, NULL, NULL}};
00335               GType unity_protocol_handled_type_type_id;
00336               unity_protocol_handled_type_type_id = g_enum_register_static ("UnityProtocolHandledType", values);
00337               g_once_init_leave (&unity_protocol_handled_type_type_id__volatile, unity_protocol_handled_type_type_id);
00338        }
00339        return unity_protocol_handled_type_type_id__volatile;
00340 }
00341 
00342 
00343 GType unity_protocol_action_type_get_type (void) {
00344        static volatile gsize unity_protocol_action_type_type_id__volatile = 0;
00345        if (g_once_init_enter (&unity_protocol_action_type_type_id__volatile)) {
00346               static const GEnumValue values[] = {{UNITY_PROTOCOL_ACTION_TYPE_ACTIVATE_RESULT, "UNITY_PROTOCOL_ACTION_TYPE_ACTIVATE_RESULT", "activate-result"}, {UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_RESULT, "UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_RESULT", "preview-result"}, {UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_ACTION, "UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_ACTION", "preview-action"}, {UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_BUILTIN_ACTION, "UNITY_PROTOCOL_ACTION_TYPE_PREVIEW_BUILTIN_ACTION", "preview-builtin-action"}, {0, NULL, NULL}};
00347               GType unity_protocol_action_type_type_id;
00348               unity_protocol_action_type_type_id = g_enum_register_static ("UnityProtocolActionType", values);
00349               g_once_init_leave (&unity_protocol_action_type_type_id__volatile, unity_protocol_action_type_type_id);
00350        }
00351        return unity_protocol_action_type_type_id__volatile;
00352 }
00353 
00354 
00355 GType unity_protocol_view_type_get_type (void) {
00356        static volatile gsize unity_protocol_view_type_type_id__volatile = 0;
00357        if (g_once_init_enter (&unity_protocol_view_type_type_id__volatile)) {
00358               static const GEnumValue values[] = {{UNITY_PROTOCOL_VIEW_TYPE_HIDDEN, "UNITY_PROTOCOL_VIEW_TYPE_HIDDEN", "hidden"}, {UNITY_PROTOCOL_VIEW_TYPE_HOME_VIEW, "UNITY_PROTOCOL_VIEW_TYPE_HOME_VIEW", "home-view"}, {UNITY_PROTOCOL_VIEW_TYPE_LENS_VIEW, "UNITY_PROTOCOL_VIEW_TYPE_LENS_VIEW", "lens-view"}, {0, NULL, NULL}};
00359               GType unity_protocol_view_type_type_id;
00360               unity_protocol_view_type_type_id = g_enum_register_static ("UnityProtocolViewType", values);
00361               g_once_init_leave (&unity_protocol_view_type_type_id__volatile, unity_protocol_view_type_type_id);
00362        }
00363        return unity_protocol_view_type_type_id__volatile;
00364 }
00365 
00366 
00367 void unity_protocol_lens_service_info_request (UnityProtocolLensService* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00368        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->info_request (self, _callback_, _user_data_);
00369 }
00370 
00371 
00372 void unity_protocol_lens_service_info_request_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00373        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->info_request_finish (self, _res_, error);
00374 }
00375 
00376 
00377 void unity_protocol_lens_service_activate (UnityProtocolLensService* self, const gchar* uri, guint action_type, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00378        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->activate (self, uri, action_type, _callback_, _user_data_);
00379 }
00380 
00381 
00382 void unity_protocol_lens_service_activate_finish (UnityProtocolLensService* self, GAsyncResult* _res_, UnityProtocolActivationReplyRaw* result, GError** error) {
00383        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->activate_finish (self, _res_, result, error);
00384 }
00385 
00386 
00387 void unity_protocol_lens_service_update_preview_property (UnityProtocolLensService* self, const gchar* uri, GHashTable* values, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00388        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->update_preview_property (self, uri, values, _callback_, _user_data_);
00389 }
00390 
00391 
00392 GHashTable* unity_protocol_lens_service_update_preview_property_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00393        return UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->update_preview_property_finish (self, _res_, error);
00394 }
00395 
00396 
00397 void unity_protocol_lens_service_search (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00398        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->search (self, search_string, hints, _callback_, _user_data_);
00399 }
00400 
00401 
00402 GHashTable* unity_protocol_lens_service_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00403        return UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->search_finish (self, _res_, error);
00404 }
00405 
00406 
00407 void unity_protocol_lens_service_global_search (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00408        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->global_search (self, search_string, hints, _callback_, _user_data_);
00409 }
00410 
00411 
00412 GHashTable* unity_protocol_lens_service_global_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00413        return UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->global_search_finish (self, _res_, error);
00414 }
00415 
00416 
00417 void unity_protocol_lens_service_update_filter (UnityProtocolLensService* self, const gchar* filter_name, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00418        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->update_filter (self, filter_name, properties, _callback_, _user_data_);
00419 }
00420 
00421 
00422 void unity_protocol_lens_service_update_filter_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00423        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->update_filter_finish (self, _res_, error);
00424 }
00425 
00426 
00427 void unity_protocol_lens_service_set_view_type (UnityProtocolLensService* self, guint view_type, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00428        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->set_view_type (self, view_type, _callback_, _user_data_);
00429 }
00430 
00431 
00432 void unity_protocol_lens_service_set_view_type_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00433        UNITY_PROTOCOL_LENS_SERVICE_GET_INTERFACE (self)->set_view_type_finish (self, _res_, error);
00434 }
00435 
00436 
00437 static void g_cclosure_user_marshal_VOID__BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
00438        typedef void (*GMarshalFunc_VOID__BOXED) (gpointer data1, gpointer arg_1, gpointer data2);
00439        register GMarshalFunc_VOID__BOXED callback;
00440        register GCClosure * cc;
00441        register gpointer data1;
00442        register gpointer data2;
00443        cc = (GCClosure *) closure;
00444        g_return_if_fail (n_param_values == 2);
00445        if (G_CCLOSURE_SWAP_DATA (closure)) {
00446               data1 = closure->data;
00447               data2 = param_values->data[0].v_pointer;
00448        } else {
00449               data1 = param_values->data[0].v_pointer;
00450               data2 = closure->data;
00451        }
00452        callback = (GMarshalFunc_VOID__BOXED) (marshal_data ? marshal_data : cc->callback);
00453        callback (data1, g_value_get_boxed (param_values + 1), data2);
00454 }
00455 
00456 
00457 static void unity_protocol_lens_service_base_init (UnityProtocolLensServiceIface * iface) {
00458        static gboolean initialized = FALSE;
00459        if (!initialized) {
00460               initialized = TRUE;
00461               g_signal_new ("changed", UNITY_PROTOCOL_TYPE_LENS_SERVICE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOXED, G_TYPE_NONE, 1, UNITY_PROTOCOL_TYPE_LENS_INFO);
00462        }
00463 }
00464 
00465 
00471 GType unity_protocol_lens_service_get_type (void) {
00472        static volatile gsize unity_protocol_lens_service_type_id__volatile = 0;
00473        if (g_once_init_enter (&unity_protocol_lens_service_type_id__volatile)) {
00474               static const GTypeInfo g_define_type_info = { sizeof (UnityProtocolLensServiceIface), (GBaseInitFunc) unity_protocol_lens_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
00475               GType unity_protocol_lens_service_type_id;
00476               unity_protocol_lens_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "UnityProtocolLensService", &g_define_type_info, 0);
00477               g_type_interface_add_prerequisite (unity_protocol_lens_service_type_id, G_TYPE_OBJECT);
00478               g_type_set_qdata (unity_protocol_lens_service_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) unity_protocol_lens_service_proxy_get_type);
00479               g_type_set_qdata (unity_protocol_lens_service_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "com.canonical.Unity.Lens");
00480               g_type_set_qdata (unity_protocol_lens_service_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) unity_protocol_lens_service_register_object);
00481               g_once_init_leave (&unity_protocol_lens_service_type_id__volatile, unity_protocol_lens_service_type_id);
00482        }
00483        return unity_protocol_lens_service_type_id__volatile;
00484 }
00485 
00486 
00487 G_DEFINE_TYPE_EXTENDED (UnityProtocolLensServiceProxy, unity_protocol_lens_service_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (UNITY_PROTOCOL_TYPE_LENS_SERVICE, unity_protocol_lens_service_proxy_unity_protocol_lens_service_interface_init) )
00488 static void unity_protocol_lens_service_proxy_class_init (UnityProtocolLensServiceProxyClass* klass) {
00489        G_DBUS_PROXY_CLASS (klass)->g_signal = unity_protocol_lens_service_proxy_g_signal;
00490 }
00491 
00492 
00493 static void _dbus_handle_unity_protocol_lens_service_changed (UnityProtocolLensService* self, GVariant* parameters) {
00494        GVariantIter _arguments_iter;
00495        UnityProtocolLensInfo lens_info = {0};
00496        GVariant* _tmp0_;
00497        UnityProtocolLensInfo _tmp1_;
00498        GVariantIter _tmp2_;
00499        GVariant* _tmp3_;
00500        GVariant* _tmp4_;
00501        GVariant* _tmp5_;
00502        GVariant* _tmp6_;
00503        GVariant* _tmp7_;
00504        GVariant* _tmp8_;
00505        GVariant* _tmp9_;
00506        GVariant* _tmp10_;
00507        GVariant* _tmp11_;
00508        GVariant* _tmp12_;
00509        GHashTable* _tmp13_;
00510        GVariantIter _tmp14_;
00511        GVariant* _tmp15_;
00512        GVariant* _tmp16_;
00513        g_variant_iter_init (&_arguments_iter, parameters);
00514        _tmp0_ = g_variant_iter_next_value (&_arguments_iter);
00515        g_variant_iter_init (&_tmp2_, _tmp0_);
00516        _tmp3_ = g_variant_iter_next_value (&_tmp2_);
00517        _tmp1_.dbus_path = g_variant_dup_string (_tmp3_, NULL);
00518        g_variant_unref (_tmp3_);
00519        _tmp4_ = g_variant_iter_next_value (&_tmp2_);
00520        _tmp1_.search_in_global = g_variant_get_boolean (_tmp4_);
00521        g_variant_unref (_tmp4_);
00522        _tmp5_ = g_variant_iter_next_value (&_tmp2_);
00523        _tmp1_.visible = g_variant_get_boolean (_tmp5_);
00524        g_variant_unref (_tmp5_);
00525        _tmp6_ = g_variant_iter_next_value (&_tmp2_);
00526        _tmp1_.search_hint = g_variant_dup_string (_tmp6_, NULL);
00527        g_variant_unref (_tmp6_);
00528        _tmp7_ = g_variant_iter_next_value (&_tmp2_);
00529        _tmp1_.private_connection_name = g_variant_dup_string (_tmp7_, NULL);
00530        g_variant_unref (_tmp7_);
00531        _tmp8_ = g_variant_iter_next_value (&_tmp2_);
00532        _tmp1_.results_model_name = g_variant_dup_string (_tmp8_, NULL);
00533        g_variant_unref (_tmp8_);
00534        _tmp9_ = g_variant_iter_next_value (&_tmp2_);
00535        _tmp1_.global_results_model_name = g_variant_dup_string (_tmp9_, NULL);
00536        g_variant_unref (_tmp9_);
00537        _tmp10_ = g_variant_iter_next_value (&_tmp2_);
00538        _tmp1_.categories_model_name = g_variant_dup_string (_tmp10_, NULL);
00539        g_variant_unref (_tmp10_);
00540        _tmp11_ = g_variant_iter_next_value (&_tmp2_);
00541        _tmp1_.filters_model_name = g_variant_dup_string (_tmp11_, NULL);
00542        g_variant_unref (_tmp11_);
00543        _tmp12_ = g_variant_iter_next_value (&_tmp2_);
00544        _tmp13_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
00545        g_variant_iter_init (&_tmp14_, _tmp12_);
00546        while (g_variant_iter_loop (&_tmp14_, "{?*}", &_tmp15_, &_tmp16_)) {
00547               g_hash_table_insert (_tmp13_, g_variant_dup_string (_tmp15_, NULL), g_variant_get_variant (_tmp16_));
00548        }
00549        _tmp1_.hints = _tmp13_;
00550        g_variant_unref (_tmp12_);
00551        lens_info = _tmp1_;
00552        g_variant_unref (_tmp0_);
00553        g_signal_emit_by_name (self, "changed", &lens_info);
00554        unity_protocol_lens_info_destroy (&lens_info);
00555 }
00556 
00557 
00558 static void unity_protocol_lens_service_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
00559        if (strcmp (signal_name, "Changed") == 0) {
00560               _dbus_handle_unity_protocol_lens_service_changed ((UnityProtocolLensService*) proxy, parameters);
00561        }
00562 }
00563 
00564 
00565 static void unity_protocol_lens_service_proxy_init (UnityProtocolLensServiceProxy* self) {
00566 }
00567 
00568 
00569 static void _vala_g_async_ready_callback (GObject *source_object, GAsyncResult *res, void *user_data) {
00570        g_simple_async_result_set_op_res_gpointer (user_data, g_object_ref (res), g_object_unref);
00571        g_simple_async_result_complete (user_data);
00572        g_object_unref (user_data);
00573 }
00574 
00575 
00576 static void unity_protocol_lens_service_proxy_info_request_async (UnityProtocolLensService* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00577        GDBusMessage *_message;
00578        GVariant *_arguments;
00579        GVariantBuilder _arguments_builder;
00580        G_IO_ERROR;
00581        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.canonical.Unity.Lens", "InfoRequest");
00582        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
00583        _arguments = g_variant_builder_end (&_arguments_builder);
00584        g_dbus_message_set_body (_message, _arguments);
00585        g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
00586        g_object_unref (_message);
00587 }
00588 
00589 
00590 static void unity_protocol_lens_service_proxy_info_request_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00591        GDBusMessage *_reply_message;
00592        _reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
00593        if (!_reply_message) {
00594               return;
00595        }
00596        if (g_dbus_message_to_gerror (_reply_message, error)) {
00597               g_object_unref (_reply_message);
00598               return;
00599        }
00600        g_object_unref (_reply_message);
00601 }
00602 
00603 
00604 static void unity_protocol_lens_service_proxy_activate_async (UnityProtocolLensService* self, const gchar* uri, guint action_type, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00605        GDBusMessage *_message;
00606        GVariant *_arguments;
00607        GVariantBuilder _arguments_builder;
00608        G_IO_ERROR;
00609        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.canonical.Unity.Lens", "Activate");
00610        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
00611        g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (uri));
00612        g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (action_type));
00613        _arguments = g_variant_builder_end (&_arguments_builder);
00614        g_dbus_message_set_body (_message, _arguments);
00615        g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
00616        g_object_unref (_message);
00617 }
00618 
00619 
00620 static void unity_protocol_lens_service_proxy_activate_finish (UnityProtocolLensService* self, GAsyncResult* _res_, UnityProtocolActivationReplyRaw* result, GError** error) {
00621        GDBusMessage *_reply_message;
00622        GVariant *_reply;
00623        GVariantIter _reply_iter;
00624        GVariant* _tmp17_;
00625        UnityProtocolActivationReplyRaw _tmp18_;
00626        GVariantIter _tmp19_;
00627        GVariant* _tmp20_;
00628        GVariant* _tmp21_;
00629        GVariant* _tmp22_;
00630        GHashTable* _tmp23_;
00631        GVariantIter _tmp24_;
00632        GVariant* _tmp25_;
00633        GVariant* _tmp26_;
00634        _reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
00635        if (!_reply_message) {
00636               return;
00637        }
00638        if (g_dbus_message_to_gerror (_reply_message, error)) {
00639               g_object_unref (_reply_message);
00640               return;
00641        }
00642        _reply = g_dbus_message_get_body (_reply_message);
00643        g_variant_iter_init (&_reply_iter, _reply);
00644        _tmp17_ = g_variant_iter_next_value (&_reply_iter);
00645        g_variant_iter_init (&_tmp19_, _tmp17_);
00646        _tmp20_ = g_variant_iter_next_value (&_tmp19_);
00647        _tmp18_.uri = g_variant_dup_string (_tmp20_, NULL);
00648        g_variant_unref (_tmp20_);
00649        _tmp21_ = g_variant_iter_next_value (&_tmp19_);
00650        _tmp18_.handled = g_variant_get_uint32 (_tmp21_);
00651        g_variant_unref (_tmp21_);
00652        _tmp22_ = g_variant_iter_next_value (&_tmp19_);
00653        _tmp23_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
00654        g_variant_iter_init (&_tmp24_, _tmp22_);
00655        while (g_variant_iter_loop (&_tmp24_, "{?*}", &_tmp25_, &_tmp26_)) {
00656               g_hash_table_insert (_tmp23_, g_variant_dup_string (_tmp25_, NULL), g_variant_get_variant (_tmp26_));
00657        }
00658        _tmp18_.hints = _tmp23_;
00659        g_variant_unref (_tmp22_);
00660        *result = _tmp18_;
00661        g_variant_unref (_tmp17_);
00662        g_object_unref (_reply_message);
00663 }
00664 
00665 
00666 static void unity_protocol_lens_service_proxy_update_preview_property_async (UnityProtocolLensService* self, const gchar* uri, GHashTable* values, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00667        GDBusMessage *_message;
00668        GVariant *_arguments;
00669        GVariantBuilder _arguments_builder;
00670        GVariantBuilder _tmp27_;
00671        GHashTableIter _tmp28_;
00672        gpointer _tmp29_;
00673        gpointer _tmp30_;
00674        G_IO_ERROR;
00675        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.canonical.Unity.Lens", "UpdatePreviewProperty");
00676        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
00677        g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (uri));
00678        g_hash_table_iter_init (&_tmp28_, values);
00679        g_variant_builder_init (&_tmp27_, G_VARIANT_TYPE ("a{sv}"));
00680        while (g_hash_table_iter_next (&_tmp28_, &_tmp29_, &_tmp30_)) {
00681               gchar* _key;
00682               GVariant* _value;
00683               _key = (gchar*) _tmp29_;
00684               _value = (GVariant*) _tmp30_;
00685               g_variant_builder_add (&_tmp27_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
00686        }
00687        g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp27_));
00688        _arguments = g_variant_builder_end (&_arguments_builder);
00689        g_dbus_message_set_body (_message, _arguments);
00690        g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
00691        g_object_unref (_message);
00692 }
00693 
00694 
00695 static GHashTable* unity_protocol_lens_service_proxy_update_preview_property_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00696        GDBusMessage *_reply_message;
00697        GVariant *_reply;
00698        GVariantIter _reply_iter;
00699        GHashTable* _result;
00700        GVariant* _tmp31_;
00701        GHashTable* _tmp32_;
00702        GVariantIter _tmp33_;
00703        GVariant* _tmp34_;
00704        GVariant* _tmp35_;
00705        _reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
00706        if (!_reply_message) {
00707               return NULL;
00708        }
00709        if (g_dbus_message_to_gerror (_reply_message, error)) {
00710               g_object_unref (_reply_message);
00711               return NULL;
00712        }
00713        _reply = g_dbus_message_get_body (_reply_message);
00714        g_variant_iter_init (&_reply_iter, _reply);
00715        _tmp31_ = g_variant_iter_next_value (&_reply_iter);
00716        _tmp32_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
00717        g_variant_iter_init (&_tmp33_, _tmp31_);
00718        while (g_variant_iter_loop (&_tmp33_, "{?*}", &_tmp34_, &_tmp35_)) {
00719               g_hash_table_insert (_tmp32_, g_variant_dup_string (_tmp34_, NULL), g_variant_get_variant (_tmp35_));
00720        }
00721        _result = _tmp32_;
00722        g_variant_unref (_tmp31_);
00723        g_object_unref (_reply_message);
00724        return _result;
00725 }
00726 
00727 
00728 static void unity_protocol_lens_service_proxy_search_async (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00729        GDBusMessage *_message;
00730        GVariant *_arguments;
00731        GVariantBuilder _arguments_builder;
00732        GVariantBuilder _tmp36_;
00733        GHashTableIter _tmp37_;
00734        gpointer _tmp38_;
00735        gpointer _tmp39_;
00736        G_IO_ERROR;
00737        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.canonical.Unity.Lens", "Search");
00738        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
00739        g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (search_string));
00740        g_hash_table_iter_init (&_tmp37_, hints);
00741        g_variant_builder_init (&_tmp36_, G_VARIANT_TYPE ("a{sv}"));
00742        while (g_hash_table_iter_next (&_tmp37_, &_tmp38_, &_tmp39_)) {
00743               gchar* _key;
00744               GVariant* _value;
00745               _key = (gchar*) _tmp38_;
00746               _value = (GVariant*) _tmp39_;
00747               g_variant_builder_add (&_tmp36_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
00748        }
00749        g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp36_));
00750        _arguments = g_variant_builder_end (&_arguments_builder);
00751        g_dbus_message_set_body (_message, _arguments);
00752        g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
00753        g_object_unref (_message);
00754 }
00755 
00756 
00757 static GHashTable* unity_protocol_lens_service_proxy_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00758        GDBusMessage *_reply_message;
00759        GVariant *_reply;
00760        GVariantIter _reply_iter;
00761        GHashTable* _result;
00762        GVariant* _tmp40_;
00763        GHashTable* _tmp41_;
00764        GVariantIter _tmp42_;
00765        GVariant* _tmp43_;
00766        GVariant* _tmp44_;
00767        _reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
00768        if (!_reply_message) {
00769               return NULL;
00770        }
00771        if (g_dbus_message_to_gerror (_reply_message, error)) {
00772               g_object_unref (_reply_message);
00773               return NULL;
00774        }
00775        _reply = g_dbus_message_get_body (_reply_message);
00776        g_variant_iter_init (&_reply_iter, _reply);
00777        _tmp40_ = g_variant_iter_next_value (&_reply_iter);
00778        _tmp41_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
00779        g_variant_iter_init (&_tmp42_, _tmp40_);
00780        while (g_variant_iter_loop (&_tmp42_, "{?*}", &_tmp43_, &_tmp44_)) {
00781               g_hash_table_insert (_tmp41_, g_variant_dup_string (_tmp43_, NULL), g_variant_get_variant (_tmp44_));
00782        }
00783        _result = _tmp41_;
00784        g_variant_unref (_tmp40_);
00785        g_object_unref (_reply_message);
00786        return _result;
00787 }
00788 
00789 
00790 static void unity_protocol_lens_service_proxy_global_search_async (UnityProtocolLensService* self, const gchar* search_string, GHashTable* hints, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00791        GDBusMessage *_message;
00792        GVariant *_arguments;
00793        GVariantBuilder _arguments_builder;
00794        GVariantBuilder _tmp45_;
00795        GHashTableIter _tmp46_;
00796        gpointer _tmp47_;
00797        gpointer _tmp48_;
00798        G_IO_ERROR;
00799        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.canonical.Unity.Lens", "GlobalSearch");
00800        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
00801        g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (search_string));
00802        g_hash_table_iter_init (&_tmp46_, hints);
00803        g_variant_builder_init (&_tmp45_, G_VARIANT_TYPE ("a{sv}"));
00804        while (g_hash_table_iter_next (&_tmp46_, &_tmp47_, &_tmp48_)) {
00805               gchar* _key;
00806               GVariant* _value;
00807               _key = (gchar*) _tmp47_;
00808               _value = (GVariant*) _tmp48_;
00809               g_variant_builder_add (&_tmp45_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
00810        }
00811        g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp45_));
00812        _arguments = g_variant_builder_end (&_arguments_builder);
00813        g_dbus_message_set_body (_message, _arguments);
00814        g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
00815        g_object_unref (_message);
00816 }
00817 
00818 
00819 static GHashTable* unity_protocol_lens_service_proxy_global_search_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00820        GDBusMessage *_reply_message;
00821        GVariant *_reply;
00822        GVariantIter _reply_iter;
00823        GHashTable* _result;
00824        GVariant* _tmp49_;
00825        GHashTable* _tmp50_;
00826        GVariantIter _tmp51_;
00827        GVariant* _tmp52_;
00828        GVariant* _tmp53_;
00829        _reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
00830        if (!_reply_message) {
00831               return NULL;
00832        }
00833        if (g_dbus_message_to_gerror (_reply_message, error)) {
00834               g_object_unref (_reply_message);
00835               return NULL;
00836        }
00837        _reply = g_dbus_message_get_body (_reply_message);
00838        g_variant_iter_init (&_reply_iter, _reply);
00839        _tmp49_ = g_variant_iter_next_value (&_reply_iter);
00840        _tmp50_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
00841        g_variant_iter_init (&_tmp51_, _tmp49_);
00842        while (g_variant_iter_loop (&_tmp51_, "{?*}", &_tmp52_, &_tmp53_)) {
00843               g_hash_table_insert (_tmp50_, g_variant_dup_string (_tmp52_, NULL), g_variant_get_variant (_tmp53_));
00844        }
00845        _result = _tmp50_;
00846        g_variant_unref (_tmp49_);
00847        g_object_unref (_reply_message);
00848        return _result;
00849 }
00850 
00851 
00852 static void unity_protocol_lens_service_proxy_update_filter_async (UnityProtocolLensService* self, const gchar* filter_name, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00853        GDBusMessage *_message;
00854        GVariant *_arguments;
00855        GVariantBuilder _arguments_builder;
00856        GVariantBuilder _tmp54_;
00857        GHashTableIter _tmp55_;
00858        gpointer _tmp56_;
00859        gpointer _tmp57_;
00860        G_IO_ERROR;
00861        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.canonical.Unity.Lens", "UpdateFilter");
00862        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
00863        g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (filter_name));
00864        g_hash_table_iter_init (&_tmp55_, properties);
00865        g_variant_builder_init (&_tmp54_, G_VARIANT_TYPE ("a{sv}"));
00866        while (g_hash_table_iter_next (&_tmp55_, &_tmp56_, &_tmp57_)) {
00867               gchar* _key;
00868               GVariant* _value;
00869               _key = (gchar*) _tmp56_;
00870               _value = (GVariant*) _tmp57_;
00871               g_variant_builder_add (&_tmp54_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
00872        }
00873        g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp54_));
00874        _arguments = g_variant_builder_end (&_arguments_builder);
00875        g_dbus_message_set_body (_message, _arguments);
00876        g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
00877        g_object_unref (_message);
00878 }
00879 
00880 
00881 static void unity_protocol_lens_service_proxy_update_filter_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00882        GDBusMessage *_reply_message;
00883        _reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
00884        if (!_reply_message) {
00885               return;
00886        }
00887        if (g_dbus_message_to_gerror (_reply_message, error)) {
00888               g_object_unref (_reply_message);
00889               return;
00890        }
00891        g_object_unref (_reply_message);
00892 }
00893 
00894 
00895 static void unity_protocol_lens_service_proxy_set_view_type_async (UnityProtocolLensService* self, guint view_type, GAsyncReadyCallback _callback_, gpointer _user_data_) {
00896        GDBusMessage *_message;
00897        GVariant *_arguments;
00898        GVariantBuilder _arguments_builder;
00899        G_IO_ERROR;
00900        _message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "com.canonical.Unity.Lens", "SetViewType");
00901        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
00902        g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (view_type));
00903        _arguments = g_variant_builder_end (&_arguments_builder);
00904        g_dbus_message_set_body (_message, _arguments);
00905        g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
00906        g_object_unref (_message);
00907 }
00908 
00909 
00910 static void unity_protocol_lens_service_proxy_set_view_type_finish (UnityProtocolLensService* self, GAsyncResult* _res_, GError** error) {
00911        GDBusMessage *_reply_message;
00912        _reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
00913        if (!_reply_message) {
00914               return;
00915        }
00916        if (g_dbus_message_to_gerror (_reply_message, error)) {
00917               g_object_unref (_reply_message);
00918               return;
00919        }
00920        g_object_unref (_reply_message);
00921 }
00922 
00923 
00924 static void unity_protocol_lens_service_proxy_unity_protocol_lens_service_interface_init (UnityProtocolLensServiceIface* iface) {
00925        iface->info_request = unity_protocol_lens_service_proxy_info_request_async;
00926        iface->info_request_finish = unity_protocol_lens_service_proxy_info_request_finish;
00927        iface->activate = unity_protocol_lens_service_proxy_activate_async;
00928        iface->activate_finish = unity_protocol_lens_service_proxy_activate_finish;
00929        iface->update_preview_property = unity_protocol_lens_service_proxy_update_preview_property_async;
00930        iface->update_preview_property_finish = unity_protocol_lens_service_proxy_update_preview_property_finish;
00931        iface->search = unity_protocol_lens_service_proxy_search_async;
00932        iface->search_finish = unity_protocol_lens_service_proxy_search_finish;
00933        iface->global_search = unity_protocol_lens_service_proxy_global_search_async;
00934        iface->global_search_finish = unity_protocol_lens_service_proxy_global_search_finish;
00935        iface->update_filter = unity_protocol_lens_service_proxy_update_filter_async;
00936        iface->update_filter_finish = unity_protocol_lens_service_proxy_update_filter_finish;
00937        iface->set_view_type = unity_protocol_lens_service_proxy_set_view_type_async;
00938        iface->set_view_type_finish = unity_protocol_lens_service_proxy_set_view_type_finish;
00939 }
00940 
00941 
00942 static void _dbus_unity_protocol_lens_service_info_request (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
00943        GVariantIter _arguments_iter;
00944        g_variant_iter_init (&_arguments_iter, parameters);
00945        unity_protocol_lens_service_info_request (self, (GAsyncReadyCallback) _dbus_unity_protocol_lens_service_info_request_ready, invocation);
00946 }
00947 
00948 
00949 static void _dbus_unity_protocol_lens_service_info_request_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
00950        GDBusMethodInvocation * invocation;
00951        GError* error = NULL;
00952        GDBusMessage* _reply_message;
00953        GVariant* _reply;
00954        GVariantBuilder _reply_builder;
00955        invocation = _user_data_;
00956        unity_protocol_lens_service_info_request_finish ((UnityProtocolLensService*) source_object, _res_, &error);
00957        if (error) {
00958               g_dbus_method_invocation_return_gerror (invocation, error);
00959               return;
00960        }
00961        _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
00962        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
00963        _reply = g_variant_builder_end (&_reply_builder);
00964        g_dbus_message_set_body (_reply_message, _reply);
00965        g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
00966        g_object_unref (invocation);
00967        g_object_unref (_reply_message);
00968 }
00969 
00970 
00971 static void _dbus_unity_protocol_lens_service_activate (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
00972        GVariantIter _arguments_iter;
00973        gchar* uri = NULL;
00974        GVariant* _tmp58_;
00975        guint action_type = 0U;
00976        GVariant* _tmp59_;
00977        g_variant_iter_init (&_arguments_iter, parameters);
00978        _tmp58_ = g_variant_iter_next_value (&_arguments_iter);
00979        uri = g_variant_dup_string (_tmp58_, NULL);
00980        g_variant_unref (_tmp58_);
00981        _tmp59_ = g_variant_iter_next_value (&_arguments_iter);
00982        action_type = g_variant_get_uint32 (_tmp59_);
00983        g_variant_unref (_tmp59_);
00984        unity_protocol_lens_service_activate (self, uri, action_type, (GAsyncReadyCallback) _dbus_unity_protocol_lens_service_activate_ready, invocation);
00985        _g_free0 (uri);
00986 }
00987 
00988 
00989 static void _dbus_unity_protocol_lens_service_activate_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
00990        GDBusMethodInvocation * invocation;
00991        GError* error = NULL;
00992        GDBusMessage* _reply_message;
00993        GVariant* _reply;
00994        GVariantBuilder _reply_builder;
00995        UnityProtocolActivationReplyRaw result = {0};
00996        GVariantBuilder _tmp60_;
00997        GVariantBuilder _tmp61_;
00998        GHashTableIter _tmp62_;
00999        gpointer _tmp63_;
01000        gpointer _tmp64_;
01001        invocation = _user_data_;
01002        unity_protocol_lens_service_activate_finish ((UnityProtocolLensService*) source_object, _res_, &result, &error);
01003        if (error) {
01004               g_dbus_method_invocation_return_gerror (invocation, error);
01005               return;
01006        }
01007        _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
01008        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
01009        g_variant_builder_init (&_tmp60_, G_VARIANT_TYPE_TUPLE);
01010        g_variant_builder_add_value (&_tmp60_, g_variant_new_string (result.uri));
01011        g_variant_builder_add_value (&_tmp60_, g_variant_new_uint32 (result.handled));
01012        g_hash_table_iter_init (&_tmp62_, result.hints);
01013        g_variant_builder_init (&_tmp61_, G_VARIANT_TYPE ("a{sv}"));
01014        while (g_hash_table_iter_next (&_tmp62_, &_tmp63_, &_tmp64_)) {
01015               gchar* _key;
01016               GVariant* _value;
01017               _key = (gchar*) _tmp63_;
01018               _value = (GVariant*) _tmp64_;
01019               g_variant_builder_add (&_tmp61_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
01020        }
01021        g_variant_builder_add_value (&_tmp60_, g_variant_builder_end (&_tmp61_));
01022        g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp60_));
01023        unity_protocol_activation_reply_raw_destroy (&result);
01024        _reply = g_variant_builder_end (&_reply_builder);
01025        g_dbus_message_set_body (_reply_message, _reply);
01026        g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
01027        g_object_unref (invocation);
01028        g_object_unref (_reply_message);
01029 }
01030 
01031 
01032 static void _dbus_unity_protocol_lens_service_update_preview_property (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
01033        GVariantIter _arguments_iter;
01034        gchar* uri = NULL;
01035        GVariant* _tmp65_;
01036        GHashTable* values = NULL;
01037        GVariant* _tmp66_;
01038        GHashTable* _tmp67_;
01039        GVariantIter _tmp68_;
01040        GVariant* _tmp69_;
01041        GVariant* _tmp70_;
01042        g_variant_iter_init (&_arguments_iter, parameters);
01043        _tmp65_ = g_variant_iter_next_value (&_arguments_iter);
01044        uri = g_variant_dup_string (_tmp65_, NULL);
01045        g_variant_unref (_tmp65_);
01046        _tmp66_ = g_variant_iter_next_value (&_arguments_iter);
01047        _tmp67_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
01048        g_variant_iter_init (&_tmp68_, _tmp66_);
01049        while (g_variant_iter_loop (&_tmp68_, "{?*}", &_tmp69_, &_tmp70_)) {
01050               g_hash_table_insert (_tmp67_, g_variant_dup_string (_tmp69_, NULL), g_variant_get_variant (_tmp70_));
01051        }
01052        values = _tmp67_;
01053        g_variant_unref (_tmp66_);
01054        unity_protocol_lens_service_update_preview_property (self, uri, values, (GAsyncReadyCallback) _dbus_unity_protocol_lens_service_update_preview_property_ready, invocation);
01055        _g_free0 (uri);
01056        _g_hash_table_unref0 (values);
01057 }
01058 
01059 
01060 static void _dbus_unity_protocol_lens_service_update_preview_property_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
01061        GDBusMethodInvocation * invocation;
01062        GError* error = NULL;
01063        GDBusMessage* _reply_message;
01064        GVariant* _reply;
01065        GVariantBuilder _reply_builder;
01066        GHashTable* result;
01067        GVariantBuilder _tmp71_;
01068        GHashTableIter _tmp72_;
01069        gpointer _tmp73_;
01070        gpointer _tmp74_;
01071        invocation = _user_data_;
01072        result = unity_protocol_lens_service_update_preview_property_finish ((UnityProtocolLensService*) source_object, _res_, &error);
01073        if (error) {
01074               g_dbus_method_invocation_return_gerror (invocation, error);
01075               return;
01076        }
01077        _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
01078        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
01079        g_hash_table_iter_init (&_tmp72_, result);
01080        g_variant_builder_init (&_tmp71_, G_VARIANT_TYPE ("a{sv}"));
01081        while (g_hash_table_iter_next (&_tmp72_, &_tmp73_, &_tmp74_)) {
01082               gchar* _key;
01083               GVariant* _value;
01084               _key = (gchar*) _tmp73_;
01085               _value = (GVariant*) _tmp74_;
01086               g_variant_builder_add (&_tmp71_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
01087        }
01088        g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp71_));
01089        _g_hash_table_unref0 (result);
01090        _reply = g_variant_builder_end (&_reply_builder);
01091        g_dbus_message_set_body (_reply_message, _reply);
01092        g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
01093        g_object_unref (invocation);
01094        g_object_unref (_reply_message);
01095 }
01096 
01097 
01098 static void _dbus_unity_protocol_lens_service_search (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
01099        GVariantIter _arguments_iter;
01100        gchar* search_string = NULL;
01101        GVariant* _tmp75_;
01102        GHashTable* hints = NULL;
01103        GVariant* _tmp76_;
01104        GHashTable* _tmp77_;
01105        GVariantIter _tmp78_;
01106        GVariant* _tmp79_;
01107        GVariant* _tmp80_;
01108        g_variant_iter_init (&_arguments_iter, parameters);
01109        _tmp75_ = g_variant_iter_next_value (&_arguments_iter);
01110        search_string = g_variant_dup_string (_tmp75_, NULL);
01111        g_variant_unref (_tmp75_);
01112        _tmp76_ = g_variant_iter_next_value (&_arguments_iter);
01113        _tmp77_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
01114        g_variant_iter_init (&_tmp78_, _tmp76_);
01115        while (g_variant_iter_loop (&_tmp78_, "{?*}", &_tmp79_, &_tmp80_)) {
01116               g_hash_table_insert (_tmp77_, g_variant_dup_string (_tmp79_, NULL), g_variant_get_variant (_tmp80_));
01117        }
01118        hints = _tmp77_;
01119        g_variant_unref (_tmp76_);
01120        unity_protocol_lens_service_search (self, search_string, hints, (GAsyncReadyCallback) _dbus_unity_protocol_lens_service_search_ready, invocation);
01121        _g_free0 (search_string);
01122        _g_hash_table_unref0 (hints);
01123 }
01124 
01125 
01126 static void _dbus_unity_protocol_lens_service_search_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
01127        GDBusMethodInvocation * invocation;
01128        GError* error = NULL;
01129        GDBusMessage* _reply_message;
01130        GVariant* _reply;
01131        GVariantBuilder _reply_builder;
01132        GHashTable* result;
01133        GVariantBuilder _tmp81_;
01134        GHashTableIter _tmp82_;
01135        gpointer _tmp83_;
01136        gpointer _tmp84_;
01137        invocation = _user_data_;
01138        result = unity_protocol_lens_service_search_finish ((UnityProtocolLensService*) source_object, _res_, &error);
01139        if (error) {
01140               g_dbus_method_invocation_return_gerror (invocation, error);
01141               return;
01142        }
01143        _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
01144        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
01145        g_hash_table_iter_init (&_tmp82_, result);
01146        g_variant_builder_init (&_tmp81_, G_VARIANT_TYPE ("a{sv}"));
01147        while (g_hash_table_iter_next (&_tmp82_, &_tmp83_, &_tmp84_)) {
01148               gchar* _key;
01149               GVariant* _value;
01150               _key = (gchar*) _tmp83_;
01151               _value = (GVariant*) _tmp84_;
01152               g_variant_builder_add (&_tmp81_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
01153        }
01154        g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp81_));
01155        _g_hash_table_unref0 (result);
01156        _reply = g_variant_builder_end (&_reply_builder);
01157        g_dbus_message_set_body (_reply_message, _reply);
01158        g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
01159        g_object_unref (invocation);
01160        g_object_unref (_reply_message);
01161 }
01162 
01163 
01164 static void _dbus_unity_protocol_lens_service_global_search (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
01165        GVariantIter _arguments_iter;
01166        gchar* search_string = NULL;
01167        GVariant* _tmp85_;
01168        GHashTable* hints = NULL;
01169        GVariant* _tmp86_;
01170        GHashTable* _tmp87_;
01171        GVariantIter _tmp88_;
01172        GVariant* _tmp89_;
01173        GVariant* _tmp90_;
01174        g_variant_iter_init (&_arguments_iter, parameters);
01175        _tmp85_ = g_variant_iter_next_value (&_arguments_iter);
01176        search_string = g_variant_dup_string (_tmp85_, NULL);
01177        g_variant_unref (_tmp85_);
01178        _tmp86_ = g_variant_iter_next_value (&_arguments_iter);
01179        _tmp87_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
01180        g_variant_iter_init (&_tmp88_, _tmp86_);
01181        while (g_variant_iter_loop (&_tmp88_, "{?*}", &_tmp89_, &_tmp90_)) {
01182               g_hash_table_insert (_tmp87_, g_variant_dup_string (_tmp89_, NULL), g_variant_get_variant (_tmp90_));
01183        }
01184        hints = _tmp87_;
01185        g_variant_unref (_tmp86_);
01186        unity_protocol_lens_service_global_search (self, search_string, hints, (GAsyncReadyCallback) _dbus_unity_protocol_lens_service_global_search_ready, invocation);
01187        _g_free0 (search_string);
01188        _g_hash_table_unref0 (hints);
01189 }
01190 
01191 
01192 static void _dbus_unity_protocol_lens_service_global_search_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
01193        GDBusMethodInvocation * invocation;
01194        GError* error = NULL;
01195        GDBusMessage* _reply_message;
01196        GVariant* _reply;
01197        GVariantBuilder _reply_builder;
01198        GHashTable* result;
01199        GVariantBuilder _tmp91_;
01200        GHashTableIter _tmp92_;
01201        gpointer _tmp93_;
01202        gpointer _tmp94_;
01203        invocation = _user_data_;
01204        result = unity_protocol_lens_service_global_search_finish ((UnityProtocolLensService*) source_object, _res_, &error);
01205        if (error) {
01206               g_dbus_method_invocation_return_gerror (invocation, error);
01207               return;
01208        }
01209        _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
01210        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
01211        g_hash_table_iter_init (&_tmp92_, result);
01212        g_variant_builder_init (&_tmp91_, G_VARIANT_TYPE ("a{sv}"));
01213        while (g_hash_table_iter_next (&_tmp92_, &_tmp93_, &_tmp94_)) {
01214               gchar* _key;
01215               GVariant* _value;
01216               _key = (gchar*) _tmp93_;
01217               _value = (GVariant*) _tmp94_;
01218               g_variant_builder_add (&_tmp91_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
01219        }
01220        g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp91_));
01221        _g_hash_table_unref0 (result);
01222        _reply = g_variant_builder_end (&_reply_builder);
01223        g_dbus_message_set_body (_reply_message, _reply);
01224        g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
01225        g_object_unref (invocation);
01226        g_object_unref (_reply_message);
01227 }
01228 
01229 
01230 static void _dbus_unity_protocol_lens_service_update_filter (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
01231        GVariantIter _arguments_iter;
01232        gchar* filter_name = NULL;
01233        GVariant* _tmp95_;
01234        GHashTable* properties = NULL;
01235        GVariant* _tmp96_;
01236        GHashTable* _tmp97_;
01237        GVariantIter _tmp98_;
01238        GVariant* _tmp99_;
01239        GVariant* _tmp100_;
01240        g_variant_iter_init (&_arguments_iter, parameters);
01241        _tmp95_ = g_variant_iter_next_value (&_arguments_iter);
01242        filter_name = g_variant_dup_string (_tmp95_, NULL);
01243        g_variant_unref (_tmp95_);
01244        _tmp96_ = g_variant_iter_next_value (&_arguments_iter);
01245        _tmp97_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
01246        g_variant_iter_init (&_tmp98_, _tmp96_);
01247        while (g_variant_iter_loop (&_tmp98_, "{?*}", &_tmp99_, &_tmp100_)) {
01248               g_hash_table_insert (_tmp97_, g_variant_dup_string (_tmp99_, NULL), g_variant_get_variant (_tmp100_));
01249        }
01250        properties = _tmp97_;
01251        g_variant_unref (_tmp96_);
01252        unity_protocol_lens_service_update_filter (self, filter_name, properties, (GAsyncReadyCallback) _dbus_unity_protocol_lens_service_update_filter_ready, invocation);
01253        _g_free0 (filter_name);
01254        _g_hash_table_unref0 (properties);
01255 }
01256 
01257 
01258 static void _dbus_unity_protocol_lens_service_update_filter_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
01259        GDBusMethodInvocation * invocation;
01260        GError* error = NULL;
01261        GDBusMessage* _reply_message;
01262        GVariant* _reply;
01263        GVariantBuilder _reply_builder;
01264        invocation = _user_data_;
01265        unity_protocol_lens_service_update_filter_finish ((UnityProtocolLensService*) source_object, _res_, &error);
01266        if (error) {
01267               g_dbus_method_invocation_return_gerror (invocation, error);
01268               return;
01269        }
01270        _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
01271        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
01272        _reply = g_variant_builder_end (&_reply_builder);
01273        g_dbus_message_set_body (_reply_message, _reply);
01274        g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
01275        g_object_unref (invocation);
01276        g_object_unref (_reply_message);
01277 }
01278 
01279 
01280 static void _dbus_unity_protocol_lens_service_set_view_type (UnityProtocolLensService* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
01281        GVariantIter _arguments_iter;
01282        guint view_type = 0U;
01283        GVariant* _tmp101_;
01284        g_variant_iter_init (&_arguments_iter, parameters);
01285        _tmp101_ = g_variant_iter_next_value (&_arguments_iter);
01286        view_type = g_variant_get_uint32 (_tmp101_);
01287        g_variant_unref (_tmp101_);
01288        unity_protocol_lens_service_set_view_type (self, view_type, (GAsyncReadyCallback) _dbus_unity_protocol_lens_service_set_view_type_ready, invocation);
01289 }
01290 
01291 
01292 static void _dbus_unity_protocol_lens_service_set_view_type_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
01293        GDBusMethodInvocation * invocation;
01294        GError* error = NULL;
01295        GDBusMessage* _reply_message;
01296        GVariant* _reply;
01297        GVariantBuilder _reply_builder;
01298        invocation = _user_data_;
01299        unity_protocol_lens_service_set_view_type_finish ((UnityProtocolLensService*) source_object, _res_, &error);
01300        if (error) {
01301               g_dbus_method_invocation_return_gerror (invocation, error);
01302               return;
01303        }
01304        _reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
01305        g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
01306        _reply = g_variant_builder_end (&_reply_builder);
01307        g_dbus_message_set_body (_reply_message, _reply);
01308        g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
01309        g_object_unref (invocation);
01310        g_object_unref (_reply_message);
01311 }
01312 
01313 
01314 static void unity_protocol_lens_service_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) {
01315        gpointer* data;
01316        gpointer object;
01317        data = user_data;
01318        object = data[0];
01319        if (strcmp (method_name, "InfoRequest") == 0) {
01320               _dbus_unity_protocol_lens_service_info_request (object, parameters, invocation);
01321        } else if (strcmp (method_name, "Activate") == 0) {
01322               _dbus_unity_protocol_lens_service_activate (object, parameters, invocation);
01323        } else if (strcmp (method_name, "UpdatePreviewProperty") == 0) {
01324               _dbus_unity_protocol_lens_service_update_preview_property (object, parameters, invocation);
01325        } else if (strcmp (method_name, "Search") == 0) {
01326               _dbus_unity_protocol_lens_service_search (object, parameters, invocation);
01327        } else if (strcmp (method_name, "GlobalSearch") == 0) {
01328               _dbus_unity_protocol_lens_service_global_search (object, parameters, invocation);
01329        } else if (strcmp (method_name, "UpdateFilter") == 0) {
01330               _dbus_unity_protocol_lens_service_update_filter (object, parameters, invocation);
01331        } else if (strcmp (method_name, "SetViewType") == 0) {
01332               _dbus_unity_protocol_lens_service_set_view_type (object, parameters, invocation);
01333        } else {
01334               g_object_unref (invocation);
01335        }
01336 }
01337 
01338 
01339 static GVariant* unity_protocol_lens_service_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
01340        gpointer* data;
01341        gpointer object;
01342        data = user_data;
01343        object = data[0];
01344        return NULL;
01345 }
01346 
01347 
01348 static gboolean unity_protocol_lens_service_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
01349        gpointer* data;
01350        gpointer object;
01351        data = user_data;
01352        object = data[0];
01353        return FALSE;
01354 }
01355 
01356 
01357 static void _dbus_unity_protocol_lens_service_changed (GObject* _sender, UnityProtocolLensInfo* lens_info, gpointer* _data) {
01358        GDBusConnection * _connection;
01359        const gchar * _path;
01360        GVariant *_arguments;
01361        GVariantBuilder _arguments_builder;
01362        GVariantBuilder _tmp102_;
01363        GVariantBuilder _tmp103_;
01364        GHashTableIter _tmp104_;
01365        gpointer _tmp105_;
01366        gpointer _tmp106_;
01367        _connection = _data[1];
01368        _path = _data[2];
01369        g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
01370        g_variant_builder_init (&_tmp102_, G_VARIANT_TYPE_TUPLE);
01371        g_variant_builder_add_value (&_tmp102_, g_variant_new_string ((*lens_info).dbus_path));
01372        g_variant_builder_add_value (&_tmp102_, g_variant_new_boolean ((*lens_info).search_in_global));
01373        g_variant_builder_add_value (&_tmp102_, g_variant_new_boolean ((*lens_info).visible));
01374        g_variant_builder_add_value (&_tmp102_, g_variant_new_string ((*lens_info).search_hint));
01375        g_variant_builder_add_value (&_tmp102_, g_variant_new_string ((*lens_info).private_connection_name));
01376        g_variant_builder_add_value (&_tmp102_, g_variant_new_string ((*lens_info).results_model_name));
01377        g_variant_builder_add_value (&_tmp102_, g_variant_new_string ((*lens_info).global_results_model_name));
01378        g_variant_builder_add_value (&_tmp102_, g_variant_new_string ((*lens_info).categories_model_name));
01379        g_variant_builder_add_value (&_tmp102_, g_variant_new_string ((*lens_info).filters_model_name));
01380        g_hash_table_iter_init (&_tmp104_, (*lens_info).hints);
01381        g_variant_builder_init (&_tmp103_, G_VARIANT_TYPE ("a{sv}"));
01382        while (g_hash_table_iter_next (&_tmp104_, &_tmp105_, &_tmp106_)) {
01383               gchar* _key;
01384               GVariant* _value;
01385               _key = (gchar*) _tmp105_;
01386               _value = (GVariant*) _tmp106_;
01387               g_variant_builder_add (&_tmp103_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
01388        }
01389        g_variant_builder_add_value (&_tmp102_, g_variant_builder_end (&_tmp103_));
01390        g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp102_));
01391        _arguments = g_variant_builder_end (&_arguments_builder);
01392        g_dbus_connection_emit_signal (_connection, NULL, _path, "com.canonical.Unity.Lens", "Changed", _arguments, NULL);
01393 }
01394 
01395 
01396 guint unity_protocol_lens_service_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
01397        guint result;
01398        gpointer *data;
01399        data = g_new (gpointer, 3);
01400        data[0] = g_object_ref (object);
01401        data[1] = g_object_ref (connection);
01402        data[2] = g_strdup (path);
01403        result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_unity_protocol_lens_service_dbus_interface_info), &_unity_protocol_lens_service_dbus_interface_vtable, data, _unity_protocol_lens_service_unregister_object, error);
01404        if (!result) {
01405               return 0;
01406        }
01407        g_signal_connect (object, "changed", (GCallback) _dbus_unity_protocol_lens_service_changed, data);
01408        return result;
01409 }
01410 
01411 
01412 static void _unity_protocol_lens_service_unregister_object (gpointer user_data) {
01413        gpointer* data;
01414        data = user_data;
01415        g_signal_handlers_disconnect_by_func (data[0], _dbus_unity_protocol_lens_service_changed, data);
01416        g_object_unref (data[0]);
01417        g_object_unref (data[1]);
01418        g_free (data[2]);
01419        g_free (data);
01420 }
01421 
01422 
01423