This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
/
roadmap_alert.h
55 lines (49 loc) · 1.97 KB
/
roadmap_alert.h
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
50
51
52
53
54
55
/* roadmap_alert.h - Manage the alert points in DB.
*
* LICENSE:
*
* Copyright 2008 Avi B.S
* Copyright 2008 Ehud Shabtai
*
* This file is part of RoadMap.
*
* RoadMap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* RoadMap 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RoadMap; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _ROADMAP_ALERT_H_
#define _ROADMAP_ALERT_H_
#include "roadmap_types.h"
#include "roadmap_dbread.h"
#include "roadmap_alerter.h"
#define ALERT_CATEGORY_SPEED_CAM 2
#define ALERT_CATEGORY_DUMMY_SPEED_CAM 3
#define ALERT_CATEGORY_RED_LIGHT_CAM 4
int roadmap_alert_count(void);
int roadmap_alert_get_category(int alert);
unsigned int roadmap_alert_get_speed(int alert);
int roadmap_alert_get_id(int alert);
void roadmap_alert_get_position(int alert, RoadMapPosition *position, int *steering);
int roadmap_alert_alertable(int alert);
const char * roadmap_alert_get_map_icon(int alert);
const char * roadmap_alert_get_warning_icon(int alert);
const char * roadmap_alert_get_alert_icon(int alert);
int roadmap_alert_get_distance(int record);
int roadmap_alert_get_priority(void);
int roadmap_alert_start_handling(int alert);
int roadmap_alert_stop_handling(int alert);
RoadMapSoundList roadmap_alert_get_alert_sound(int Id);
const char * roadmap_alert_get_string(int alert);
extern roadmap_db_handler RoadMapAlertHandler;
extern roadmap_alert_provider RoadmapAlertProvider;
#endif // _ROADMAP_ALERT_H_