build-system: add models and shared backends to the downloader

We'll need this in order to be able to actually open dive files and
download things from a dive computer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-11-14 19:21:16 -08:00
parent 057c151fe8
commit 5a8db97819
3 changed files with 9 additions and 3 deletions

View file

@ -3,7 +3,7 @@
#include "divelocationmodel.h"
#include "core/divesite.h"
#include "core/divefilter.h"
#ifndef SUBSURFACE_MOBILE
#if !defined(SUBSURFACE_MOBILE) && !defined(SUBSURFACE_DOWNLOADER)
#include "qt-models/filtermodels.h"
#include "desktop-widgets/mapwidget.h"
#endif
@ -20,7 +20,7 @@ MapLocation::MapLocation(struct dive_site *dsIn, QGeoCoordinate coordIn, QString
// Simplify this!
static bool inEditMode()
{
#ifdef SUBSURFACE_MOBILE
#if defined(SUBSURFACE_MOBILE) || defined(SUBSURFACE_DOWNLOADER)
return false;
#else
return MapWidget::instance()->editMode();
@ -127,7 +127,7 @@ void MapLocationModel::reload(QObject *map)
QMap<QString, MapLocation *> locationNameMap;
#ifdef SUBSURFACE_MOBILE
#if defined(SUBSURFACE_MOBILE) || defined(SUBSURFACE_DOWNLOADER)
bool diveSiteMode = false;
#else
// In dive site mode (that is when either editing a dive site or on