Commit Graph

82 Commits

Author SHA1 Message Date
David Faure
e7e77f118a Merge remote-tracking branch 'origin/KDE/4.10' into frameworks
Conflicts:
	cmake/modules/FindKDE4Internal.cmake [ON vs TRUE]
	experimental/libkdeclarative/kdeclarative.cpp [include changes]
	kdecore/CMakeLists.txt [kshareddatacache.cpp exception support, but file moved]
	kdecore/kernel/kcmdlineargs.cpp [+1 option, but qi18n]
	kdeui/widgets/ktextedit.cpp [moc]
	kdewebkit/kwebpage.cpp [QUrl]
	kfile/kfilewidget.cpp [QUrl]
	kfile/kurlnavigatortogglebutton.cpp [QT_NO_ACCESSIBILITY]
	kinit/kinit.cpp [document path]
	kio/kfile/kurlrequester.cpp [KDE::icon]
	kio/kio/kprotocolmanager.cpp [kded5]
	kio/kio/krun.cpp [document path]
	kioslave/ftp/ftp.cpp [QUrl]
	kioslave/http/kcookiejar/CMakeLists.txt [upd file resurrected]
	kioslave/http/kcookiejar/kcookiescfg.upd [resurrected]
	kioslave/http/kcookiejar/kcookiewin.cpp [KVBox porting]
	mimetypes/kde.xml [kexi gone]
	nepomuk/core/resourcedata.cpp [deleted]
	nepomuk/test/CMakeLists.txt [deleted]
	plasma/private/packages.cpp [Plasma::Applet::NoBackground]
	tier1/kjs/src/kjs/jsonstringify.cpp [unsigned int]
	tier1/solid/src/solid/CMakeLists.txt [hello udisks2]
2012-10-19 15:10:38 +02:00
Jaime Torres
7209fa02e8 set directly this to the variable
instead of o=null and o=this
2012-10-10 19:10:25 +02:00
Dawit Alemayehu
fb0b49af8c Normalize all signal/slot connections.
REVIEW: 103728
2012-02-13 14:27:21 -05:00
David Faure
9057ce0c70 Fix compilation with the new cmake automoc stuff. 2012-02-08 23:34:07 +01:00
Stephen Kelly
8d37df4b8f Remove moc includes that can be omitted.
Mostly these are "<name>.moc" style includes which are incorrect
compared to qmake and cmake automoc behaviour.
2012-01-31 22:44:36 +01:00
Aaron Seigo
9612317115 checkUsage is in the private class now 2011-10-30 12:56:12 +01:00
Aaron Seigo
91178d1c2a Merge remote-tracking branch 'origin/KDE/4.7' into frameworks 2011-10-30 10:54:53 +01:00
Aaron Seigo
356e618364 stop the timers 2011-10-30 10:46:28 +01:00
Aaron Seigo
2c7751ccef Merge remote-tracking branch 'origin/KDE/4.7' into frameworks
Conflicts:
	CMakeLists.txt
	kio/kio/kfileitem.cpp
	plasma/datacontainer.cpp
	plasma/datacontainer.h
	plasma/private/wallpaper_p.h
	plasma/private/wallpaperrenderthread.cpp
2011-10-30 10:44:59 +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
ecbca8f142 add bool isUsed() const and remove checkUsage() 2011-06-03 16:04:50 +02: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