aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/contacts-map/geo-utils.h
blob: aa1ebcc3eb12b6b67309874b4eaf0ce44449e32c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 *
 *
 * Authors:
 *      Cedric Bosdonnat <cedric.bosdonnat@free.fr>
 *
 * Copyright (C) 2009 Cedric Bosdonnat (http://cedric.bosdonnat.free.fr)
 *
 */

#include <gtk/gtk.h>

#include <libebook/e-book.h>
#include <libebook/e-contact.h>

#include <geoclue/geoclue-geocode.h>
#include <champlain/champlain.h>
#include <champlain-gtk/champlain-gtk.h>
#include <clutter-gtk/clutter-gtk.h>

void
get_min_max (gdouble *min_lat, gdouble *max_lat,
        gdouble *min_lng, gdouble *max_lng,
        gdouble lat, gdouble lng);

GeoclueGeocode *get_geocoder (void);

void add_marker (
        ChamplainLayer *layer,
        gdouble lat, gdouble lng,
        EContact *contact);

GHashTable *get_geoclue_from_address (const EContactAddress* addr);

void init_map (ChamplainView **view, GtkWidget **widget);

void create_map_window (GtkWidget *map_widget, const gchar *title);