#include <LocationInfoModel.h>
|
enum | Roles {
LabelRole = Qt::UserRole,
RegionRole = Qt::UserRole+1,
AddressRole = Qt::UserRole+2,
InPlaceRole = Qt::UserRole+3,
DistanceRole = Qt::UserRole+4,
BearingRole = Qt::UserRole+5,
PoiRole = Qt::UserRole+6,
TypeRole = Qt::UserRole+7,
PostalCodeRole = Qt::UserRole+8,
WebsiteRole = Qt::UserRole+9,
PhoneRole = Qt::UserRole+10,
AddressLocationRole = Qt::UserRole+11,
AddressNumberRole = Qt::UserRole+12,
IndexedAdminRegionRole = Qt::UserRole+13,
AltLangName = Qt::UserRole+14,
OpeningHours = Qt::UserRole+15
} |
|
|
Q_INVOKABLE QString | bearing (double lat1, double lon1, double lat2, double lon2) |
|
Q_INVOKABLE QVariant | data (const QModelIndex &index, int role) const override |
|
Q_INVOKABLE double | distance (double lat1, double lon1, double lat2, double lon2) |
|
Q_INVOKABLE Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
bool | isReady () const |
|
| LocationInfoModel () |
|
QHash< int, QByteArray > | roleNames () const override |
|
Q_INVOKABLE int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
| ~LocationInfoModel () override |
|
|
static bool | adminRegionComparator (const AdminRegionInfoRef ®1, const AdminRegionInfoRef ®2) |
|
static bool | distanceComparator (const QMap< int, QVariant > &obj1, const QMap< int, QVariant > &obj2) |
|
◆ Roles
Enumerator |
---|
LabelRole | |
RegionRole | |
AddressRole | |
InPlaceRole | |
DistanceRole | |
BearingRole | |
PoiRole | |
TypeRole | |
PostalCodeRole | |
WebsiteRole | |
PhoneRole | |
AddressLocationRole | |
AddressNumberRole | |
IndexedAdminRegionRole | |
AltLangName | |
OpeningHours | |
◆ LocationInfoModel()
osmscout::LocationInfoModel::LocationInfoModel |
( |
| ) |
|
References dbInitialized(), osmscout::OSMScoutQt::GetInstance(), osmscout::OSMScoutQt::GetSettings(), osmscout::LookupModule::initialisationFinished(), osmscout::LookupModule::locationAdminRegionFinished(), osmscout::LookupModule::locationAdminRegions(), osmscout::LookupModule::locationDescription(), osmscout::LookupModule::locationDescriptionFinished(), locationDescriptionRequested(), osmscout::OSMScoutQt::MakeLookupModule(), onLocationAdminRegionFinished(), onLocationAdminRegions(), onLocationDescription(), onLocationDescriptionFinished(), regionLookupRequested(), osmscout::LookupModule::requestLocationDescription(), and osmscout::LookupModule::requestRegionLookup().
◆ ~LocationInfoModel()
osmscout::LocationInfoModel::~LocationInfoModel |
( |
| ) |
|
|
override |
◆ adminRegionComparator()
bool osmscout::LocationInfoModel::adminRegionComparator |
( |
const AdminRegionInfoRef & |
reg1, |
|
|
const AdminRegionInfoRef & |
reg2 |
|
) |
| |
|
static |
◆ bearing()
QString osmscout::LocationInfoModel::bearing |
( |
double |
lat1, |
|
|
double |
lon1, |
|
|
double |
lat2, |
|
|
double |
lon2 |
|
) |
| |
◆ data()
QVariant osmscout::LocationInfoModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ dbInitialized
◆ distance()
double osmscout::LocationInfoModel::distance |
( |
double |
lat1, |
|
|
double |
lon1, |
|
|
double |
lat2, |
|
|
double |
lon2 |
|
) |
| |
◆ distanceComparator()
bool osmscout::LocationInfoModel::distanceComparator |
( |
const QMap< int, QVariant > & |
obj1, |
|
|
const QMap< int, QVariant > & |
obj2 |
|
) |
| |
|
static |
◆ flags()
Qt::ItemFlags osmscout::LocationInfoModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ isReady()
bool osmscout::LocationInfoModel::isReady |
( |
| ) |
const |
|
inline |
◆ locationDescriptionRequested
void osmscout::LocationInfoModel::locationDescriptionRequested |
( |
const osmscout::GeoCoord |
location | ) |
|
|
signal |
◆ onLocationAdminRegionFinished
void osmscout::LocationInfoModel::onLocationAdminRegionFinished |
( |
const osmscout::GeoCoord |
| ) |
|
|
slot |
◆ onLocationAdminRegions
void osmscout::LocationInfoModel::onLocationAdminRegions |
( |
const osmscout::GeoCoord |
location, |
|
|
QList< AdminRegionInfoRef > |
regions |
|
) |
| |
|
slot |
References AddressLocationRole, AddressNumberRole, AddressRole, adminRegionComparator(), osmscout::LookupModule::AdminRegionNames(), AltLangName, BearingRole, distanceComparator(), DistanceRole, IndexedAdminRegionRole, InPlaceRole, LabelRole, OpeningHours, PhoneRole, PoiRole, PostalCodeRole, RegionRole, TypeRole, and WebsiteRole.
Referenced by LocationInfoModel().
◆ onLocationDescription
◆ onLocationDescriptionFinished
void osmscout::LocationInfoModel::onLocationDescriptionFinished |
( |
const osmscout::GeoCoord |
location | ) |
|
|
slot |
◆ readyChange
void osmscout::LocationInfoModel::readyChange |
( |
bool |
ready | ) |
|
|
signal |
◆ regionLookupRequested
◆ roleNames()
QHash< int, QByteArray > osmscout::LocationInfoModel::roleNames |
( |
| ) |
const |
|
override |
References AddressLocationRole, AddressNumberRole, AddressRole, AltLangName, BearingRole, DistanceRole, IndexedAdminRegionRole, InPlaceRole, LabelRole, OpeningHours, PhoneRole, PoiRole, PostalCodeRole, RegionRole, TypeRole, and WebsiteRole.
◆ rowCount()
Q_INVOKABLE int osmscout::LocationInfoModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
inlineoverride |
◆ setLocation
void osmscout::LocationInfoModel::setLocation |
( |
const double |
lat, |
|
|
const double |
lon |
|
) |
| |
|
slot |
◆ ready
bool osmscout::LocationInfoModel::ready |
|
read |
The documentation for this class was generated from the following files: