1 #ifndef OSMSCOUT_CLIENT_QT_MAPOBJECTINFOMODEL_H 2 #define OSMSCOUT_CLIENT_QT_MAPOBJECTINFOMODEL_H 35 #include <QAbstractListModel> 46 Q_PROPERTY(
bool ready READ isReady NOTIFY readyChange)
51 LabelRole = Qt::UserRole,
52 TypeRole = Qt::UserRole+1,
53 IdRole = Qt::UserRole+2,
54 NameRole = Qt::UserRole+3,
55 ObjectRole = Qt::UserRole+4,
56 PhoneRole = Qt::UserRole+5,
57 WebsiteRole = Qt::UserRole+6,
58 AddressLocationRole = Qt::UserRole+7,
59 AddressNumberRole = Qt::UserRole+8,
60 PostalCodeRole = Qt::UserRole+9,
61 RegionRole = Qt::UserRole+10,
62 LatRole = Qt::UserRole+11,
63 LonRole = Qt::UserRole+12
68 void readyChange(
bool ready);
69 void objectsOnViewRequested(
const MapViewStruct &view,
const QRectF &filterRectangle);
70 void objectsRequested(
const LocationEntry &entry,
bool reverseLookupAddresses);
74 void setPosition(QObject *mapView,
75 const int width,
const int height,
76 const int screenX,
const int screenY);
79 const QList<LookupModule::ObjectInfo> &objects);
81 void setLocationEntry(QObject *o);
84 const QList<LookupModule::ObjectInfo> &objects);
87 void addToModel(
const QList<LookupModule::ObjectInfo> &objects);
93 Q_INVOKABLE
virtual int inline rowCount(
const QModelIndex &)
const 103 Q_INVOKABLE QObject* createOverlayObject(
int row)
const;
105 Q_INVOKABLE
virtual QVariant data(
const QModelIndex &index,
int role)
const;
106 virtual QHash<int, QByteArray> roleNames()
const;
107 Q_INVOKABLE
virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
112 QList<ObjectKey> objectSet;
113 QList<LookupModule::ObjectInfo> model;
115 QRectF filterRectangle;
118 QList<osmscout::MapData> mapData;
#define OSMSCOUT_CLIENT_QT_API
Definition: ClientQtImportExport.h:45
virtual Q_INVOKABLE int rowCount(const QModelIndex &) const
Definition: MapObjectInfoModel.h:93
Definition: DBThread.h:51
Definition: LocationEntry.h:42
Definition: MapObjectInfoModel.h:43
bool isReady() const
Definition: MapObjectInfoModel.h:98
Roles
Definition: MapObjectInfoModel.h:50
Definition: DBThread.h:74
Definition: LookupModule.h:48