]> git.itanic.dy.fi Git - maemo-mapper/blob - src/path.h
Administrative changes in preparation for release of Maemo Mapper v2.6.2.
[maemo-mapper] / src / path.h
1 /*
2  * Copyright (C) 2006, 2007 John Costigan.
3  *
4  * POI and GPS-Info code originally written by Cezary Jackiewicz.
5  *
6  * Default map data provided by http://www.openstreetmap.org/
7  *
8  * This file is part of Maemo Mapper.
9  *
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.
14  *
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.
19  *
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/>.
22  */
23
24 #ifndef MAEMO_MAPPER_PATH_H
25 #define MAEMO_MAPPER_PATH_H
26
27 void path_resize(Path *path, gint size);
28 void path_wresize(Path *path, gint wsize);
29
30 void path_save_route_to_db(void);
31
32 void route_find_nearest_point(void);
33 gboolean route_show_distance_to(Point *point);
34 void route_show_distance_to_next(void);
35 void route_show_distance_to_last(void);
36
37 void track_show_distance_from_last(void);
38 void track_show_distance_from_first(void);
39
40 gboolean track_add(time_t time, gboolean newly_fixed);
41 void track_clear(void);
42 void track_insert_break(gboolean temporary);
43
44 void path_reset_route(void);
45
46 void cancel_autoroute(void);
47
48 WayPoint * find_nearest_waypoint(gint unitx, gint unity);
49
50 gboolean route_download(gchar *to);
51 void route_add_way_dialog(gint unitx, gint unity);
52
53 WayPoint* path_get_next_way(void);
54
55 void path_init(void);
56 void path_destroy(void);
57
58 #endif /* ifndef MAEMO_MAPPER_PATH_H */