#include "latlon.h"
#include "gpx.h"
#include "map-download.h"
+#include "iap.h"
static guint _num_downloads=0;
static guint _curr_download=0;
/* removal automatically calls progress_update_info_free(). */
g_tree_steal(_downloading_tree, pui);
g_tree_insert(_pui_tree, pui, pui);
-#ifdef WITH_OSSO
if (iap_is_connected() && !_curl_sid)
-#else
- if (!_curl_sid)
-#endif
_curl_sid = g_timeout_add(100,(GSourceFunc)map_download_timeout, NULL);
/* Don't do anything else. */
return FALSE;
{
ProgressUpdateInfo *pui;
-#ifdef WITH_OSSO
iap_connect();
-#endif
pui = g_slice_new(ProgressUpdateInfo);
pui->tilex = tilex;
pui->file = NULL;
g_tree_insert(_pui_tree, pui, pui);
-#ifdef WITH_OSSO
if (iap_is_connected() && !_curl_sid)
-#else
-if (!_curl_sid)
-#endif
_curl_sid = g_timeout_add(100, (GSourceFunc) map_download_timeout, NULL);
if (!_num_downloads++ && !_download_banner) {