Commit Graph

104 Commits

Author SHA1 Message Date
Aaron J. Seigo
71640d2866 kill the timer first, just in case on of the sources updates, causing a visualization to do something that then triggers another source update in the same engine
svn path=/trunk/KDE/kdelibs/; revision=1006047
2009-08-02 21:56:51 +00:00
Aaron J. Seigo
5bdb436709 allow kicking all visualizations immediately rather than wait for their timeouts in the case of changes that _must_ be reflected immediatley, e.g. time changes or network availability causing first fetch of data
svn path=/trunk/KDE/kdelibs/; revision=987939
2009-06-27 01:26:33 +00:00
Aaron J. Seigo
230a162b94 make all calls to scheduleSourcesUpdate async so engines that use that internally don't incure a time penalty for doing so
svn path=/trunk/KDE/kdelibs/; revision=965473
2009-05-09 00:32:45 +00:00
Aaron J. Seigo
599fcdd138 ignore timer id's that aren't ours
svn path=/trunk/KDE/kdelibs/; revision=944581
2009-03-25 19:10:02 +00:00
Aaron J. Seigo
240a1632a9 actually need to update queueCount otherwise we just go until we run out of sources and an assert due to dequeuing an empty stack. whoops.
svn path=/trunk/KDE/kdelibs/; revision=914768
2009-01-21 18:23:10 +00:00
Laurent Montel
eebb6178a5 Fix iterator
svn path=/trunk/KDE/kdelibs/; revision=906617
2009-01-06 13:09:05 +00:00
Aaron J. Seigo
bfd0c6cfba updateAllSources; second time i needed this tonight, so in it goes
svn path=/trunk/KDE/kdelibs/; revision=883535
2008-11-13 07:40:57 +00:00
Simon Edwards
ccb20997ab Send DataEngine::sources() and DataEngine::serviceForSource() on to the script engine if needed.
svn path=/trunk/KDE/kdelibs/; revision=881713
2008-11-08 20:44:03 +00:00
Richard Dale
ecad3fb271 * Add package() and mainScript() methods to the scripting dataengine class
* Fix expected load path for a scripting dataengine and change from
  'plasma/engines' to 'plasma/dataengines' to be in line with the 
  'dataengine' type option of the plasmapkg tool

CCMAIL: kde-bindings@kde.org


svn path=/trunk/KDE/kdelibs/; revision=880550
2008-11-05 20:32:51 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Simon Edwards
2b932160e6 Added a pluginName() method to DataEngine to match the one in Applet. (Useful for scripting.)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874609
2008-10-21 22:22:57 +00:00
Simon Edwards
90de22f3ca If think the data engine code is actually interested in DataEngineComponents and not runners.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874280
2008-10-21 06:40:12 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Aaron J. Seigo
4a63440530 when manually adding sources ... connect them to the engine!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=869754
2008-10-09 23:23:30 +00:00
Aaron J. Seigo
02ba0e68a1 delete the script before the package!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864836
2008-09-25 16:27:49 +00:00
Aaron J. Seigo
28a014d6fe use the standard KPluginInfo stuff for this
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858758
2008-09-08 16:55:05 +00:00
Aaron J. Seigo
456e81518e * update the source (if appropriate) when query is called
* use the source name for the destination of NullService; handy in debugging

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856772
2008-09-03 18:52:23 +00:00
Aaron J. Seigo
3d6b183011 try to keep updateSourcEvents to a minimum by only triggering an immediate update from the SignalRelay object if it is not the first visualization connected to the source
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852899
2008-08-26 20:37:53 +00:00
Alex Merry
9293cbaba6 memory leak--
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851461
2008-08-23 17:42:36 +00:00
Aaron J. Seigo
63bce9d1b4 move all the prive code into private/; makes it much clearer with the division lines are
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839792
2008-07-30 20:35:42 +00:00
Aaron J. Seigo
9be8bbb87b queue an update when a source is added directly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838926
2008-07-29 03:26:23 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Aaron J. Seigo
5f3493654f first draft of Service; still evaluating the use of KConfigSkeleton
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809020
2008-05-18 04:27:54 +00:00
Aaron J. Seigo
7c2bd78598 always set the engine name
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=806583
2008-05-11 19:19:54 +00:00
Dan Meltzer
f57cc1c623 Lotsa little ebn fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805672
2008-05-09 05:32:15 +00:00
Aaron J. Seigo
9165b11235 at tokamak i said i regretted using the term "Language" to describe what is really "API". i meant it.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802486
2008-04-29 16:24:14 +00:00
Aaron J. Seigo
13fcca652e move dataengine private details into the pimpl
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802279
2008-04-29 01:17:12 +00:00
Aaron J. Seigo
9a156375a3 SVN_SILENT: a bit more useful debug in places
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802271
2008-04-29 00:15:26 +00:00
Anne-Marie Mahfouf
0b12fc3a5e API review: sourceRequested() -> sourceRequestEvent()
updateSource() -> updateSourceEvent()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801373
2008-04-26 12:59:44 +00:00
Alexis Ménard
2b235d2906 +hasUpdates()->pimpl ok
+setNeedsUpdate()->protected used in dataengine line 306
+checkUsage()->protected used in dataengine line 293

