]> git.0d.be Git - empathy.git/blob - src/empathy-status-icon.c
Add a func to activate any event
[empathy.git] / src / empathy-status-icon.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2007-2008 Collabora Ltd.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  * 
19  * Authors: Xavier Claessens <xclaesse@gmail.com>
20  */
21
22 #include <config.h>
23
24 #include <string.h>
25
26 #include <gtk/gtk.h>
27 #include <glade/glade.h>
28 #include <glib/gi18n.h>
29
30 #include <telepathy-glib/util.h>
31
32 #include <libempathy/empathy-utils.h>
33 #include <libempathy/empathy-idle.h>
34 #include <libempathy/empathy-contact-manager.h>
35 #include <libempathy/empathy-dispatcher.h>
36 #include <libempathy/empathy-tp-chat.h>
37 #include <libempathy/empathy-tp-group.h>
38
39 #include <libempathy-gtk/empathy-presence-chooser.h>
40 #include <libempathy-gtk/empathy-conf.h>
41 #include <libempathy-gtk/empathy-ui-utils.h>
42 #include <libempathy-gtk/empathy-accounts-dialog.h>
43 #include <libempathy-gtk/empathy-images.h>
44 #include <libempathy-gtk/empathy-new-message-dialog.h>
45 #include <libempathy-gtk/empathy-contact-dialogs.h>
46
47 #include "empathy-status-icon.h"
48 #include "empathy-preferences.h"
49
50 #define DEBUG_FLAG EMPATHY_DEBUG_DISPATCHER
51 #include <libempathy/empathy-debug.h>
52
53 /* Number of ms to wait when blinking */
54 #define BLINK_TIMEOUT 500
55
56 typedef struct _StatusIconEvent StatusIconEvent;
57
58 #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyStatusIcon)
59 typedef struct {
60         GtkStatusIcon      *icon;
61         EmpathyIdle        *idle;
62         MissionControl     *mc;
63         EmpathyDispatcher  *dispatcher;
64         EmpathyContactManager *contact_manager;
65         GSList             *events;
66         gboolean            showing_event_icon;
67         guint               blink_timeout;
68         gpointer            token;
69
70         GtkWindow          *window;
71         GtkWidget          *popup_menu;
72         GtkWidget          *show_window_item;
73         GtkWidget          *message_item;
74         GtkWidget          *status_item;
75 } EmpathyStatusIconPriv;
76
77 typedef void (*StatusIconEventFunc) (EmpathyStatusIcon *icon,
78                                      gpointer           user_data);
79
80 struct _StatusIconEvent {
81         gchar               *icon_name;
82         gchar               *message;
83         StatusIconEventFunc  func;
84         gpointer             user_data;
85 };
86
87 G_DEFINE_TYPE (EmpathyStatusIcon, empathy_status_icon, G_TYPE_OBJECT);
88
89 static void
90 status_icon_event_free (StatusIconEvent *event)
91 {
92         g_free (event->icon_name);
93         g_free (event->message);
94         g_slice_free (StatusIconEvent, event);
95 }
96
97 static void
98 status_icon_set_visibility (EmpathyStatusIcon *icon,
99                             gboolean           visible,
100                             gboolean           store)
101 {
102         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
103
104         if (store) {
105                 empathy_conf_set_bool (empathy_conf_get (),
106                                        EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN, !visible);
107         }
108
109         if (!visible) {
110                 empathy_window_iconify (priv->window, priv->icon);
111         } else {
112                 GList *accounts;
113
114                 empathy_window_present (GTK_WINDOW (priv->window), TRUE);
115         
116                 /* Show the accounts dialog if there is no enabled accounts */
117                 accounts = mc_accounts_list_by_enabled (TRUE);
118                 if (accounts) {
119                         mc_accounts_list_free (accounts);
120                 } else {
121                         DEBUG ("No enabled account, Showing account dialog");
122                         empathy_accounts_dialog_show (GTK_WINDOW (priv->window));
123                 }
124         }
125 }
126
127 static void
128 status_icon_notify_visibility_cb (EmpathyConf *conf,
129                                   const gchar *key,
130                                   gpointer     user_data)
131 {
132         EmpathyStatusIcon *icon = user_data;
133         gboolean           hidden = FALSE;
134
135         if (empathy_conf_get_bool (conf, key, &hidden)) {
136                 status_icon_set_visibility (icon, !hidden, FALSE);
137         }
138 }
139
140 static void
141 status_icon_toggle_visibility (EmpathyStatusIcon *icon)
142 {
143         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
144         gboolean               visible;
145
146         visible = gtk_window_is_active (priv->window);
147         status_icon_set_visibility (icon, !visible, TRUE);
148 }
149
150 static void
151 status_icon_update_tooltip (EmpathyStatusIcon *icon)
152 {
153         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
154         const gchar           *tooltip = NULL;
155
156         if (priv->events) {
157                 tooltip = ((StatusIconEvent*)priv->events->data)->message;
158         }
159
160         if (!tooltip) {
161                 tooltip = empathy_idle_get_status (priv->idle);
162         }
163
164         gtk_status_icon_set_tooltip (priv->icon, tooltip);      
165 }
166
167 static void
168 status_icon_update_icon (EmpathyStatusIcon *icon)
169 {
170         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
171         const gchar           *icon_name;
172
173         if (priv->events && priv->showing_event_icon) {
174                 icon_name = ((StatusIconEvent*)priv->events->data)->icon_name;
175         } else {
176                 McPresence state;
177
178                 state = empathy_idle_get_state (priv->idle);
179                 icon_name = empathy_icon_name_for_presence (state);
180         }
181
182         gtk_status_icon_set_from_icon_name (priv->icon, icon_name);
183 }
184
185 static void
186 status_icon_idle_notify_cb (EmpathyStatusIcon *icon)
187 {
188         status_icon_update_icon (icon);
189         status_icon_update_tooltip (icon);
190 }
191
192 static gboolean
193 status_icon_delete_event_cb (GtkWidget         *widget,
194                              GdkEvent          *event,
195                              EmpathyStatusIcon *icon)
196 {
197         status_icon_set_visibility (icon, FALSE, TRUE);
198         return TRUE;
199 }
200
201 static void
202 status_icon_event_activate (EmpathyStatusIcon *icon,
203                             StatusIconEvent   *event)
204 {
205         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
206
207         if (event->func) {
208                 event->func (icon, event->user_data);
209         }
210
211         priv->events = g_slist_remove (priv->events, event);
212         status_icon_event_free (event);
213         status_icon_update_tooltip (icon);
214         status_icon_update_icon (icon);
215
216         if (!priv->events && priv->blink_timeout) {
217                 g_source_remove (priv->blink_timeout);
218                 priv->blink_timeout = 0;
219         }
220 }
221
222 static void
223 status_icon_activate_cb (GtkStatusIcon     *status_icon,
224                          EmpathyStatusIcon *icon)
225 {
226         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
227
228         DEBUG ("Activated: %s", priv->events ? "event" : "toggle");
229
230         if (priv->events) {
231                 status_icon_event_activate (icon, priv->events->data);
232         } else {
233                 status_icon_toggle_visibility (icon);
234         }
235 }
236
237 static void
238 status_icon_show_hide_window_cb (GtkWidget         *widget,
239                                  EmpathyStatusIcon *icon)
240 {
241         gboolean visible;
242
243         visible = gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (widget));
244         status_icon_set_visibility (icon, visible, TRUE);
245 }
246
247 static void
248 status_icon_new_message_cb (GtkWidget         *widget,
249                             EmpathyStatusIcon *icon)
250 {
251         empathy_new_message_dialog_show (NULL);
252 }
253
254 static void
255 status_icon_quit_cb (GtkWidget         *window,
256                      EmpathyStatusIcon *icon)
257 {
258         gtk_main_quit ();
259 }
260
261 static void
262 status_icon_popup_menu_cb (GtkStatusIcon     *status_icon,
263                            guint              button,
264                            guint              activate_time,
265                            EmpathyStatusIcon *icon)
266 {
267         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
268         GtkWidget             *submenu;
269         gboolean               show;
270
271         show = empathy_window_get_is_visible (GTK_WINDOW (priv->window));
272
273         g_signal_handlers_block_by_func (priv->show_window_item,
274                                          status_icon_show_hide_window_cb,
275                                          icon);
276         gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (priv->show_window_item),
277                                         show);
278         g_signal_handlers_unblock_by_func (priv->show_window_item,
279                                            status_icon_show_hide_window_cb,
280                                            icon);
281
282         submenu = empathy_presence_chooser_create_menu ();
283         gtk_menu_item_set_submenu (GTK_MENU_ITEM (priv->status_item),
284                                    submenu);
285
286         gtk_menu_popup (GTK_MENU (priv->popup_menu),
287                         NULL, NULL,
288                         gtk_status_icon_position_menu,
289                         priv->icon,
290                         button,
291                         activate_time);
292 }
293
294 static void
295 status_icon_create_menu (EmpathyStatusIcon *icon)
296 {
297         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
298         GladeXML              *glade;
299         gchar                 *filename;
300
301         filename = empathy_file_lookup ("empathy-status-icon.glade", "src");
302         glade = empathy_glade_get_file (filename,
303                                        "tray_menu",
304                                        NULL,
305                                        "tray_menu", &priv->popup_menu,
306                                        "tray_show_list", &priv->show_window_item,
307                                        "tray_new_message", &priv->message_item,
308                                        "tray_status", &priv->status_item,
309                                        NULL);
310         g_free (filename);
311
312         empathy_glade_connect (glade,
313                               icon,
314                               "tray_show_list", "toggled", status_icon_show_hide_window_cb,
315                               "tray_new_message", "activate", status_icon_new_message_cb,
316                               "tray_quit", "activate", status_icon_quit_cb,
317                               NULL);
318
319         g_object_unref (glade);
320 }
321
322 static gboolean
323 status_icon_blink_timeout_cb (EmpathyStatusIcon *icon)
324 {
325         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
326
327         priv->showing_event_icon = !priv->showing_event_icon;
328         status_icon_update_icon (icon);
329
330         return TRUE;
331 }
332
333 static void
334 status_icon_event_add (EmpathyStatusIcon   *icon,
335                        const gchar         *icon_name,
336                        const gchar         *message,
337                        StatusIconEventFunc  func,
338                        gpointer             user_data)
339 {
340         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
341         StatusIconEvent       *event;
342         gboolean               had_events;
343
344         DEBUG ("Adding event: %s", message);
345
346         event = g_slice_new (StatusIconEvent);
347         event->icon_name = g_strdup (icon_name);
348         event->message = g_strdup (message);
349         event->func = func;
350         event->user_data = user_data;
351
352         had_events = (priv->events != NULL);
353         priv->events = g_slist_append (priv->events, event);
354         if (!had_events) {
355                 priv->showing_event_icon = TRUE;
356                 status_icon_update_icon (icon);
357                 status_icon_update_tooltip (icon);
358
359                 if (!priv->blink_timeout) {
360                         priv->blink_timeout = g_timeout_add (BLINK_TIMEOUT,
361                                                              (GSourceFunc) status_icon_blink_timeout_cb,
362                                                              icon);
363                 }
364         }
365 }
366
367 static void
368 status_icon_channel_process (EmpathyStatusIcon *icon,
369                              gpointer           user_data)
370 {
371         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
372         TpChannel             *channel = TP_CHANNEL (user_data);
373
374         empathy_dispatcher_channel_process (priv->dispatcher, channel);
375         g_object_unref (channel);
376 }
377
378 static gboolean
379 status_icon_chat_unref_idle (gpointer user_data)
380 {
381         g_object_unref (user_data);
382         return FALSE;
383 }
384
385 static void
386 status_icon_chat_message_received_cb (EmpathyTpChat     *tp_chat,
387                                       EmpathyMessage    *message,
388                                       EmpathyStatusIcon *icon)
389 {
390         EmpathyContact  *sender;
391         gchar           *msg;
392         TpChannel       *channel;
393
394         g_idle_add (status_icon_chat_unref_idle, tp_chat);
395         g_signal_handlers_disconnect_by_func (tp_chat,
396                                               status_icon_chat_message_received_cb,
397                                               icon);
398
399         sender = empathy_message_get_sender (message);
400         msg = g_strdup_printf (_("New message from %s:\n%s"),
401                                empathy_contact_get_name (sender),
402                                empathy_message_get_body (message));
403
404         channel = empathy_tp_chat_get_channel (tp_chat);
405         status_icon_event_add (icon, EMPATHY_IMAGE_NEW_MESSAGE, msg,
406                                status_icon_channel_process,
407                                g_object_ref (channel));
408
409         g_free (msg);
410 }
411
412 static void
413 status_icon_filter_channel_cb (EmpathyDispatcher *dispatcher,
414                                TpChannel         *channel,
415                                EmpathyStatusIcon *icon)
416 {
417         gchar *channel_type;
418
419         g_object_get (channel, "channel-type", &channel_type, NULL);
420         if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT)) {
421                 EmpathyTpChat *tp_chat;
422
423                 tp_chat = empathy_tp_chat_new (channel);
424                 g_signal_connect (tp_chat, "message-received",
425                                   G_CALLBACK (status_icon_chat_message_received_cb),
426                                   icon);
427         }
428         else if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA)) {
429                 EmpathyTpGroup *tp_group;
430                 EmpathyContact *contact;
431                 gchar          *msg;
432
433                 tp_group = empathy_tp_group_new (channel);
434                 empathy_run_until_ready (tp_group);
435                 empathy_tp_group_get_invitation (tp_group, &contact);
436                 empathy_contact_run_until_ready (contact,
437                                                  EMPATHY_CONTACT_READY_NAME,
438                                                  NULL);
439
440                 msg = g_strdup_printf (_("Incoming call from %s"),
441                                        empathy_contact_get_name (contact));
442
443                 status_icon_event_add (icon, EMPATHY_IMAGE_VOIP, msg,
444                                        status_icon_channel_process,
445                                        g_object_ref (channel));
446
447                 g_free (msg);
448                 g_object_unref (contact);
449                 g_object_unref (tp_group);
450         }
451
452         g_free (channel_type);
453 }
454
455 static void
456 status_icon_tube_process (EmpathyStatusIcon *icon,
457                           gpointer           user_data)
458 {
459         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
460         EmpathyDispatcherTube *tube = (EmpathyDispatcherTube*) user_data;
461
462         if (tube->activatable) {
463                 empathy_dispatcher_tube_process (priv->dispatcher, tube);
464         } else {
465                 GtkWidget *dialog;
466                 gchar     *str;
467
468                 /* Tell the user that the tube can't be handled */
469                 str = g_strdup_printf (_("%s offered you an invitation, but "
470                                          "you don't have the needed external "
471                                          "application to handle it."),
472                                        empathy_contact_get_name (tube->initiator));
473
474                 dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
475                                                  GTK_MESSAGE_ERROR,
476                                                  GTK_BUTTONS_OK, str);
477                 gtk_window_set_title (GTK_WINDOW (dialog),
478                                       _("Invitation Error"));
479                 g_free (str);
480
481                 gtk_widget_show (dialog);
482                 g_signal_connect (dialog, "response",
483                                   G_CALLBACK (gtk_widget_destroy),
484                                   NULL);
485         }
486
487         empathy_dispatcher_tube_unref (tube);
488 }
489
490 static void
491 status_icon_filter_tube_cb (EmpathyDispatcher     *dispatcher,
492                             EmpathyDispatcherTube *tube,
493                             EmpathyStatusIcon     *icon)
494 {
495         const gchar *icon_name;
496         gchar       *msg;
497
498         empathy_contact_run_until_ready (tube->initiator,
499                                          EMPATHY_CONTACT_READY_NAME, NULL);
500
501         if (tube->activatable) {
502                 icon_name = GTK_STOCK_EXECUTE;
503                 msg = g_strdup_printf (_("%s is offering you an invitation. An external "
504                                          "application will be started to handle it."),
505                                        empathy_contact_get_name (tube->initiator));
506         } else {
507                 icon_name = GTK_STOCK_DIALOG_ERROR;
508                 msg = g_strdup_printf (_("%s is offering you an invitation, but "
509                                          "you don't have the needed external "
510                                          "application to handle it."),
511                                        empathy_contact_get_name (tube->initiator));
512         }
513
514         status_icon_event_add (icon, icon_name, msg, status_icon_tube_process,
515                                empathy_dispatcher_tube_ref (tube));
516
517         g_free (msg);
518 }
519
520 static void
521 status_icon_pending_subscribe (EmpathyStatusIcon *icon,
522                                gpointer           user_data)
523 {
524         EmpathyContact *contact = EMPATHY_CONTACT (user_data);
525
526         empathy_subscription_dialog_show (contact, NULL);
527         g_object_unref (contact);
528 }
529
530 static void
531 status_icon_pendings_changed_cb (EmpathyContactList *list,
532                                  EmpathyContact     *contact,
533                                  EmpathyContact     *actor,
534                                  guint               reason,
535                                  gchar              *message,
536                                  gboolean            is_pending,
537                                  EmpathyStatusIcon  *icon)
538 {
539         GString *str;
540
541         if (!is_pending) {
542                 /* FIXME: remove event if any */
543                 return;
544         }
545
546         DEBUG ("New local pending contact");
547
548         empathy_contact_run_until_ready (contact,
549                                          EMPATHY_CONTACT_READY_NAME,
550                                          NULL);
551
552         str = g_string_new (NULL);
553         g_string_printf (str, _("Subscription requested by %s"),
554                          empathy_contact_get_name (contact));   
555         if (!G_STR_EMPTY (message)) {
556                 g_string_append_printf (str, _("\nMessage: %s"), message);
557         }
558
559         status_icon_event_add (icon, GTK_STOCK_DIALOG_QUESTION, str->str,
560                                status_icon_pending_subscribe,
561                                g_object_ref (contact));
562
563         g_string_free (str, TRUE);
564 }
565
566 static void
567 status_icon_finalize (GObject *object)
568 {
569         EmpathyStatusIconPriv *priv = GET_PRIV (object);
570
571         if (priv->blink_timeout) {
572                 g_source_remove (priv->blink_timeout);
573         }
574
575         empathy_disconnect_account_status_changed (priv->token);
576         g_slist_foreach (priv->events, (GFunc) status_icon_event_free, NULL);
577         g_slist_free (priv->events);
578
579         g_object_unref (priv->icon);
580         g_object_unref (priv->idle);
581         g_object_unref (priv->mc);
582         g_object_unref (priv->contact_manager);
583 }
584
585 static void
586 empathy_status_icon_class_init (EmpathyStatusIconClass *klass)
587 {
588         GObjectClass *object_class = G_OBJECT_CLASS (klass);
589
590         object_class->finalize = status_icon_finalize;
591
592         g_type_class_add_private (object_class, sizeof (EmpathyStatusIconPriv));
593 }
594
595 static void
596 status_icon_status_changed_cb (MissionControl           *mc,
597                                TpConnectionStatus        status,
598                                McPresence                presence,
599                                TpConnectionStatusReason  reason,
600                                const gchar              *unique_name,
601                                EmpathyStatusIcon        *icon)
602 {
603         EmpathyStatusIconPriv *priv = GET_PRIV (icon);
604         GList                 *accounts, *l;
605         guint                  connection_status = 1;
606
607         /* Check for a connected account */
608         accounts = mc_accounts_list_by_enabled (TRUE);
609         for (l = accounts; l; l = l->next) {
610                 connection_status = mission_control_get_connection_status (priv->mc,
611                                                                            l->data,
612                                                                            NULL);
613                 if (connection_status == 0) {
614                         break;
615                 }
616         }
617         mc_accounts_list_free (accounts);
618
619         gtk_widget_set_sensitive (priv->message_item, connection_status == 0);
620 }
621
622 static void
623 empathy_status_icon_init (EmpathyStatusIcon *icon)
624 {
625         EmpathyStatusIconPriv *priv = G_TYPE_INSTANCE_GET_PRIVATE (icon,
626                 EMPATHY_TYPE_STATUS_ICON, EmpathyStatusIconPriv);
627
628         icon->priv = priv;
629         priv->icon = gtk_status_icon_new ();
630         priv->mc = empathy_mission_control_new ();
631         priv->idle = empathy_idle_new ();
632         priv->dispatcher = empathy_dispatcher_new ();
633         priv->contact_manager = empathy_contact_manager_new ();
634         priv->token = empathy_connect_to_account_status_changed (priv->mc,
635                         G_CALLBACK (status_icon_status_changed_cb),
636                         icon, NULL);
637
638         /* make icon listen and respond to MAIN_WINDOW_HIDDEN changes */
639         empathy_conf_notify_add (empathy_conf_get (),
640                                  EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN,
641                                  status_icon_notify_visibility_cb,
642                                  icon);
643
644         status_icon_create_menu (icon);
645         status_icon_idle_notify_cb (icon);
646
647         g_signal_connect_swapped (priv->idle, "notify",
648                                   G_CALLBACK (status_icon_idle_notify_cb),
649                                   icon);
650         g_signal_connect (priv->dispatcher, "filter-channel",
651                           G_CALLBACK (status_icon_filter_channel_cb),
652                           icon);
653         g_signal_connect (priv->dispatcher, "filter-tube",
654                           G_CALLBACK (status_icon_filter_tube_cb),
655                           icon);
656         g_signal_connect (priv->contact_manager, "pendings-changed",
657                           G_CALLBACK (status_icon_pendings_changed_cb),
658                           icon);
659         g_signal_connect (priv->icon, "activate",
660                           G_CALLBACK (status_icon_activate_cb),
661                           icon);
662         g_signal_connect (priv->icon, "popup-menu",
663                           G_CALLBACK (status_icon_popup_menu_cb),
664                           icon);
665 }
666
667 EmpathyStatusIcon *
668 empathy_status_icon_new (GtkWindow *window)
669 {
670         EmpathyStatusIconPriv *priv;
671         EmpathyStatusIcon     *icon;
672         gboolean               should_hide;
673
674         g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
675
676         icon = g_object_new (EMPATHY_TYPE_STATUS_ICON, NULL);
677         priv = GET_PRIV (icon);
678
679         priv->window = g_object_ref (window);
680
681         g_signal_connect (priv->window, "delete-event",
682                           G_CALLBACK (status_icon_delete_event_cb),
683                           icon);
684
685         empathy_conf_get_bool (empathy_conf_get (),
686                               EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN,
687                               &should_hide);
688
689         if (gtk_window_is_active (priv->window) == should_hide) {
690                 status_icon_set_visibility (icon, !should_hide, FALSE);
691         }
692
693         return icon;
694 }
695