summaryrefslogtreecommitdiff
path: root/src/ivicore/qivisearchandbrowsemodelinterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivicore/qivisearchandbrowsemodelinterface.h')
-rw-r--r--src/ivicore/qivisearchandbrowsemodelinterface.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ivicore/qivisearchandbrowsemodelinterface.h b/src/ivicore/qivisearchandbrowsemodelinterface.h
index 1381f45..ea023a4 100644
--- a/src/ivicore/qivisearchandbrowsemodelinterface.h
+++ b/src/ivicore/qivisearchandbrowsemodelinterface.h
@@ -74,17 +74,16 @@ public:
virtual bool canGoForward(const QUuid &identifier, const QString &type, const QString &itemId) = 0; //Every Item has a id property which is filled by the backend implementation.
virtual QString goForward(const QUuid &identifier, const QString &type, const QString &itemId) = 0; //Returns the new type identifier used for the next level. The identifier will stay the same for the following calls but the type might differ.
- virtual void insert(const QUuid &identifier, const QString &type, int index, const QIviSearchAndBrowseModelItem *item) = 0;
- virtual void remove(const QUuid &identifier, const QString &type, int index) = 0;
- virtual void move(const QUuid &identifier, const QString &type, int currentIndex, int newIndex) = 0;
- virtual int indexOf(const QUuid &identifier, const QString &type, const QIviSearchAndBrowseModelItem *item) = 0;
+ virtual QIviPendingReply<void> insert(const QUuid &identifier, const QString &type, int index, const QIviSearchAndBrowseModelItem *item) = 0;
+ virtual QIviPendingReply<void> remove(const QUuid &identifier, const QString &type, int index) = 0;
+ virtual QIviPendingReply<void> move(const QUuid &identifier, const QString &type, int currentIndex, int newIndex) = 0;
+ virtual QIviPendingReply<int> indexOf(const QUuid &identifier, const QString &type, const QIviSearchAndBrowseModelItem *item) = 0;
Q_SIGNALS:
void supportedCapabilitiesChanged(const QUuid &identifier, QIviSearchAndBrowseModel::Capabilities capabilities);
void countChanged(const QUuid &identifier, int newLength); // Emitted by the backend if it already knows the total count of items in the model (can be used by the dataChanged display method)
void dataFetched(const QUuid &identifier, const QList<QVariant> &data, int start, bool moreAvailable);
void dataChanged(const QUuid &identifier, const QList<QVariant> &data, int start, int count); //start and count defines which data gets replace by the new data content. If data is empty the rows will be removed, if count is 0, the data will be added.
- void indexOfCallResult(const QUuid &identifier, int callID, int index);
protected:
template <typename T>