#ifndef _MAPPER_UI_COMMON_H
#define _MAPPER_UI_COMMON_H
-#include <config.h>
-
-#define _GNU_SOURCE
+#include "config.h"
#include <unistd.h>
#include <stdlib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <fcntl.h>
-#include <gdk/gdkkeysyms.h>
-#include <libgnomevfs/gnome-vfs.h>
-#include <curl/multi.h>
-#include <gconf/gconf-client.h>
-#include <libxml/parser.h>
+#include "gps.h"
#include "mapper-types.h"
#include "ui-maemo.h"
#include "hildon-wrappers.h"
/** The main GtkContainer of the application. */
GtkWidget *_window;
-
GtkWidget *_gps_widget;
/* GPS Tab widget */
GtkWidget *_cmenu_poi_goto_nearpoi;
/* Banners/Progress bars */
-GtkWidget *_download_banner;
GtkWidget *_status_bar;
struct _info_banner {
GtkMenu *_menu_map;
GtkWidget *route_tree_view;
+GtkWidget *track_tree_view;
/** Context menu click location on map */
guint _cmenu_position_x;
guint _cmenu_position_y;
-gboolean window_present();
-void popup_error(GtkWidget * window, const gchar * error);
void mapper_ui_init(void);
+gboolean window_present();
void set_action_sensitive(const char *name, gboolean sensitive);
void set_action_activate(const char *name, gboolean active);
-GtkWidget *progress_dialog(const gchar *title, GtkWidget *progress);
-void progress_dialog_remove(GtkWidget *dialog);
+/* XXX: Not the right place but.. */
+gboolean gps_info_update(Gps *gps);
+gboolean gps_location_update(Gps *gps);
+gboolean gps_retry_connection(Gps *gps, const gchar *error);
#endif