protected or pimpl/modification in dataengine too?

CCMAIL : ervin@kde.org
 

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801168
2008-04-25 20:33:46 +00:00
Aaron J. Seigo
47ce519fde sourceLimit -> maxSourceCount
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801062
2008-04-25 15:52:13 +00:00
Aaron J. Seigo
9250bd82b4 put sourceLimit back in, add an accessor as well. used by akonadi
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800769
2008-04-24 20:16:21 +00:00
Aaron J. Seigo
52c81b0a5a make visualizationIsConnected work better
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800763
2008-04-24 20:09:57 +00:00
Anne-Marie Mahfouf
70985897bb API review: DataContainer SIGNAL requestUpdate()->updateRequested()
Not used anywhere outside libs/plasma, not used in /extragear/plasma or /playground/base/plasma
Same case as SIGNAL unused()->becameUnused() as Kévin noted, can be moved to pimpl of DataContainer

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800587
2008-04-24 13:09:21 +00:00
Anne-Marie Mahfouf
50269beb15 API review: DataContainer SIGNAL unused()->becameUnused()
none in extragear/plasma or in playground/base/plasma

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800574
2008-04-24 12:22:40 +00:00
Anne-Marie Mahfouf
75ba09738f API review: DataContainer clearData()->removeAllData()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800558
2008-04-24 11:56:32 +00:00
Anne-Marie Mahfouf
fb85325fe6 API review: remove setSourceLimit()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800552
2008-04-24 11:46:06 +00:00
Anne-Marie Mahfouf
7b8547aed8 API review: checkForUpdates() -> scheduleSourcesUpdated()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800453
2008-04-24 10:07:34 +00:00
Anne-Marie Mahfouf
5492b75e95 API review: clearData() -> removeAllData()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800422
2008-04-24 08:10:30 +00:00
Anne-Marie Mahfouf
72ef8e764b API review updateSource() -> updateSourceEvent()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800417
2008-04-24 08:01:18 +00:00
Anne-Marie Mahfouf
5499de3b0c API revew sourceRequested() -> sourceRequestEvent()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800401
2008-04-24 07:32:46 +00:00
Anne-Marie Mahfouf
b11be618b0 API review SIGNAL newSource() -> sourceAdded()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800395
2008-04-24 07:15:26 +00:00
Anne-Marie Mahfouf
e435c15f14 API review clearSources() -> removeAllSources()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800387
2008-04-24 06:38:14 +00:00
Aaron J. Seigo
7d1d889a47 * add a way to query if a visualization is already connected to a source
* don't do an immediate call using invokeMethod if the visualization is already connected and we're just adjusting it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800383
2008-04-24 05:58:59 +00:00
Chani Armitage
e850a93871 dataengine api review: %s/UpdateInterval/PollingInterval/g
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800376
2008-04-24 02:21:22 +00:00
Chani Armitage
563d3ab294 dataengine api review: engineName() -> name() + add protected setName()
I also added a default value for the name

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800336
2008-04-23 22:40:03 +00:00
Anne-Marie Mahfouf
276c7aaa66 API review sourceDict() -> containerDict()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800274
2008-04-23 19:57:20 +00:00
Aaron J. Seigo
f2fe39b435 scripting fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796423
2008-04-13 15:01:46 +00:00