/*******************************************************************

Copyright (c) 2001-2004 Fritz Ganter <ganter@ganter.at>

Website: www.gpsdrive.de

Disclaimer: Please do not use for navigation. 

 This program 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. 

 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 General Public License for more details. 

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*********************************************************************/
#ifndef GPSDRIVE_CONFIG_H
#define GPSDRIVE_CONFIG_H

#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <config.h>
#include <gmodule.h>
#include <gdk/gdktypes.h>
#include "gtk/gtk.h"
#include "gpsproto.h"

#include <string.h>
#include <stdlib.h>

void writeconfig ();
void readconfig ();
void config_init ();
typedef struct
{
	gchar config_file[500];
	gint travelmode;
	gint distmode;
	gint altmode;
	gint coordmode;
	gint nightmode;
	gint guimode;
	gboolean showbatt;
	gboolean showtemp;
	gboolean showway;
	gint maxcpuload;
	gint posmarker;
	gchar wp_file[500];
	gchar mapnik_xml_file[500];
	gchar mapnik_xml_template[500];
	gchar mapnik_input_path[500];
	gchar mapnik_font_path[500];
	gchar geoinfo_file[500];
	gchar dir_home[500];
	gchar dir_maps[500];
	gchar dir_routes[500];
	gchar dir_tracks[500];
	gchar dir_mbrola[500];
	gchar icon_theme[500];
	gchar poi_filter[2000];
	gchar poi_label[1000];
	guint poi_results_max;
	gdouble poi_searchradius;
	int MapnikStatusInt; /* 0 = disable, 1 = enable, 2 = active */
	gboolean mapnik_caching;
	gint simmode;
	gboolean use_database;
	gboolean showmaptype;
	gboolean showgrid;
	gboolean showshadow;
	gboolean showzoom;
	gboolean showscalebar;
	gboolean showwaypoints;
	gboolean showpoi;
	gboolean showwlan;
	gboolean showtooltips;
	gboolean showaddwpbutton;
	gboolean showfriends;
	gboolean showtrack;
	gboolean savetrack;
	gboolean autobestmap;
	gint scale_wanted;
	gint speech;
	gchar speech_voice[20];
	gint speech_speed;
	gint speech_pitch;
	gboolean sound_direction;
	gboolean sound_distance;
	gboolean sound_speed;
	gboolean sound_gps;
	gboolean mute;
	glong friends_maxsecs;
	gchar friends_name[40];
	gchar friends_id[40];
	gchar friends_serverfqn[255];
	gchar friends_serverip[20];
	gchar color_track[40];
	gchar color_route[40];
	gchar color_friends[40];
	gchar color_wplabel[40];
	gchar color_dashboard[40];
	gchar color_map_day[40];
	gchar color_map_night[40];
	gchar font_friends[100];
	gchar font_wplabel[100];
	gchar font_dashboard[100];
	gint dashboard[5];
	gdouble normalnull;
	gchar kismet_servername[500];
	gint kismet_serverport;
	gchar screenshot_dir[1000];
	gboolean embeddable_gui;	/* use GtkPlug instead of GtkWindow for main_window */
}
local_gpsdrive_config;

extern local_gpsdrive_config local_config;

#endif /* GPSDRIVE_CONFIG_H */
