[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdelibs/plasma
From: Marco Martin <notmart () gmail ! com>
Date: 2010-02-18 10:07:02
Message-ID: 1266487622.311073.8732.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1092102 by mart:
backport forced polling of remote dataengines: only way to make them work at the moment
M +6 -0 dataengine.cpp
--- branches/KDE/4.4/kdelibs/plasma/dataengine.cpp #1092101:1092102
@@ -39,6 +39,7 @@
#include "private/authorizationmanager_p.h"
#include "private/dataengineservice_p.h"
+#include "private/remotedataengine_p.h"
#include "private/service_p.h"
namespace Plasma
@@ -628,6 +629,11 @@
bool immediateCall)
{
//kDebug() << "connect source called" << s->objectName() << "with interval" << pollingInterval;
+
+ //FIXME: at the moment a remote dataengine can only poll, a push mechanism will be needed instead
+ if (pollingInterval == 0 && qobject_cast<RemoteDataEngine *>(q)) {
+ pollingInterval = 5000;
+ }
if (pollingInterval > 0) {
// never more frequently than allowed, never more than 20 times per second
uint min = qMax(50, minPollingInterval); // for qMax below
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic