16 Q_PROPERTY(
int count READ count NOTIFY countChanged)
29 FileNameRole = Qt::UserRole + 1,
41 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
42 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
43 QHash<int, QByteArray> roleNames()
const override;
45 int count()
const {
return rowCount(); }
49 void addImage(
const QString &filePath);
50 void setStatus(
int index, Status status,
const QString &errorMessage = QString());
51 void setCoordinate(
int index,
const QGeoCoordinate &coordinate);
52 void setStatusByPath(
const QString &filePath, Status status,
const QString &errorMessage = QString());
55 void setAllStatus(Status status);
64 Status status = Pending;
66 QGeoCoordinate coordinate;
69 QList<ImageInfo> _images;
71 static QString statusToString(Status status);