libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::MapObjectInfoModel Class Reference

#include <libosmscout-client-qt/include/osmscoutclientqt/MapObjectInfoModel.h>

Inheritance diagram for osmscout::MapObjectInfoModel:
Collaboration diagram for osmscout::MapObjectInfoModel:

Public Types

enum  Roles {
  LabelRole = Qt::UserRole , TypeRole = Qt::UserRole+1 , IdRole = Qt::UserRole+2 , NameRole = Qt::UserRole+3 ,
  ObjectRole = Qt::UserRole+4 , PhoneRole = Qt::UserRole+5 , WebsiteRole = Qt::UserRole+6 , AddressLocationRole = Qt::UserRole+7 ,
  AddressNumberRole = Qt::UserRole+8 , PostalCodeRole = Qt::UserRole+9 , RegionRole = Qt::UserRole+10 , LatRole = Qt::UserRole+11 ,
  LonRole = Qt::UserRole+12 , AltLangName = Qt::UserRole+13 , OpeningHours = Qt::UserRole+14
}

Public Slots

void dbInitialized (const osmscout::GeoBox &)
void setPosition (QObject *mapView, const int width, const int height, const int screenX, const int screenY)
void onViewObjectsLoaded (const MapViewStruct &, const QList< LookupModule::ObjectInfo > &objects)
void setLocationEntry (QObject *o)
void onObjectsLoaded (const LocationEntry &entry, const QList< LookupModule::ObjectInfo > &objects)

Signals

void readyChange (bool ready)
void objectsOnViewRequested (const MapViewStruct &view, const QRectF &filterRectangle)
void objectsRequested (const LocationEntry &entry, bool reverseLookupAddresses)

Public Member Functions

 MapObjectInfoModel ()
 ~MapObjectInfoModel () override
Q_INVOKABLE int rowCount (const QModelIndex &parent=QModelIndex()) const override
bool isReady () const
Q_INVOKABLE QObject * createOverlayObject (int row) const
Q_INVOKABLE QVariant data (const QModelIndex &index, int role) const override
QHash< int, QByteArray > roleNames () const override
Q_INVOKABLE Qt::ItemFlags flags (const QModelIndex &index) const override

Properties

bool ready

Member Enumeration Documentation

◆ Roles

Enumerator
LabelRole 
TypeRole 
IdRole 
NameRole 
ObjectRole 
PhoneRole 
WebsiteRole 
AddressLocationRole 
AddressNumberRole 
PostalCodeRole 
RegionRole 
LatRole 
LonRole 
AltLangName 
OpeningHours 

Constructor & Destructor Documentation

◆ MapObjectInfoModel()

osmscout::MapObjectInfoModel::MapObjectInfoModel ( )

◆ ~MapObjectInfoModel()

osmscout::MapObjectInfoModel::~MapObjectInfoModel ( )
override

Member Function Documentation

◆ createOverlayObject()

Q_INVOKABLE QObject * osmscout::MapObjectInfoModel::createOverlayObject ( int row) const

◆ data()

Q_INVOKABLE QVariant osmscout::MapObjectInfoModel::data ( const QModelIndex & index,
int role ) const
override

◆ dbInitialized

void osmscout::MapObjectInfoModel::dbInitialized ( const osmscout::GeoBox & )
slot

◆ flags()

Q_INVOKABLE Qt::ItemFlags osmscout::MapObjectInfoModel::flags ( const QModelIndex & index) const
override

◆ isReady()

bool osmscout::MapObjectInfoModel::isReady ( ) const
inline

◆ objectsOnViewRequested

void osmscout::MapObjectInfoModel::objectsOnViewRequested ( const MapViewStruct & view,
const QRectF & filterRectangle )
signal

◆ objectsRequested

void osmscout::MapObjectInfoModel::objectsRequested ( const LocationEntry & entry,
bool reverseLookupAddresses )
signal

◆ onObjectsLoaded

void osmscout::MapObjectInfoModel::onObjectsLoaded ( const LocationEntry & entry,
const QList< LookupModule::ObjectInfo > & objects )
slot

◆ onViewObjectsLoaded

void osmscout::MapObjectInfoModel::onViewObjectsLoaded ( const MapViewStruct & ,
const QList< LookupModule::ObjectInfo > & objects )
slot

◆ readyChange

void osmscout::MapObjectInfoModel::readyChange ( bool ready)
signal

◆ roleNames()

QHash< int, QByteArray > osmscout::MapObjectInfoModel::roleNames ( ) const
override

◆ rowCount()

Q_INVOKABLE int osmscout::MapObjectInfoModel::rowCount ( const QModelIndex & parent = QModelIndex()) const
inlineoverride

◆ setLocationEntry

void osmscout::MapObjectInfoModel::setLocationEntry ( QObject * o)
slot

◆ setPosition

void osmscout::MapObjectInfoModel::setPosition ( QObject * mapView,
const int width,
const int height,
const int screenX,
const int screenY )
slot

Property Documentation

◆ ready

bool osmscout::MapObjectInfoModel::ready
read

The documentation for this class was generated from the following file: