|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/NearPOIModel.h>


Public Types | |
| enum | Roles { LabelRole = Qt::UserRole , TypeRole = Qt::UserRole +1 , RegionRole = Qt::UserRole +2 , LatRole = Qt::UserRole +3 , LonRole = Qt::UserRole +4 , DistanceRole = Qt::UserRole +5 , BearingRole = Qt::UserRole +6 , LocationObjectRole = Qt::UserRole +7 , AltLangName = Qt::UserRole +8 } |
Public Slots | |
| void | onLookupFinished (int requestId) |
| void | onLookupResult (int requestId, QList< LocationEntry > locations) |
Signals | |
| void | countChanged (int) |
| void | SearchingChanged (bool) |
| void | lookupFinished (int requestId) |
| void | lookupResult (int requestId, QList< LocationEntry > locations) |
Public Member Functions | |
| NearPOIModel () | |
| ~NearPOIModel () override | |
| Q_INVOKABLE QVariant | data (const QModelIndex &index, int role) const override |
| Q_INVOKABLE int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| Q_INVOKABLE Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Q_INVOKABLE QObject * | get (int row) const |
| QHash< int, QByteArray > | roleNames () const override |
| bool | isSearching () const |
| double | GetLat () const |
| void | SetLat (double lat) |
| double | GetLon () const |
| void | SetLon (double lon) |
| double | GetMaxDistance () const |
| void | SetMaxDistance (double d) |
| int | GetResultLimit () const |
| void | SetResultLimit (int limit) |
| QStringList | GetTypes () const |
| void | SetTypes (QStringList t) |
Properties | |
| int | count |
| bool | searching |
| double | lat |
| double | lon |
| double | maxDistance |
| int | resultLimit {100} |
| QStringList | types |
| osmscout::NearPOIModel::NearPOIModel | ( | ) |
|
override |
|
signal |
|
override |
|
override |
| Q_INVOKABLE QObject * osmscout::NearPOIModel::get | ( | int | row | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
signal |
|
signal |
|
slot |
|
slot |
|
override |
|
override |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
read |
Count of rows in model - count of search results
|
readwrite |
Lat and lon properties control where is logical search center. Local admin region is used as default region, databases used for search are sorted by distance from this point (local results should be available faster).
|
readwrite |
|
readwrite |
Maximal distance of searched objects
|
readwrite |
Limit of lookup results.
|
read |
True if searching is in progress
|
readwrite |
Limit of results for each db.