Commit Graph

37 Commits

Author SHA1 Message Date
Marco Martin
b0472dc212 port the kconfig based storage service to Sqlite
make save and restore methods of datasource private for now
pu this early so performance/disk usage etc can be tested

svn path=/trunk/KDE/kdelibs/; revision=1181650
2010-10-01 16:58:15 +00:00
Aaron J. Seigo
1e0f44a312 FEATURE: on debug builds, make it easy to get a full dump of the state of the DataEngines
svn path=/trunk/KDE/kdelibs/; revision=1178739
2010-09-23 19:17:00 +00:00
Marco Martin
db7227e7f4 setStorageEnabled() is a way more sensible function name
svn path=/trunk/KDE/kdelibs/; revision=1168023
2010-08-25 21:35:40 +00:00
Aaron J. Seigo
9fff3dfc06 turn another protected slot into a private slot
Brian: please be sure not to introduce any methods into the public API of libplasma that are only used for internals. :)

CCMAIL:batenkaitos@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=1159725
2010-08-06 02:28:50 +00:00
Aaron J. Seigo
11c5c88c68 make this a private slot
svn path=/trunk/KDE/kdelibs/; revision=1159724
2010-08-06 02:22:44 +00:00
Brian David Pritchett
df52b374e9 Fixed an issue with an object being deleted too early.
svn path=/trunk/KDE/kdelibs/; revision=1158360
2010-08-02 16:00:47 +00:00
Brian David Pritchett
1259ea24cd Redid much of the storage capability and implemented many suggestions.
svn path=/trunk/KDE/kdelibs/; revision=1156347
2010-07-28 23:28:31 +00:00
Brian David Pritchett
53a227a43f This adds the first iteration of data caching for dataengines.
svn path=/trunk/KDE/kdelibs/; revision=1149185
2010-07-12 20:51:12 +00:00
Beat Wolf
8d20822a09 small doc update reflecting a past commit
svn path=/trunk/KDE/kdelibs/; revision=1136034
2010-06-08 18:35:41 +00:00
Aaron J. Seigo
27bfcc8f18 apidox fix
svn path=/trunk/KDE/kdelibs/; revision=1018189
2009-09-01 12:40:55 +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
Alex Merry
9c1570f13e apidocs fixes.
Remember to document ALL parameters to methods.  They may seem obvious to you, but I had to look at the code for at least two of the methods in order to document their parameters correctly.

*waves stick of EBN-ness*


svn path=/trunk/KDE/kdelibs/; revision=908604
2009-01-10 00:08:31 +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
Allen Winter
e88e2faa63 first batch of small coding style fixes.
these were found while testing the Krazy style checker, which I'm adapting
for the kdelibs style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870051
2008-10-11 16:19:04 +00:00
Alex Merry
71fec1c364 Improve apidocs, get rid of a commented-out line, fix an indent.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852237
2008-08-25 16:03:56 +00:00
Aaron J. Seigo
577a64f563 extender is not a Plasma Widget (it doesn't follow the API pattern, isn't a button/menu/etc, isn't meant to be used as a general widget in a random layout...)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841164
2008-08-02 17:46:32 +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
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
Alexis Ménard
9316dbd0d5 +checkForUpdate()->protected
+int timeSinceLastUpdate()->protected+return uint 


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801145
2008-04-25 19:45:09 +00:00
Anne-Marie Mahfouf
5637be62e7 API review: connectVisualization() is not a slot.
[note: I have checked that indeed it's not called as a slot in kdebase, /extragear/plasma or playground/base/plasma]

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800593
2008-04-24 13:28:23 +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
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
17ddc75c3a fix bug where one signalrelay requests an update right after another and gets nothing
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764821
2008-01-22 17:03:34 +00:00
Aaron J. Seigo
b9b99b4fd2 updated -> dataUpdated to make it really clear what's going on. there are too many update* methods, esp in applets where there is update() and updated()... a painful change, but it will only get worse if it happens any later.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=733314
2007-11-06 07:20:08 +00:00
Michael Olbrich
038de158d1 cleanups
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713200
2007-09-16 16:25:59 +00:00
Aaron J. Seigo
e0f831373c SVN_SILENT: add "or later" clause. cleared with copyright holders, except for rich moore's ui loader which i need to ask him for permission for first.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712549
2007-09-14 19:06:18 +00:00
Aaron J. Seigo
6ffbc459ad - when an intervalled visualization triggers an update, but the update is async, we queue up to trigger updated when the data _actually_ arrives.
- timestamp sources on update so we don't over update them due to multiple visualizations hammering on it. improves our tick situation even more.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712188
2007-09-13 20:34:17 +00:00
Aaron J. Seigo
e15c950bc3 introduce interval alignment, so it is possible to align a time interval to the minute or hour (we can add arbitrary ones to the mix should we choose; e.g. "every 10 mins" or whatever..but there needs to be good use cases =)
this is needed by clocks, as the obvious example, since "once a minute" isn't enough: it needs to be once a minute *on* the minute

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711737
2007-09-12 17:53:54 +00:00
Aaron J. Seigo
8415f49e55 - add connectVisualization so now the DataContainer manages all connect/disconnecting
- keep track of objects that are connected even at interval == 0
- remove disconnectNotify due to these changes
- allow multiple calls to connectVisualization to work properly without resulting in
  multiple connections to the same object and allowing the update interval to be
  adjusted for a given source/vis pair

this makes it pretty important to use connectVisualization and disconnectVisualization rather than QObject::connect and QObject::disconnect for the updated signal stuff

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=711717
2007-09-12 17:03:06 +00:00
Aaron J. Seigo
fc89eff135 first run at per-visualization timeouts, as per the design worked out on panel-devel.
i'm sure there are several bugs at this point (so don't try and use it quite yet ;) but most importantly:

- all methods are implemented
- it compiles ;)
- it does not have any negative impact on existing engines and applets as they currently are written

next will be to put it all through its paces, starting with the time engine and analog clock applet. i may not get to that until tomorrow, hoever.

this commit also fixed a number of buglettes along the way that had creeped in, e.g. not properly connecting all signals in connectAllSources (moved that ccode to the Private class to avoid code dupe and similar bugs in the future)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=710849
2007-09-11 00:49:51 +00:00
Michael Olbrich
56429d3adc check for unused DataContainers in a way that actually works.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=707450
2007-09-01 22:23:03 +00:00
Aaron J. Seigo
db4a7ebe61 copyright cleanups:
* Copyright (C) -> Copyright
* add "or later" clause to files that i have the sole copyright on
* add current year (2007) to my copyrights where it was missing

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696946
2007-08-06 11:20:02 +00:00
Aaron J. Seigo
26b3b62ed7 DataSource -> DataContainer, so it's more obvious that it isn't the -source- of the data.
the api remains the same however.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691134
2007-07-23 00:22:16 +00:00