[Pkg-owncloud-commits] [owncloud-client] 233/484: ActivityListModel: Add the page and pagesize parameter to ocs query.

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 71849c4372ee0ccacef9d86081b2ec1cb86f86ef
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Nov 2 17:51:12 2015 +0100

    ActivityListModel: Add the page and pagesize parameter to ocs query.
---
 src/gui/activitywidget.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index 544f032..3c20a95 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -109,10 +109,14 @@ void ActivityListModel::startFetchJob(AccountStatePtr s)
     JsonApiJob *job = new JsonApiJob(s->account(), QLatin1String("ocs/v1.php/cloud/activity"), this);
     QObject::connect(job, SIGNAL(jsonRecieved(QVariantMap)), this, SLOT(slotActivitiesReceived(QVariantMap)));
     job->setProperty("AccountStatePtr", QVariant::fromValue<AccountStatePtr>(s));
-    _currentlyFetching.insert(s);
-    job->start();
 
+    QList< QPair<QString,QString> > params;
+    params.append(qMakePair(QLatin1String("page"), QLatin1String("0")));
+    params.append(qMakePair(QLatin1String("pagesize"), QLatin1String("100")));
+    job->addQueryParams(params);
 
+    _currentlyFetching.insert(s);
+    job->start();
 }
 
 void ActivityListModel::slotActivitiesReceived(const QVariantMap& json)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list