5 #include <QQmlApplicationEngine>
6 #include <QQmlListProperty>
41 QList < PoiObject * >
pois;
42 QQmlListProperty<QObject>
getPois();
45 QList < MapObject * >
maps;
46 QQmlListProperty<QObject>
getMaps();
attr_type
Definition: attr.h:34
struct pcoord c
Definition: backend.h:95
QQmlListProperty< QObject > maps
Definition: backend.h:22
void setCurrentVehicle(int index)
set the current vehicle. Used when clicking on a vehicle list to display one single vehicle
Definition: backend.cpp:391
QQmlApplicationEngine * engine
Definition: backend.h:97
void get_bookmarks()
update the private m_bookmarks list. Expected to be called from QML
Definition: backend.cpp:170
VehicleObject * currentVehicle()
QString currentStreet
Definition: backend.h:32
QList< QObject * > _pois
Definition: backend.h:98
QList< QObject * > _bookmarks
Definition: backend.h:99
PoiObject * activePoi
get the active POI. Used when displaying the relevant menu
Definition: backend.h:24
void setActivePoiAsDestination()
set the destination using the currently active POI's coordinates
Definition: backend.cpp:410
void get_pois()
update the private m_pois list. Expected to be called from QML
Definition: backend.cpp:201
QList< MapObject * > maps
Definition: backend.h:45
QQmlListProperty< QObject > getPois()
get the POIs as a QList
Definition: backend.cpp:260
void set_engine(QQmlApplicationEngine *engine)
set a pointer to the QQmlApplicationEngine * for local use
Definition: backend.cpp:149
void resize(int width, int height)
set the canvas size to use when drawing the map
Definition: backend.cpp:351
QQmlListProperty< QObject > vehicles
Definition: backend.h:23
PoiObject * m_activePoi
Definition: backend.h:102
void searchValidateResult(int index)
save the search result for the next search step
Definition: backend.cpp:425
QString get_country_icon(char *country_iso_code)
get the icon that matches the country currently used for searches
Definition: backend.cpp:452
struct search_param * search
Definition: backend.h:111
void displayMenu(QString source)
void searchResultsChanged()
QQmlListProperty< QObject > getVehicles()
get the vehicles as a QList
Definition: backend.cpp:288
struct navit * nav
Definition: backend.h:92
void setCurrentBookmark(int index)
set the current bookmark. Used when clicking on a bookmark list to display one single bookmark
Definition: backend.cpp:377
void block_draw()
Definition: backend.cpp:340
enum attr_type _search_context
Definition: backend.h:112
QList< QObject * > _search_results
Definition: backend.h:105
Backend(QObject *parent=0)
Definition: backend.cpp:28
QString currentTown
Definition: backend.h:31
void get_vehicles()
update the private m_vehicles list. Expected to be called from QML
Definition: backend.cpp:100
const char * _current_country
Definition: backend.h:108
struct coord_geo g
Definition: backend.h:94
VehicleObject * currentVehicle
get the currently selected vehicle. Used when displaying the relevant menu
Definition: backend.h:26
void currentBookmarkChanged()
QList< MapObject * > vehicles
Definition: backend.h:47
void setSearchContext(QString text)
Definition: backend.cpp:551
void get_maps()
update the private m_maps list. Expected to be called from QML
Definition: backend.cpp:65
void currentStreetChanged()
QQmlListProperty< QObject > searchresults
Definition: backend.h:27
QString currentCountryIso2
Definition: backend.h:30
QList< PoiObject * > pois
Definition: backend.h:41
QQmlListProperty< QObject > getBookmarks()
get the Bookmarks as a QList
Definition: backend.cpp:269
void updateSearch(QString text)
update the current search results according to new inputs. Currently only works to search for towns
Definition: backend.cpp:486
const char * _current_town
Definition: backend.h:109
const char * _current_street
Definition: backend.h:110
const char * _country_iso2
Definition: backend.h:107
int filter_pois(struct item *item)
apply search filters on one specific item
Definition: backend.cpp:158
QList< QObject * > _maps
Definition: backend.h:100
QList< QObject * > _vehicles
Definition: backend.h:101
QList< BookmarkObject * > bookmarks
Definition: backend.h:43
void set_default_country()
set the default country
Definition: backend.cpp:475
QString get_icon_path()
returns the icon absolute path
Definition: backend.cpp:401
BookmarkObject * m_currentBookmark
Definition: backend.h:103
QQmlListProperty< QObject > getMaps()
get the maps as a QList
Definition: backend.cpp:278
struct point * p
Definition: backend.h:93
QQmlListProperty< QObject > pois
Definition: backend.h:20
QQmlListProperty< QObject > getSearchResults()
get the search results as a QList
Definition: backend.cpp:297
QString currentCountryIso2()
QString currentCountry
Definition: backend.h:29
void showMenu(struct point *p)
Set some variables and display the main menu.
Definition: backend.cpp:40
void currentCountryIso2Changed()
BookmarkObject * currentBookmark()
BookmarkObject * currentBookmark
get the current bookmark. Used when displaying the relevant menu
Definition: backend.h:25
void setActivePoi(int index)
set the active POI. Used when clicking on a POI list to display one single POI
Definition: backend.cpp:364
void currentVehicleChanged()
VehicleObject * m_currentVehicle
Definition: backend.h:104
void currentTownChanged()
void currentCountryChanged()
void set_navit(struct navit *nav)
set a pointer to the struct navit * for local use
Definition: backend.cpp:140
Definition: qml_bookmark.h:8
Definition: qml_vehicle.h:9
unsigned short width
Definition: garmin_img.c:3
unsigned short height
Definition: garmin_img.c:4
Definition: bookmarks.c:53
A WGS84 coordinate.
Definition: coord.h:97
Represents an object on a map.
Definition: item.h:115
Definition: gpx2navit_txt.h:51
Definition: destination.c:41