|
QGroundControl
Ground Control Station for MAVLink Drones
|
Model for displaying geotagging image status in QML. More...
#include <GeoTagImageModel.h>
Inheritance diagram for GeoTagImageModel:
Collaboration diagram for GeoTagImageModel:Public Types | |
| enum | Status { Pending , Processing , Tagged , Skipped , Failed } |
| enum | Roles { FileNameRole = Qt::UserRole + 1 , FilePathRole , StatusRole , StatusStringRole , ErrorMessageRole , CoordinateRole } |
Signals | |
| void | countChanged () |
Public Member Functions | |
| GeoTagImageModel (QObject *parent=nullptr) | |
| ~GeoTagImageModel () override | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| QHash< int, QByteArray > | roleNames () const override |
| int | count () const |
| void | clear () |
| void | addImage (const QString &filePath) |
| void | setStatus (int index, Status status, const QString &errorMessage=QString()) |
| void | setCoordinate (int index, const QGeoCoordinate &coordinate) |
| void | setStatusByPath (const QString &filePath, Status status, const QString &errorMessage=QString()) |
| void | setAllStatus (Status status) |
Model for displaying geotagging image status in QML.
Definition at line 9 of file GeoTagImageModel.h.
| Enumerator | |
|---|---|
| FileNameRole | |
| FilePathRole | |
| StatusRole | |
| StatusStringRole | |
| ErrorMessageRole | |
| CoordinateRole | |
Definition at line 26 of file GeoTagImageModel.h.
| Enumerator | |
|---|---|
| Pending | |
| Processing | |
| Tagged | |
| Skipped | |
| Failed | |
Definition at line 17 of file GeoTagImageModel.h.
|
explicit |
Definition at line 8 of file GeoTagImageModel.cc.
|
override |
Definition at line 13 of file GeoTagImageModel.cc.
| void GeoTagImageModel::addImage | ( | const QString & | filePath | ) |
Definition at line 74 of file GeoTagImageModel.cc.
References countChanged(), and Pending.
| void GeoTagImageModel::clear | ( | ) |
Definition at line 61 of file GeoTagImageModel.cc.
References countChanged().
|
inline |
Definition at line 43 of file GeoTagImageModel.h.
References rowCount().
|
signal |
Referenced by addImage(), and clear().
|
override |
Definition at line 23 of file GeoTagImageModel.cc.
References CoordinateRole, ErrorMessageRole, FileNameRole, FilePathRole, StatusRole, and StatusStringRole.
|
override |
Definition at line 49 of file GeoTagImageModel.cc.
References CoordinateRole, ErrorMessageRole, FileNameRole, FilePathRole, StatusRole, and StatusStringRole.
|
override |
Definition at line 17 of file GeoTagImageModel.cc.
Referenced by count().
| void GeoTagImageModel::setAllStatus | ( | Status | status | ) |
Definition at line 130 of file GeoTagImageModel.cc.
| void GeoTagImageModel::setCoordinate | ( | int | index, |
| const QGeoCoordinate & | coordinate | ||
| ) |
Definition at line 105 of file GeoTagImageModel.cc.
References CoordinateRole.
| void GeoTagImageModel::setStatus | ( | int | index, |
| Status | status, | ||
| const QString & | errorMessage = QString() |
||
| ) |
Definition at line 89 of file GeoTagImageModel.cc.
References ErrorMessageRole, StatusRole, and StatusStringRole.
Referenced by setStatusByPath().
| void GeoTagImageModel::setStatusByPath | ( | const QString & | filePath, |
| Status | status, | ||
| const QString & | errorMessage = QString() |
||
| ) |
Definition at line 120 of file GeoTagImageModel.cc.
References setStatus().