2 * Copyright (C) 2006, 2007 John Costigan.
4 * POI and GPS-Info code originally written by Cezary Jackiewicz.
6 * Default map data provided by http://www.openstreetmap.org/
8 * This file is part of Maemo Mapper.
10 * Maemo Mapper is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * Maemo Mapper is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Maemo Mapper. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef MAEMO_MAPPER_MAPS_H
25 #define MAEMO_MAPPER_MAPS_H
27 size_t map_cache_resize(size_t cache_size);
28 void map_cache_clean (void);
33 gboolean mapdb_exists(RepoData *repo, gint zoom, gint tilex, gint tiley);
34 GdkPixbuf* mapdb_get(RepoData *repo, gint zoom, gint tilex, gint tiley);
36 void set_repo_type(RepoData *repo);
37 gboolean repo_set_curr(RepoData *rd);
38 gboolean repo_is_layer (RepoData* base, RepoData* layer);
40 gboolean mapdb_initiate_update(RepoData *repo, gint zoom, gint tilex,
41 gint tiley, gint update_type, gint batch_id, gint priority,
42 ThreadLatch *refresh_latch);
44 guint mut_exists_hashfunc(const MapUpdateTask *a);
45 gboolean mut_exists_equalfunc(const MapUpdateTask *a, const MapUpdateTask *b);
46 gint mut_priority_comparefunc(const MapUpdateTask *a, const MapUpdateTask *b);
47 gboolean thread_proc_mut(void);
49 gboolean repoman_dialog(void);
51 gboolean repoman_download(void);
53 gboolean mapman_dialog(void);
55 gboolean map_layer_refresh_cb (gpointer data);
57 void maps_toggle_visible_layers ();
59 /* returns amount of seconds since tile downloaded */
60 gint get_tile_age (GdkPixbuf* pixbuf);
62 #endif /* ifndef MAEMO_MAPPER_MAPS_H */