Dawit Alemayehu
fb0b49af8c
Normalize all signal/slot connections.
...
REVIEW: 103728
2012-02-13 14:27:21 -05:00
Aaron Seigo
356e618364
stop the timers
2011-10-30 10:46:28 +01:00
Aaron Seigo
176d4b896b
delay usage checks so quite disconnect/reconnects don't result in unecessary loss of data
...
(only to reload it again immediately thereafter...)
2011-10-30 10:35:29 +01:00
Aaron Seigo
a975897d70
force an immediate update
2011-04-29 11:17:31 +02:00
Aaron Seigo
69d7a00ba9
only update when we have something stored previously
2011-04-29 11:17:31 +02:00
Aaron Seigo
a9814bd642
avoid (even cheap) temporaries
2011-04-29 11:17:31 +02:00
Aaron Seigo
1ee07ca959
capitalization
2011-04-29 11:17:31 +02:00
Aaron Seigo
f5ad63632e
use the new and improve retrieval
2011-04-29 11:17:29 +02:00
Aaron Seigo
54a832c270
use the new setData method
2011-04-29 11:17:28 +02:00
Marco Martin
67dbcb59b8
create a single timer for storage event compression
2011-04-29 11:17:28 +02:00
Aaron Seigo
dca3eefc6e
style
2011-04-28 10:54:23 +02:00
Albert Astals Cid
9f7b20829a
Replace slow foreach constructs with faster ones
...
Acked by Marco
svn path=/trunk/KDE/kdelibs/; revision=1206126
2010-12-13 13:36:08 +00:00
Dawit Alemayehu
086599b47a
Fixed compile errors when using QT_USE_FAST_CONCATENATION and QT_USE_FAST_OPERATOR_PLUS to compile kdelibs...
...
svn path=/trunk/KDE/kdelibs/; revision=1194330
2010-11-08 18:14:17 +00:00
Marco Martin
dd6b783e13
new operations for Storage:
...
* expire, with age and group as parameters
* delete, with group and key as parameters
new db structure: creation time (still unused, but would be hard to add in future releases)
and access time, used for expire
svn path=/trunk/KDE/kdelibs/; revision=1192402
2010-11-02 22:05:48 +00:00
Marco Martin
ce3e6edaeb
fix retrieval from storage
...
svn path=/trunk/KDE/kdelibs/; revision=1192376
2010-11-02 19:31:45 +00:00
Marco Martin
fc454d4ab8
* "source" is "group"
...
* if no group is specified, "default" is assumed
svn path=/trunk/KDE/kdelibs/; revision=1188942
2010-10-23 12:14:33 +00:00
Marco Martin
72110136bc
the table name depends from the plugin name of who is using storage
...
svn path=/trunk/KDE/kdelibs/; revision=1188938
2010-10-23 12:04:24 +00:00
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
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
d3a9a2fc52
with DataContainer::store() now protected against bogus calls by checking to see if storage is enabled, we can unconditionally mark items as needed to be stored; this way if an item is later marked for storage, it will still work. this was a flaw in my last commit.
...
svn path=/trunk/KDE/kdelibs/; revision=1168014
2010-08-25 21:21:04 +00:00
Aaron J. Seigo
3af1f71492
really don't store things that shouldn't be stored.
...
svn path=/trunk/KDE/kdelibs/; revision=1168012
2010-08-25 21:17:54 +00:00
Brian David Pritchett
9dffd9dd77
Revert a commit that did not work.
...
svn path=/trunk/KDE/kdelibs/; revision=1164609
2010-08-17 09:28:46 +00:00
Brian David Pritchett
4fdf87b54f
Added akonadi storage plugin loading.
...
svn path=/trunk/KDE/kdelibs/; revision=1164453
2010-08-16 19:02:03 +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
Marco Martin
99b597719c
reset the pinter after deleting the storage service
...
svn path=/trunk/KDE/kdelibs/; revision=1159099
2010-08-04 12:03:31 +00:00
Brian David Pritchett
dfac5c2765
Mistyped a signal/slot
...
svn path=/trunk/KDE/kdelibs/; revision=1158382
2010-08-02 17:38:16 +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
Aaron J. Seigo
451049664e
* various FIXME notes in dataengine.cpp; Brian, if you could look through them and ask if you have any questions regarding them
...
* only check for stored data if the DataContainer is thusly marked; removes a huge bottleneck for non-storage-backed engines; currently this probably breaks storage support (since marking the source as storage related probably happens after it is created and so this doesn't get calle?) but there is a FIXME note there that states what the fix should be
* some code clean ups
CCMAIL:batenkaitos@gmail.com
svn path=/trunk/KDE/kdelibs/; revision=1150416
2010-07-15 21:58:58 +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
Aaron J. Seigo
118e9c8394
revert this commit, it breaks the dataengine usge pattern and introduces memory leaks (which can be worked around, but at a cpu penalty for the common case)
...
svn path=/trunk/KDE/kdelibs/; revision=1136118
2010-06-09 01:17:16 +00:00
John Layt
fb07bcab0a
Don't throw away multiple values per key when doing deep copy.
...
See http://reviewboard.kde.org/r/4235/
svn path=/trunk/KDE/kdelibs/; revision=1134838
2010-06-05 13:09:48 +00:00
Beat Wolf
be9c4e9781
allow null values for dataengines as sugested by aseigo.
...
BUG:237760
svn path=/trunk/KDE/kdelibs/; revision=1128225
2010-05-18 18:22:13 +00:00
Aaron J. Seigo
c477a8c2c2
once disconnected, stop caring about the object's destruction; prevents those "no such slot" warnings at runtime (and probably a tiny optimization to boot)
...
svn path=/trunk/KDE/kdelibs/; revision=1101797
2010-03-10 23:05:39 +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
a6140d5a27
use isEmpty; a couple minor, minor changes that crept in while debugging things elsewhere
...
svn path=/trunk/KDE/kdelibs/; revision=895022
2008-12-09 20:37:41 +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
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
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
ffd9d8f796
SVN_SILENT:
...
Looks a little cleaner like this.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851458
2008-08-23 17:35:23 +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
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
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
b94c6913ff
small optimization: prevent reconnecting (and likely a delete and new of a SignalObject) when the requested polling interval and the current one are the same
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802273
2008-04-29 00:26:33 +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
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