marble
Go to the documentation of this file.
11 #ifndef CLOUDROUTEMODEL_H
12 #define CLOUDROUTEMODEL_H
18 #include <QModelIndex>
19 #include <QNetworkReply>
20 #include <QAbstractListModel>
31 Timestamp = Qt::UserRole + 1,
43 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole )
const;
44 int rowCount(
const QModelIndex& parent = QModelIndex() )
const;
46 #if QT_VERSION >= 0x050000
48 QHash<int, QByteArray> roleNames()
const;
55 void setItems(
const QVector<RouteItem> &items );
62 bool isCached(
const QModelIndex &index )
const;
68 QPersistentModelIndex downloadingItem()
const;
74 void setDownloadingItem(
const QPersistentModelIndex &index );
81 bool isDownloading(
const QModelIndex &index )
const;
87 qint64 totalSize()
const;
93 qint64 downloadedSize()
const;
101 QIcon preview(
const QModelIndex &index )
const;
104 void updateProgress( qint64 currentSize, qint64 totalSize );
105 void setPreview( QNetworkReply *reply );
113 #endif // CLOUDROUTEMODEL_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.