1 |
/**
|
2 |
* Navit, a modular navigation system.
|
3 |
* Copyright (C) 2005-2008 Navit Team
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* version 2 as published by the Free Software Foundation.
|
8 |
*
|
9 |
* This program is distributed in the hope that it will be useful,
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12 |
* GNU General Public License for more details.
|
13 |
*
|
14 |
* You should have received a copy of the GNU General Public License
|
15 |
* along with this program; if not, write to the
|
16 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
17 |
* Boston, MA 02110-1301, USA.
|
18 |
*/
|
19 |
|
20 |
#include <time.h>
|
21 |
#include <glib.h>
|
22 |
#include "coord.h"
|
23 |
#include "item.h"
|
24 |
#include "route.h"
|
25 |
#include "speech.h"
|
26 |
#include "phrase.h"
|
27 |
|
28 |
void
|
29 |
phrase_route_calc(void *speech)
|
30 |
{
|
31 |
#if 0
|
32 |
if (! speech)
|
33 |
return;
|
34 |
speech_say(speech,"Die Route wird berechnet\n");
|
35 |
#endif
|
36 |
}
|
37 |
|
38 |
void
|
39 |
phrase_route_calculated(void *speech, void *route)
|
40 |
{
|
41 |
#if 0
|
42 |
struct tm *eta;
|
43 |
#endif
|
44 |
if (! speech)
|
45 |
return;
|
46 |
|
47 |
#if 0 /* FIXME */
|
48 |
eta=route_get_eta(route);
|
49 |
|
50 |
speech_sayf(speech,"Die Route wurde berechnet, geschätzte Ankunftszeit %d Uhr %d Entfernung %4.0f Kilometer", eta->tm_hour,eta->tm_min,route_get_len(route)/1000);
|
51 |
#endif
|
52 |
|
53 |
}
|